Photon Fusion 2.0.0

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 (ArrayInitializer< T > arr)
 Implicitly converts an ArrayInitializer to a NetworkArray.
 
static implicit operator NetworkLinkedList (ArrayInitializer< T > arr)
 Implicitly converts an ArrayInitializer to a NetworkLinkedList.
 

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()

static implicit operator NetworkArray ( 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()

static implicit operator NetworkLinkedList ( 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.