Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
SCR_ScenarioFrameworkPluginOnInventoryChange Interface Reference
Inheritance diagram for SCR_ScenarioFrameworkPluginOnInventoryChange:
[legend]

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_ScenarioFrameworkActionBasem_aActionsOnItemAdded
 
ref array< ref SCR_ScenarioFrameworkActionBasem_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.
 

Member Function Documentation

◆ Init()

override void SCR_ScenarioFrameworkPluginOnInventoryChange.Init ( SCR_ScenarioFrameworkLayerBase  object)

Initializes inventory storage managers for an entity, subscribes to item added and removed events.

Parameters
[in]objectof layer base from which entity is further retrieved

Implements SCR_ScenarioFrameworkPlugin.

◆ OnItemAdded()

void SCR_ScenarioFrameworkPluginOnInventoryChange.OnItemAdded ( IEntity  item,
BaseInventoryStorageComponent  storageOwner 
)
protected

Handles inventory item addition, debugs, and triggers actions on item addition.

Parameters
[in]itemAdds an item to inventory, triggers actions on item addition.
[in]storageOwnerRepresents the entity owning the inventory where an item is added.

◆ OnItemRemoved()

void SCR_ScenarioFrameworkPluginOnInventoryChange.OnItemRemoved ( IEntity  item,
BaseInventoryStorageComponent  storageOwner 
)
protected

Handles inventory item removal, debugs, and triggers actions on item removal.

Parameters
[in]itemRemoves an item from inventory, triggers actions on item removal.
[in]storageOwnerRepresents the entity owning the inventory where item is removed from.

Member Data Documentation

◆ m_aActionsOnItemAdded

ref array<ref SCR_ScenarioFrameworkActionBase> SCR_ScenarioFrameworkPluginOnInventoryChange.m_aActionsOnItemAdded

◆ m_aActionsOnItemRemoved

ref array<ref SCR_ScenarioFrameworkActionBase> SCR_ScenarioFrameworkPluginOnInventoryChange.m_aActionsOnItemRemoved

◆ m_Asset

IEntity SCR_ScenarioFrameworkPluginOnInventoryChange.m_Asset

The documentation for this interface was generated from the following file: