Drag[en]gine Script Module DragonScript  1.21
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. More...
 
void forEach (Block ablock)
 Visit behavior instance with block. More...
 
ECBehaviorNetworkState.Instance getAt (UniqueID id)
 Behavior instance with unique identifier or null if absent. More...
 
int getCount ()
 Count of network states. More...
 
bool has (UniqueID id)
 Behavior instance with unique identifier is present. More...
 
NetworkStateTracker new ()
 Create connection tracker. More...
 
void remove (ECBehaviorNetworkState.Instance instance)
 Remove behavior instance. More...
 

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.

◆ 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.

◆ getAt()

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

Behavior instance with unique identifier or null if absent.

◆ getCount()

int Dragengine.Networking.NetworkStateTracker.getCount ( )

Count of network states.

◆ has()

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

Behavior instance with unique identifier is present.

◆ new()

NetworkStateTracker Dragengine.Networking.NetworkStateTracker.new ( )

Create connection tracker.

◆ remove()

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

Remove behavior instance.


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