Photon Fusion 2.1.1

NetConnectionMap.Iterator Struct Reference

Iterator for traversing the connections in a NetConnectionMap. More...

Public Member Functions

 Iterator (NetConnectionMap *map)
 Initializes a new instance of the Iterator struct.
bool Next ()
 Advances the iterator to the next connection.

Properties

readonly NetConnectionCurrent [get]
 Gets the current connection in the iteration.
readonly bool IsValid [get]
 Gets a value indicating whether the current index is valid.

Detailed Description

Iterator for traversing the connections in a NetConnectionMap.

Constructor & Destructor Documentation

◆ Iterator()

Iterator ( NetConnectionMap * map)

Initializes a new instance of the Iterator struct.

Parameters
mapThe NetConnectionMap to iterate over.

Member Function Documentation

◆ Next()

bool Next ( )

Advances the iterator to the next connection.

Returns
True if the iterator was successfully advanced to the next connection, otherwise false.