Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Networking.NetworkStateTracker Class Reference

List of ECBehaviorNetworkState to send messages to. More...

Inheritance diagram for Dragengine.Networking.NetworkStateTracker:

Public Member Functions

void add (ECBehaviorNetworkState.Instance instance)
 Add behavior instance.
void forEach (Block ablock)
 Visit behavior instance with block.
ECBehaviorNetworkState.Instance getAt (UniqueID id)
 Behavior instance with unique identifier or null if absent.
int getCount ()
 Count of network states.
bool has (UniqueID id)
 Behavior instance with unique identifier is present.
NetworkStateTracker new ()
 Create connection tracker.
void remove (ECBehaviorNetworkState.Instance instance)
 Remove behavior instance.

Detailed Description

List of ECBehaviorNetworkState to send messages to.

Used by ECBehaviorNetworkState supporting behaviors to send and receive messages linked to their owner element. This registration is application wide since network states exist outside game worlds. Requires each element to have a unique identifier.

Member Function Documentation

◆ add()

void Dragengine.Networking.NetworkStateTracker.add ( ECBehaviorNetworkState.Instance instance)

Add behavior instance.

Exceptions
EInvalidParamBehavior instance with identifier is present.

References has().

Referenced by remove().

◆ forEach()

void Dragengine.Networking.NetworkStateTracker.forEach ( Block ablock)

Visit behavior instance with block.

Block receives as first argument UniqueID identifier and as second argument ECBehaviorNetworkState.Instance instance.

References forEach().

Referenced by forEach().

◆ getAt()

ECBehaviorNetworkState.Instance Dragengine.Networking.NetworkStateTracker.getAt ( UniqueID id)

Behavior instance with unique identifier or null if absent.

Referenced by has().

◆ getCount()

int Dragengine.Networking.NetworkStateTracker.getCount ( )

Count of network states.

References getCount().

Referenced by getCount().

◆ has()

bool Dragengine.Networking.NetworkStateTracker.has ( UniqueID id)

Behavior instance with unique identifier is present.

References getAt().

Referenced by add().

◆ new()

NetworkStateTracker Dragengine.Networking.NetworkStateTracker.new ( )

Create connection tracker.

References new().

Referenced by new().

◆ remove()

void Dragengine.Networking.NetworkStateTracker.remove ( ECBehaviorNetworkState.Instance instance)

Remove behavior instance.

References add().


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