Photon Fusion 2.0.3

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

NetworkPrefabRef More...

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

Classes

class  EqualityComparer
 EqualityComparer for NetworkPrefabRef More...
 

Public Member Functions

int CompareTo (NetworkPrefabRef other)
 Compare the NetworkPrefabRef to another NetworkPrefabRef More...
 
bool Equals (NetworkPrefabRef other)
 Check if the NetworkPrefabRef is equal to another NetworkPrefabRef More...
 
override bool Equals (object obj)
 Check if the NetworkPrefabRef is equal to another object More...
 
override int GetHashCode ()
 Get the hashcode for a NetworkPrefabRef More...
 
 NetworkPrefabRef (byte *guid)
 Create a NetworkPrefabRef from a byte* More...
 
 NetworkPrefabRef (byte[] guid)
 Create a NetworkPrefabRef from a byte array More...
 
 NetworkPrefabRef (long data0, long data1)
 Create a new NetworkPrefabRef More...
 
 NetworkPrefabRef (string guid)
 Create a new NetworkPrefabRef More...
 
override string ToString ()
 Returns a string representation of the NetworkPrefabRef. More...
 
string ToString (string format)
 Returns a string representation of the NetworkPrefabRef. More...
 
string ToUnityGuidString ()
 Returns a string representation of the NetworkPrefabRef. More...
 

Static Public Member Functions

static implicit operator Guid (NetworkPrefabRef guid)
 Implicit conversion from NetworkPrefabRef to Guid More...
 
static operator NetworkObjectGuid (NetworkPrefabRef t)
 Explicit conversion from NetworkPrefabRef to NetworkObjectGuid More...
 
static implicit operator NetworkPrefabRef (Guid guid)
 Implicit conversion from Guid to NetworkPrefabRef More...
 
static bool operator!= (NetworkPrefabRef a, NetworkPrefabRef b)
 Compare two NetworkPrefabRef More...
 
static bool operator== (NetworkPrefabRef a, NetworkPrefabRef b)
 Compare two NetworkPrefabRef More...
 
static NetworkPrefabRef Parse (string str)
 Parse a NetworkPrefabRef from a string. More...
 
static bool TryParse (string str, out NetworkPrefabRef guid)
 Try to parse a string into a NetworkPrefabRef More...
 

Public Attributes

fixed long RawGuidValue [2]
 The Raw Guid Value of the NetworkPrefabRef More...
 

Static Public Attributes

const int ALIGNMENT = 4
 The alignment of the NetworkPrefabRef More...
 
const int SIZE = 16
 The Size of the NetworkPrefabRef in bytes More...
 

Properties

static NetworkPrefabRef Empty [get]
 The default value of a NetworkPrefabRef More...
 
bool IsValid [get]
 Signal if the NetworkPrefabRef is valid. More...
 

Detailed Description

NetworkPrefabRef

A decoupled NetworkObject prefab reference. Internally stored as a GUID.

Constructor & Destructor Documentation

◆ NetworkPrefabRef() [1/4]

NetworkPrefabRef ( string  guid)

Create a new NetworkPrefabRef

Parameters
guidThe guid to use

◆ NetworkPrefabRef() [2/4]

NetworkPrefabRef ( long  data0,
long  data1 
)

Create a new NetworkPrefabRef

Parameters
data0Data0 of the Guid
data1Data1 of the Guid

◆ NetworkPrefabRef() [3/4]

NetworkPrefabRef ( byte[]  guid)

Create a NetworkPrefabRef from a byte array

Parameters
guidThe byte array to create the NetworkPrefabRef from

◆ NetworkPrefabRef() [4/4]

NetworkPrefabRef ( byte *  guid)

Create a NetworkPrefabRef from a byte*

Parameters
guidThe byte* to create the NetworkPrefabRef from

Member Function Documentation

◆ CompareTo()

int CompareTo ( NetworkPrefabRef  other)

Compare the NetworkPrefabRef to another NetworkPrefabRef

Parameters
otherThe other NetworkPrefabRef to compare against
Returns
0 if the NetworkPrefabRef are equal, -1 if this NetworkPrefabRef is less than the other, 1 if this NetworkPrefabRef is greater than the other

◆ Equals() [1/2]

bool Equals ( NetworkPrefabRef  other)

Check if the NetworkPrefabRef is equal to another NetworkPrefabRef

Parameters
otherThe other NetworkPrefabRef to check against
Returns
True if the NetworkPrefabRefs are equal, false otherwise

◆ Equals() [2/2]

override bool Equals ( object  obj)

Check if the NetworkPrefabRef is equal to another object

Parameters
objThe other object to check against
Returns
True if the objects are equal, false otherwise

◆ GetHashCode()

override int GetHashCode ( )

Get the hashcode for a NetworkPrefabRef

◆ operator Guid()

static implicit operator Guid ( NetworkPrefabRef  guid)
static

Implicit conversion from NetworkPrefabRef to Guid

Parameters
guidNetworkPrefabRef to convert from
Returns
Guid

◆ operator NetworkObjectGuid()

static operator NetworkObjectGuid ( NetworkPrefabRef  t)
explicitstatic

Explicit conversion from NetworkPrefabRef to NetworkObjectGuid

Parameters
tNetworkPrefabRef to convert from
Returns
NetworkObjectGuid

◆ operator NetworkPrefabRef()

static implicit operator NetworkPrefabRef ( Guid  guid)
static

Implicit conversion from Guid to NetworkPrefabRef

Parameters
guidGuid to convert from
Returns
NetworkPrefabRef

◆ operator!=()

static bool operator!= ( NetworkPrefabRef  a,
NetworkPrefabRef  b 
)
static

Compare two NetworkPrefabRef

Returns
True if the NetworkPrefabRef are not equal, false otherwise

◆ operator==()

static bool operator== ( NetworkPrefabRef  a,
NetworkPrefabRef  b 
)
static

Compare two NetworkPrefabRef

Returns
True if the NetworkPrefabRef are equal, false otherwise

◆ Parse()

static NetworkPrefabRef Parse ( string  str)
static

Parse a NetworkPrefabRef from a string.

Parameters
strThe string to parse.
Returns
The parsed NetworkPrefabRef.

◆ ToString() [1/2]

override string ToString ( )

Returns a string representation of the NetworkPrefabRef.

◆ ToString() [2/2]

string ToString ( string  format)

Returns a string representation of the NetworkPrefabRef.

◆ ToUnityGuidString()

string ToUnityGuidString ( )

Returns a string representation of the NetworkPrefabRef.

◆ TryParse()

static bool TryParse ( string  str,
out NetworkPrefabRef  guid 
)
static

Try to parse a string into a NetworkPrefabRef

Parameters
strString to parse
guidParsed NetworkPrefabRef
Returns
True if the string was parsed successfully, false otherwise

Member Data Documentation

◆ ALIGNMENT

const int ALIGNMENT = 4
static

The alignment of the NetworkPrefabRef

◆ RawGuidValue

fixed long RawGuidValue[2]

The Raw Guid Value of the NetworkPrefabRef

◆ SIZE

const int SIZE = 16
static

The Size of the NetworkPrefabRef in bytes

Property Documentation

◆ Empty

NetworkPrefabRef Empty
staticget

The default value of a NetworkPrefabRef

◆ IsValid

bool IsValid
get

Signal if the NetworkPrefabRef is valid.