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

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 = {}
 

Function Documentation

◆ CanBeSlotRegistered()

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

Parameters
[in]slot
Returns

Definition at line 38 of file SCR_SlotService.c.

◆ OnSlotRemoved()

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.

◆ OnSlotUpdate()

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.

◆ RegisterChildSlots()

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.

◆ RegisterNearbySlots()

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.

◆ RegisterSlot()

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.

Parameters
[in]slotSlot to be registered

Definition at line 25 of file SCR_SlotService.c.

◆ SlotSearchCallback()

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.

Variable Documentation

◆ m_aChildSlots

protected ref array<SCR_EntitySpawnerSlotComponent> m_aChildSlots = {}

Definition at line 18 of file SCR_SlotService.c.

◆ m_aNearSlots

protected ref array<SCR_EntitySpawnerSlotComponent> m_aNearSlots = {}

Definition at line 19 of file SCR_SlotService.c.

◆ m_SlotManager

Service with basic slot handling functionalities.