Photon Fusion 2.0.0

Static Public Member Functions | List of all members
NetworkBehaviourUtils.DictionaryInitializer< K, V > Struct Template Reference

A utility structure for initializing NetworkDictionary with inline initialization. More...

Static Public Member Functions

static implicit operator NetworkDictionary< K, V > (DictionaryInitializer< K, V > arr)
 Implicitly converts a DictionaryInitializer to a NetworkDictionary.
 

Detailed Description

A utility structure for initializing NetworkDictionary with inline initialization.

Template Parameters
KThe type of the keys in the NetworkDictionary.
VThe type of the values in the NetworkDictionary.

Member Function Documentation

◆ operator NetworkDictionary< K, V >()

static implicit operator NetworkDictionary< K, V > ( DictionaryInitializer< K, V >  arr)
static

Implicitly converts a DictionaryInitializer to a NetworkDictionary.

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