Photon Fusion 2.0.0

Static Public Member Functions | List of all members
NetworkInputUtils Class Reference

Utility methods for NetworkInput More...

Static Public Member Functions

static int GetMaxWordCount ()
 Get the max word count from all registered types

 
static Type GetType (int typeKey)
 Get the Type based on its associate Key.
 
static int GetTypeKey (Type type)
 Get the Key associate with the argument Type.
 
static int GetWordCount (Type type)
 Get Type Word Count if it is of type NetworkInput
 

Detailed Description

Utility methods for NetworkInput

Member Function Documentation

◆ GetType()

static Type GetType ( int  typeKey)
static

Get the Type based on its associate Key.

Parameters
typeKeyKey associated with a Type
Returns
Type associated with the Key, or null otherwise

◆ GetTypeKey()

static int GetTypeKey ( Type  type)
static

Get the Key associate with the argument Type.

Parameters
typeType to check for the key
Returns
Associated Type Key, or an exception if not found

◆ GetWordCount()

static int GetWordCount ( Type  type)
static

Get Type Word Count if it is of type NetworkInput

Parameters
typeType to check for word count
Returns
Number of words for the NetworkInput