Photon Fusion 2.0.0

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

NetworkObjectGuid. More...

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

Classes

class  EqualityComparer
 EqualityComparer for NetworkObjectGuid. More...
 

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

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

Static Public Attributes

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

Properties

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

Detailed Description

NetworkObjectGuid.

Constructor & Destructor Documentation

◆ NetworkObjectGuid() [1/4]

NetworkObjectGuid ( string  guid)

Create a new NetworkObjectGuid.

Parameters
guidThe guid to use

◆ NetworkObjectGuid() [2/4]

NetworkObjectGuid ( long  data0,
long  data1 
)

Create a new NetworkObjectGuid.

Parameters
data0Data0 of the Guid
data1Data1 of the Guid

◆ NetworkObjectGuid() [3/4]

NetworkObjectGuid ( byte[]  guid)

Create a NetworkObjectGuid from a byte array.

Parameters
guidThe byte array to create the NetworkObjectGuid from

◆ NetworkObjectGuid() [4/4]

NetworkObjectGuid ( byte *  guid)

Create a NetworkObjectGuid from a byte*.

Parameters
guidThe byte* to create the NetworkObjectGuid from

Member Function Documentation

◆ CompareTo()

int CompareTo ( NetworkObjectGuid  other)

Compare the NetworkObjectGuid to another NetworkObjectGuid.

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

◆ Equals() [1/2]

bool Equals ( NetworkObjectGuid  other)

Check if the NetworkObjectGuid is equal to another NetworkObjectGuid.

Parameters
otherThe other NetworkObjectGuid to check against
Returns
True if the NetworkObjectGuids are equal, false otherwise

◆ Equals() [2/2]

override bool Equals ( object  obj)

Check if the NetworkObjectGuid is equal to another object.

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

◆ operator Guid()

static implicit operator Guid ( NetworkObjectGuid  guid)
static

Implicit conversion from NetworkObjectGuid to Guid.

Parameters
guidNetworkObjectGuid to convert from
Returns
Guid

◆ operator NetworkObjectGuid()

static implicit operator NetworkObjectGuid ( Guid  guid)
static

Implicit conversion from Guid to NetworkObjectGuid.

Parameters
guidGuid to convert from
Returns
NetworkObjectGuid

◆ operator NetworkPrefabRef()

static operator NetworkPrefabRef ( NetworkObjectGuid  t)
explicitstatic

Explicit conversion from NetworkObjectGuid to NetworkPrefabRef.

Parameters
tNetworkObjectGuid to convert from
Returns
NetworkPrefabRef

◆ operator!=()

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

Compare two NetworkObjectGuid.

Returns
True if the NetworkObjectGuid are not equal, false otherwise

◆ operator==()

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

Compare two NetworkObjectGuid.

Returns
True if the NetworkObjectGuid are equal, false otherwise

◆ Parse()

static NetworkObjectGuid Parse ( string  str)
static

Parse a NetworkObjectGuid from a string.

Parameters
strThe string to parse.
Returns
The parsed NetworkObjectGuid.

◆ TryParse()

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

Try to parse a string into a NetworkObjectGuid.

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