Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the source code of this file.
Data Structures | |
class | SCR_SlotServiceComponentClass |
Functions | |
void | RegisterSlot (SCR_EntitySpawnerSlotComponent slot) |
protected bool | CanBeSlotRegistered (notnull SCR_EntitySpawnerSlotComponent slot) |
protected bool | SlotSearchCallback (IEntity ent) |
protected void | RegisterNearbySlots () |
Registers slots in near distance. Kept for sake of client checks. Skips slots that are in hiearchy of any entity with SCR_SlotService or classes inherited from it. More... | |
protected void | RegisterChildSlots () |
Registers slots initially created as children. There slots cannot be used by any other spawner and shouldn't change in runtime. More... | |
protected void | OnSlotUpdate (SCR_EntitySpawnerSlotComponent slot, vector position) |
Called, if slot possition was changed. If it fails to meet previously required criteria in CanBeSlotRegistered, slot wont be used anymore. More... | |
protected void | OnSlotRemoved (SCR_EntitySpawnerSlotComponent slot) |
Called, if slot possition was changed. If it fails to meet previously required criteria in CanBeSlotRegistered, slot wont be used anymore. More... | |
protected override void | EOnInit (IEntity owner) |
Variables | |
SCR_SlotServiceComponentClass | m_SlotManager |
Service with basic slot handling functionalities. More... | |
protected ref array< SCR_EntitySpawnerSlotComponent > | m_aChildSlots = {} |
protected ref array< SCR_EntitySpawnerSlotComponent > | m_aNearSlots = {} |
protected bool CanBeSlotRegistered | ( | notnull SCR_EntitySpawnerSlotComponent | slot | ) |
Prevents registration of slots that are too far from service, or are already child of another slot service
[in] | slot |
Definition at line 38 of file SCR_SlotService.c.
protected void OnSlotRemoved | ( | SCR_EntitySpawnerSlotComponent | slot | ) |
Called, if slot possition was changed. If it fails to meet previously required criteria in CanBeSlotRegistered, slot wont be used anymore.
Definition at line 109 of file SCR_SlotService.c.
protected void OnSlotUpdate | ( | SCR_EntitySpawnerSlotComponent | slot, |
vector | position | ||
) |
Called, if slot possition was changed. If it fails to meet previously required criteria in CanBeSlotRegistered, slot wont be used anymore.
Definition at line 94 of file SCR_SlotService.c.
protected void RegisterChildSlots | ( | ) |
Registers slots initially created as children. There slots cannot be used by any other spawner and shouldn't change in runtime.
Definition at line 79 of file SCR_SlotService.c.
protected void RegisterNearbySlots | ( | ) |
Registers slots in near distance. Kept for sake of client checks. Skips slots that are in hiearchy of any entity with SCR_SlotService or classes inherited from it.
Definition at line 68 of file SCR_SlotService.c.
void RegisterSlot | ( | SCR_EntitySpawnerSlotComponent | slot | ) |
Register slot to be used for service. Slots that do not meet conditions in CanBeSlotRegistered are ignored, so are already known slots.
[in] | slot | Slot to be registered |
Definition at line 25 of file SCR_SlotService.c.
protected bool SlotSearchCallback | ( | IEntity | ent | ) |
Callback function for Query used in RegisterNearbySlots Should callback return true, QueryEntitiesBySphere will continue with query. If false, it will stop.
Definition at line 56 of file SCR_SlotService.c.
protected ref array<SCR_EntitySpawnerSlotComponent> m_aChildSlots = {} |
Definition at line 18 of file SCR_SlotService.c.
protected ref array<SCR_EntitySpawnerSlotComponent> m_aNearSlots = {} |
Definition at line 19 of file SCR_SlotService.c.
SCR_SlotServiceComponentClass m_SlotManager |
Service with basic slot handling functionalities.