Photon Fusion 2.0.3

Public Member Functions | Public Attributes | Properties | List of all members
NetworkArray< T >.Enumerator Struct Reference

Enumerator for NetworkArray. More...

Inherits IEnumerator< T >.

Public Member Functions

void Dispose ()
 Releases all resources used by the Enumerator. More...
 
 Enumerator (NetworkArray< T > array)
 Initializes a new instance of the Enumerator with the specified NetworkArray. More...
 
bool MoveNext ()
 Advances the enumerator to the next element of the collection. More...
 
void Reset ()
 Sets the enumerator to its initial position, which is before the first element in the collection. More...
 

Public Attributes

NetworkArray< T > _array
 
int _index
 

Properties

Current [get]
 Gets the current element in the collection. More...
 
object IEnumerator. Current [get]
 Gets the current element in the collection. More...
 

Detailed Description

Enumerator for NetworkArray.

Constructor & Destructor Documentation

◆ Enumerator()

Enumerator ( NetworkArray< T >  array)

Initializes a new instance of the Enumerator with the specified NetworkArray.

Parameters
arrayThe NetworkArray to enumerate.

Member Function Documentation

◆ Dispose()

void Dispose ( )

Releases all resources used by the Enumerator.

◆ MoveNext()

bool MoveNext ( )

Advances the enumerator to the next element of the collection.

Returns
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

◆ Reset()

void Reset ( )

Sets the enumerator to its initial position, which is before the first element in the collection.

Property Documentation

◆ Current [1/2]

T Current
get

Gets the current element in the collection.

◆ Current [2/2]

object IEnumerator. Current
get

Gets the current element in the collection.