Photon Fusion 2.0.9

Public Member Functions | Properties | List of all members
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. More...
 
bool Next ()
 Advances the iterator to the next connection. More...
 

Properties

NetConnection *? Current [get]
 Gets the current connection in the iteration. More...
 
bool IsValid [get]
 Gets a value indicating whether the current index is valid. More...
 

Detailed Description

Iterator for traversing the connections in a NetConnectionMap.

Constructor & Destructor Documentation

◆ Iterator()

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.

Property Documentation

◆ Current

NetConnection*? Current
get

Gets the current connection in the iteration.

◆ IsValid

bool IsValid
get

Gets a value indicating whether the current index is valid.