PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
RemotelyActivatedItemBehaviour Class Reference

Private Member Functions

void RemotelyActivatedItemBehaviour (notnull EntityAI pParent)
 
void ~RemotelyActivatedItemBehaviour ()
 
void SetTrigger ()
 
void OnVariableSynchronized ()
 
void OnStoreSave (ParamsWriteContext ctx)
 
bool OnStoreLoad (ParamsReadContext ctx, int version)
 
void OnAfterLoad ()
 
void SetPersistentPairID (int id)
 
void Pair ()
 
void Pair (notnull EntityAI device)
 
void Unpair ()
 
EntityAI GetPairDevice ()
 
bool IsPaired ()
 
void SetPairDeviceNetIds (notnull EntityAI device)
 
int GetPairDeviceNetIdLow ()
 
int GetPairDeviceNetIdHigh ()
 

Static Private Member Functions

static int GeneratePersistentID ()
 

Private Attributes

protected EntityAI m_Parent
 
protected bool m_IsTrigger
 
protected EntityAI m_PairDevice
 
protected int m_PairDeviceNetIdLow
 
protected int m_PairDeviceNetIdHigh
 
protected int m_PersistentPairID = int.MIN
 

Static Private Attributes

static protected ref map< int, EntityAIm_RemoteReceivers = new map<int,EntityAI>()
 

Constructor & Destructor Documentation

◆ RemotelyActivatedItemBehaviour()

void RemotelyActivatedItemBehaviour ( notnull EntityAI  pParent)
inlineprivate

◆ ~RemotelyActivatedItemBehaviour()

void ~RemotelyActivatedItemBehaviour ( )
inlineprivate

References m_Parent, and Unpair().

Member Function Documentation

◆ GeneratePersistentID()

static int GeneratePersistentID ( )
inlinestaticprivate

◆ GetPairDevice()

◆ GetPairDeviceNetIdHigh()

int GetPairDeviceNetIdHigh ( )
inlineprivate

References m_PairDeviceNetIdHigh.

Referenced by Pair().

◆ GetPairDeviceNetIdLow()

int GetPairDeviceNetIdLow ( )
inlineprivate

References m_PairDeviceNetIdLow.

Referenced by Pair().

◆ IsPaired()

◆ OnAfterLoad()

void OnAfterLoad ( )
inlineprivate

◆ OnStoreLoad()

bool OnStoreLoad ( ParamsReadContext  ctx,
int  version 
)
inlineprivate

◆ OnStoreSave()

void OnStoreSave ( ParamsWriteContext  ctx)
inlineprivate

◆ OnVariableSynchronized()

◆ Pair() [1/2]

◆ Pair() [2/2]

void Pair ( notnull EntityAI  device)
inlineprivate

◆ SetPairDeviceNetIds()

void SetPairDeviceNetIds ( notnull EntityAI  device)
inlineprivate

References m_PairDeviceNetIdHigh, and m_PairDeviceNetIdLow.

Referenced by Pair().

◆ SetPersistentPairID()

void SetPersistentPairID ( int  id)
inlineprivate

◆ SetTrigger()

void SetTrigger ( )
inlineprivate

◆ Unpair()

Field Documentation

◆ m_IsTrigger

protected bool m_IsTrigger
private

◆ m_PairDevice

protected EntityAI m_PairDevice
private

◆ m_PairDeviceNetIdHigh

protected int m_PairDeviceNetIdHigh
private

◆ m_PairDeviceNetIdLow

protected int m_PairDeviceNetIdLow
private

◆ m_Parent

◆ m_PersistentPairID

protected int m_PersistentPairID = int.MIN
private

◆ m_RemoteReceivers

protected ref map<int,EntityAI> m_RemoteReceivers = new map<int,EntityAI>()
staticprivate

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