Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
ScriptedInventoryStorageManagerComponent.c
Go to the documentation of this file.
2 {
3 }
4 
5 class ScriptedInventoryStorageManagerComponent : InventoryStorageManagerComponent
6 {
7  ref ScriptInvokerBase<ScriptInvokerEntityAndStorageMethod> m_OnItemAddedInvoker = new ScriptInvokerBase<ScriptInvokerEntityAndStorageMethod>();
8  ref ScriptInvokerBase<ScriptInvokerEntityAndStorageMethod> m_OnItemRemovedInvoker = new ScriptInvokerBase<ScriptInvokerEntityAndStorageMethod>();
9 
10  //------------------------------------------------------------------------------------------------
11  override protected void OnItemAdded(BaseInventoryStorageComponent storageOwner, IEntity item)
12  {
13  super.OnItemAdded(storageOwner, item);
14 
15  m_OnItemAddedInvoker.Invoke(item, storageOwner);
16  }
17 
18  //------------------------------------------------------------------------------------------------
19  override protected void OnItemRemoved(BaseInventoryStorageComponent storageOwner, IEntity item)
20  {
21  super.OnItemRemoved(storageOwner, item);
22 
23  m_OnItemRemovedInvoker.Invoke(item, storageOwner);
24  }
25 }
m_OnItemRemovedInvoker
ref ScriptInvokerBase< ScriptInvokerEntityAndStorageMethod > m_OnItemRemovedInvoker
Definition: ScriptedInventoryStorageManagerComponent.c:8
OnItemAdded
override protected void OnItemAdded(BaseInventoryStorageComponent storageOwner, IEntity item)
Definition: ScriptedInventoryStorageManagerComponent.c:11
InventoryStorageManagerComponent
Definition: InventoryStorageManagerComponent.c:12
m_OnItemAddedInvoker
ScriptedInventoryStorageManagerComponentClass m_OnItemAddedInvoker
ScriptedInventoryStorageManagerComponentClass
Definition: ScriptedInventoryStorageManagerComponent.c:1
OnItemRemoved
override protected void OnItemRemoved(BaseInventoryStorageComponent storageOwner, IEntity item)
Definition: ScriptedInventoryStorageManagerComponent.c:19
InventoryStorageManagerComponentClass
Definition: InventoryStorageManagerComponentClass.c:7