Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CompositionSlotManagerComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_CompositionSlotManagerComponentClass
 

Typedefs

typedef func OnCompositionSlotManagerEntityChangedMethod
 
typedef ScriptInvokerBase< OnCompositionSlotManagerEntityChangedMethodOnCompsitionSlotManagerEntityChanged
 

Functions

void OnCompositionSlotManagerEntityChangedMethod (SCR_CompositionSlotManagerComponent slotManager, IEntity slot)
 
OnCompsitionSlotManagerEntityChanged GetOnEntityChanged ()
 
void SetOccupant (IEntity slot, IEntity occupant)
 
void SetOccupant (vector pos, IEntity occupant)
 
IEntity GetOccupant (IEntity slot)
 
bool IsOccupied (IEntity slot)
 
IEntity GetSlot (IEntity occupant)
 
bool IsInSlot (IEntity occupant)
 
protected void SetOccupiedStatic (EntityID slotID, bool isOccupied, IEntity occupant)
 
protected void SetOccupiedStaticBroadcast (EntityID slotID, bool isOccupied)
 
protected void SetOccupiedDynamic (RplId slotID, bool isOccupied, IEntity occupant)
 
protected void SetOccupiedDynamicBroadcast (RplId slotID, bool isOccupied)
 
protected bool ModifyArray (EntityID slotID, bool isOccupied, IEntity occupant)
 
protected bool ModifyArray (RplId slotID, bool isOccupied, IEntity occupant)
 
protected void UpdateSlot (IEntity slot, bool isOccupied)
 
protected void OnEntityChanged (SCR_EditableEntityComponent entity)
 
protected bool QueryEntity (IEntity entity)
 
override bool RplSave (ScriptBitWriter writer)
 
override bool RplLoad (ScriptBitReader reader)
 
override void OnPostInit (IEntity owner)
 Called on PostInit when all components are added. More...
 
override void OnDelete (IEntity owner)
 

Variables

SCR_CompositionSlotManagerComponentClass EntityID
 
SCR_CompositionSlotManagerComponentClass m_aOccupiedStatic = new map<EntityID, IEntity>()
 
protected ref map< RplId, IEntity > m_aOccupiedDynamic = new map<RplId, IEntity>()
 
protected ref array< IEntity > m_aQueriedEntities
 
protected ref OnCompsitionSlotManagerEntityChanged m_OnEntityChanged
 

Typedef Documentation

◆ OnCompositionSlotManagerEntityChangedMethod

◆ OnCompsitionSlotManagerEntityChanged

Function Documentation

◆ GetOccupant()

IEntity GetOccupant ( IEntity  slot)
Parameters
[in]slot
Returns

Definition at line 72 of file SCR_CompositionSlotManagerComponent.c.

◆ GetOnEntityChanged()

OnCompsitionSlotManagerEntityChanged GetOnEntityChanged ( )
Returns

Definition at line 20 of file SCR_CompositionSlotManagerComponent.c.

◆ GetSlot()

IEntity GetSlot ( IEntity  occupant)
Parameters
[in]occupant
Returns

Definition at line 100 of file SCR_CompositionSlotManagerComponent.c.

◆ IsInSlot()

bool IsInSlot ( IEntity  occupant)
Parameters
[in]occupant
Returns

Definition at line 120 of file SCR_CompositionSlotManagerComponent.c.

◆ IsOccupied()

bool IsOccupied ( IEntity  slot)
Parameters
[in]slot
Returns

Definition at line 88 of file SCR_CompositionSlotManagerComponent.c.

◆ ModifyArray() [1/2]

protected bool ModifyArray ( EntityID  slotID,
bool  isOccupied,
IEntity  occupant 
)

Definition at line 172 of file SCR_CompositionSlotManagerComponent.c.

◆ ModifyArray() [2/2]

protected bool ModifyArray ( RplId  slotID,
bool  isOccupied,
IEntity  occupant 
)

Definition at line 196 of file SCR_CompositionSlotManagerComponent.c.

◆ OnCompositionSlotManagerEntityChangedMethod()

void OnCompositionSlotManagerEntityChangedMethod ( SCR_CompositionSlotManagerComponent  slotManager,
IEntity  slot 
)

◆ OnEntityChanged()

protected void OnEntityChanged ( SCR_EditableEntityComponent  entity)

Definition at line 241 of file SCR_CompositionSlotManagerComponent.c.

◆ QueryEntity()

protected bool QueryEntity ( IEntity  entity)

Definition at line 267 of file SCR_CompositionSlotManagerComponent.c.

◆ RplLoad()

override bool RplLoad ( ScriptBitReader  reader)

Definition at line 301 of file SCR_CompositionSlotManagerComponent.c.

◆ RplSave()

override bool RplSave ( ScriptBitWriter  writer)

Definition at line 281 of file SCR_CompositionSlotManagerComponent.c.

◆ SetOccupant() [1/2]

void SetOccupant ( IEntity  slot,
IEntity  occupant 
)
Parameters
[in]slot
[in]occupant

Definition at line 41 of file SCR_CompositionSlotManagerComponent.c.

◆ SetOccupant() [2/2]

void SetOccupant ( vector  pos,
IEntity  occupant 
)
Parameters
[in]pos
[in]occupant

Definition at line 56 of file SCR_CompositionSlotManagerComponent.c.

◆ SetOccupiedDynamic()

protected void SetOccupiedDynamic ( RplId  slotID,
bool  isOccupied,
IEntity  occupant 
)

Definition at line 156 of file SCR_CompositionSlotManagerComponent.c.

◆ SetOccupiedDynamicBroadcast()

protected void SetOccupiedDynamicBroadcast ( RplId  slotID,
bool  isOccupied 
)

Definition at line 164 of file SCR_CompositionSlotManagerComponent.c.

◆ SetOccupiedStatic()

protected void SetOccupiedStatic ( EntityID  slotID,
bool  isOccupied,
IEntity  occupant 
)

Definition at line 140 of file SCR_CompositionSlotManagerComponent.c.

◆ SetOccupiedStaticBroadcast()

protected void SetOccupiedStaticBroadcast ( EntityID  slotID,
bool  isOccupied 
)

Definition at line 148 of file SCR_CompositionSlotManagerComponent.c.

◆ UpdateSlot()

protected void UpdateSlot ( IEntity  slot,
bool  isOccupied 
)

Definition at line 220 of file SCR_CompositionSlotManagerComponent.c.

Variable Documentation

◆ EntityID

◆ m_aOccupiedDynamic

protected ref map<RplId, IEntity> m_aOccupiedDynamic = new map<RplId, IEntity>()

Definition at line 13 of file SCR_CompositionSlotManagerComponent.c.

◆ m_aOccupiedStatic

SCR_CompositionSlotManagerComponentClass m_aOccupiedStatic = new map<EntityID, IEntity>()

◆ m_aQueriedEntities

protected ref array<IEntity> m_aQueriedEntities

Definition at line 14 of file SCR_CompositionSlotManagerComponent.c.

◆ m_OnEntityChanged

protected ref OnCompsitionSlotManagerEntityChanged m_OnEntityChanged

Definition at line 16 of file SCR_CompositionSlotManagerComponent.c.