Photon Fusion 2.0.6

Static Public Member Functions | List of all members
NetworkBehaviourUtils.ArrayInitializer< T > Struct Template Reference

A utility structure for initializing NetworkArray and NetworkLinkedList with inline initialization. More...

Static Public Member Functions

static implicit operator NetworkArray< T > (ArrayInitializer< T > arr)
 Implicitly converts an ArrayInitializer to a NetworkArray. More...
 
static implicit operator NetworkLinkedList< T > (ArrayInitializer< T > arr)
 Implicitly converts an ArrayInitializer to a NetworkLinkedList. More...
 

Detailed Description

A utility structure for initializing NetworkArray and NetworkLinkedList with inline initialization.

Template Parameters
TThe type of the elements in the NetworkArray and NetworkLinkedList.

Member Function Documentation

◆ operator NetworkArray< T >()

static implicit operator NetworkArray< T > ( ArrayInitializer< T >  arr)
static

Implicitly converts an ArrayInitializer to a NetworkArray.

Parameters
arrThe ArrayInitializer to convert.
Returns
A NetworkArray initialized with the values from the ArrayInitializer.
Exceptions
System.NotImplementedExceptionThrown always as this method is meant to be used only for [Networked] properties inline initialization.

◆ operator NetworkLinkedList< T >()

static implicit operator NetworkLinkedList< T > ( ArrayInitializer< T >  arr)
static

Implicitly converts an ArrayInitializer to a NetworkLinkedList.

Parameters
arrThe ArrayInitializer to convert.
Returns
A NetworkLinkedList initialized with the values from the ArrayInitializer.
Exceptions
System.NotImplementedExceptionThrown always as this method is meant to be used only for [Networked] properties inline initialization.