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

List of connections to create network states for. More...

Inheritance diagram for Dragengine.Networking.ConnectionTracker:

Public Member Functions

void add (Connection connection)
 Add connection.
void forEach (Block ablock)
 Visit connections with block.
Connection getAt (int index)
 Connection at index.
int getCount ()
 Count of connections.
bool has (Connection connection)
 Connection is present.
ConnectionTracker new ()
 Create connection tracker.
void remove (Connection connection)
 Remove connection.
void removeAll ()
 Remove all connections.

Detailed Description

List of connections to create network states for.

Used by behaviors to track connections for which network states have to be created. The behaviros register a listener to be notified if connections are added and removed.

Member Function Documentation

◆ add()

void Dragengine.Networking.ConnectionTracker.add ( Connection connection)

Add connection.

Referenced by removeAll().

◆ forEach()

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

Visit connections with block.

Block receives as argument connection of type Connection.

References forEach(), and removeAll().

Referenced by forEach().

◆ getAt()

Connection Dragengine.Networking.ConnectionTracker.getAt ( int index)

Connection at index.

References getCount().

Referenced by has().

◆ getCount()

int Dragengine.Networking.ConnectionTracker.getCount ( )

Count of connections.

Referenced by getAt().

◆ has()

bool Dragengine.Networking.ConnectionTracker.has ( Connection connection)

Connection is present.

References getAt().

Referenced by remove().

◆ new()

ConnectionTracker Dragengine.Networking.ConnectionTracker.new ( )

Create connection tracker.

References new().

Referenced by new().

◆ remove()

void Dragengine.Networking.ConnectionTracker.remove ( Connection connection)

Remove connection.

References has().

◆ removeAll()

void Dragengine.Networking.ConnectionTracker.removeAll ( )

Remove all connections.

References add().

Referenced by forEach().


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