Drag[en]gine Script Module DragonScript  1.23
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. More...
 
void forEach (Block ablock)
 Visit connections with block. More...
 
Connection getAt (int index)
 Connection at index. More...
 
int getCount ()
 Count of connections. More...
 
bool has (Connection connection)
 Connection is present. More...
 
ConnectionTracker new ()
 Create connection tracker. More...
 
void remove (Connection connection)
 Remove connection. More...
 
void removeAll ()
 Remove all connections. More...
 

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.

◆ forEach()

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

Visit connections with block.

Block receives as argument connection of type Connection.

◆ getAt()

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

Connection at index.

◆ getCount()

int Dragengine.Networking.ConnectionTracker.getCount ( )

Count of connections.

◆ has()

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

Connection is present.

◆ new()

ConnectionTracker Dragengine.Networking.ConnectionTracker.new ( )

Create connection tracker.

◆ remove()

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

Remove connection.

◆ removeAll()

void Dragengine.Networking.ConnectionTracker.removeAll ( )

Remove all connections.


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