Photon Fusion 2.0.0

Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
NetworkPrefabId Struct Reference

ID for a NetworkObject Prefab which has been cataloged in a NetworkProjectConfig.PrefabTable. More...

Inherits INetworkStruct, IEquatable< NetworkPrefabId >, IComparable, and IComparable< NetworkPrefabId >.

Classes

class  EqualityComparer
 Equality comparer for NetworkPrefabId. More...
 

Public Member Functions

int CompareTo (NetworkPrefabId other)
 Compares the NetworkPrefabId to another NetworkPrefabId.
 
int IComparable. CompareTo (object obj)
 Compares the NetworkPrefabId to another object.
 
bool Equals (NetworkPrefabId other)
 Checks if the NetworkPrefabId is equal to another NetworkPrefabId.
 
override bool Equals (object obj)
 Checks if the NetworkPrefabId is equal to another object.
 
override int GetHashCode ()
 Gets the hash code of the NetworkPrefabId.
 
override string ToString ()
 Converts the NetworkPrefabId to a string.
 
string ToString (bool brackets, bool prefix)
 Converts the NetworkPrefabId to a string with optional brackets and prefix.
 

Static Public Member Functions

static NetworkPrefabId FromIndex (int index)
 Creates a NetworkPrefabId from an index.
 
static NetworkPrefabId FromRaw (uint value)
 Creates a NetworkPrefabId from a raw value.
 
static bool operator!= (NetworkPrefabId a, NetworkPrefabId b)
 Checks if two NetworkPrefabId are not equal.
 
static bool operator== (NetworkPrefabId a, NetworkPrefabId b)
 Checks if two NetworkPrefabId are equal.
 

Public Attributes

uint RawValue
 The raw value of the NetworkPrefabId.
 

Static Public Attributes

const int ALIGNMENT = 4
 The alignment of a NetworkPrefabId.
 
const int MAX_INDEX = int.MaxValue - 1
 The maximum index value of a NetworkPrefabId.
 
const int SIZE = 4
 The size of a NetworkPrefabId.
 

Properties

int AsIndex [get]
 Converts the NetworkPrefabId to an index.
 
bool IsNone [get]
 Checks if the NetworkPrefabId is none.
 
bool IsValid [get]
 Checks if the NetworkPrefabId is valid.
 

Detailed Description

ID for a NetworkObject Prefab which has been cataloged in a NetworkProjectConfig.PrefabTable.