Photon Fusion 2.0.4

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 More...
 
bool Equals (NetworkObjectGuid other)
 Check if the NetworkObjectGuid is equal to another NetworkObjectGuid More...
 
override bool Equals (object obj)
 Check if the NetworkObjectGuid is equal to another object More...
 
override int GetHashCode ()
 Get the hashcode for a NetworkObjectGuid More...
 
 NetworkObjectGuid (byte *guid)
 Create a NetworkObjectGuid from a byte* More...
 
 NetworkObjectGuid (byte[] guid)
 Create a NetworkObjectGuid from a byte array More...
 
 NetworkObjectGuid (long data0, long data1)
 Create a new NetworkObjectGuid More...
 
 NetworkObjectGuid (string guid)
 Create a new NetworkObjectGuid More...
 
override string ToString ()
 Returns a string representation of the NetworkObjectGuid. More...
 
string ToString (string format)
 Returns a string representation of the NetworkObjectGuid. More...
 
string ToUnityGuidString ()
 Returns a string representation of the NetworkObjectGuid. More...
 

Static Public Member Functions

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

Public Attributes

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

Static Public Attributes

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

Properties

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

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

◆ GetHashCode()

override int GetHashCode ( )

Get the hashcode for a NetworkObjectGuid

◆ 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.

◆ ToString() [1/2]

override string ToString ( )

Returns a string representation of the NetworkObjectGuid.

◆ ToString() [2/2]

string ToString ( string  format)

Returns a string representation of the NetworkObjectGuid.

◆ ToUnityGuidString()

string ToUnityGuidString ( )

Returns a string representation of the 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

Member Data Documentation

◆ ALIGNMENT

const int ALIGNMENT = 4
static

The alignment of the NetworkObjectGuid

◆ RawGuidValue

fixed long RawGuidValue[2]

The Raw Guid Value of the NetworkObjectGuid

◆ SIZE

const int SIZE = 16
static

The Size of the NetworkObjectGuid in bytes

Property Documentation

◆ Empty

NetworkObjectGuid Empty
staticget

The default value of a NetworkObjectGuid

◆ IsValid

bool IsValid
get

Signal if the NetworkObjectGuid is valid.