Struct NetworkIdentity
ID used to syncronize components over network.
Implements
IComparable
IFormattable
Assembly: cs.temp.dll.dll
Syntax
public struct NetworkIdentity : IComparable, IComparable<NetworkIdentity>, IEquatable<NetworkIdentity>, IFormattable
Constructors
NetworkIdentity(UInt32)
Declaration
public NetworkIdentity(uint value)
Parameters
Type |
Name |
Description |
System.UInt32 |
value |
Raw network ID.
|
Fields
Value
Declaration
Field Value
Type |
Description |
System.UInt32 |
|
VALUE_INVALID
Declaration
public const uint VALUE_INVALID = 0U
Field Value
Type |
Description |
System.UInt32 |
|
Properties
IsInvalid
Declaration
public bool IsInvalid { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
CompareTo(NetworkIdentity)
Declaration
public int CompareTo(NetworkIdentity other)
Parameters
Returns
Type |
Description |
System.Int32 |
|
CompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Int32 |
|
Equals(NetworkIdentity)
Declaration
public bool Equals(NetworkIdentity other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
GenerateRandomID(Random)
Generate a new dynamic ID.
Declaration
public static NetworkIdentity GenerateRandomID(Random random)
Parameters
Type |
Name |
Description |
Random |
random |
Random generator to use.
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Declaration
public string ToString(string format, IFormatProvider provider)
Parameters
Type |
Name |
Description |
System.String |
format |
|
IFormatProvider |
provider |
|
Returns
Type |
Description |
System.String |
|
Operators
Equality(NetworkIdentity, NetworkIdentity)
Declaration
public static bool operator ==(NetworkIdentity lhs, NetworkIdentity rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Explicit(NetworkIdentity to UInt32)
Declaration
public static explicit operator uint (NetworkIdentity id)
Parameters
Returns
Type |
Description |
System.UInt32 |
|
Implicit(UInt32 to NetworkIdentity)
Declaration
public static implicit operator NetworkIdentity(uint value)
Parameters
Type |
Name |
Description |
System.UInt32 |
value |
|
Returns
Inequality(NetworkIdentity, NetworkIdentity)
Declaration
public static bool operator !=(NetworkIdentity lhs, NetworkIdentity rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
IComparable
IComparable<>
IEquatable<>
IFormattable