Arma Reforger Script API
|
Public Member Functions | |
override void | Init (SCR_ScenarioFrameworkLayerBase object) |
Initializes inventory storage managers for an entity, subscribes to item added and removed events. | |
Public Member Functions inherited from SCR_ScenarioFrameworkPlugin | |
SCR_ScenarioFrameworkLayerBase | GetObject () |
void | Init (SCR_ScenarioFrameworkLayerBase object) |
Initializes scenario framework plugin with provided object, logs debug information if debug mode is enabled. | |
void | OnWBKeyChanged (SCR_ScenarioFrameworkLayerBase object) |
Public Attributes | |
ref array< ref SCR_ScenarioFrameworkActionBase > | m_aActionsOnItemAdded |
ref array< ref SCR_ScenarioFrameworkActionBase > | m_aActionsOnItemRemoved |
IEntity | m_Asset |
Public Attributes inherited from SCR_ScenarioFrameworkPlugin | |
bool | m_bDebug |
SCR_ScenarioFrameworkLayerBase | m_Object |
Protected Member Functions | |
void | OnItemAdded (IEntity item, BaseInventoryStorageComponent storageOwner) |
Handles inventory item addition, debugs, and triggers actions on item addition. | |
void | OnItemRemoved (IEntity item, BaseInventoryStorageComponent storageOwner) |
Handles inventory item removal, debugs, and triggers actions on item removal. | |
override void SCR_ScenarioFrameworkPluginOnInventoryChange.Init | ( | SCR_ScenarioFrameworkLayerBase | object | ) |
Initializes inventory storage managers for an entity, subscribes to item added and removed events.
[in] | object | of layer base from which entity is further retrieved |
Implements SCR_ScenarioFrameworkPlugin.
|
protected |
Handles inventory item addition, debugs, and triggers actions on item addition.
[in] | item | Adds an item to inventory, triggers actions on item addition. |
[in] | storageOwner | Represents the entity owning the inventory where an item is added. |
|
protected |
Handles inventory item removal, debugs, and triggers actions on item removal.
[in] | item | Removes an item from inventory, triggers actions on item removal. |
[in] | storageOwner | Represents the entity owning the inventory where item is removed from. |
ref array<ref SCR_ScenarioFrameworkActionBase> SCR_ScenarioFrameworkPluginOnInventoryChange.m_aActionsOnItemAdded |
ref array<ref SCR_ScenarioFrameworkActionBase> SCR_ScenarioFrameworkPluginOnInventoryChange.m_aActionsOnItemRemoved |
IEntity SCR_ScenarioFrameworkPluginOnInventoryChange.m_Asset |