Represents the unique identifier for a NetworkBehaviour instance. More...
Inherits INetworkStruct, and IEquatable< NetworkBehaviourId >.
Public Member Functions | |
bool | Equals (NetworkBehaviourId other) |
Checks if this NetworkBehaviourId is equal to another NetworkBehaviourId. Two NetworkBehaviourIds are equal if their Objects and Behaviours are equal. More... | |
override bool | Equals (object obj) |
Checks if this NetworkBehaviourId is equal to another object. The object is considered equal if it is a NetworkBehaviourId and its Object and Behaviour are equal to this NetworkBehaviourId's. More... | |
override int | GetHashCode () |
Returns a hash code for this NetworkBehaviourId. The hash code is computed based on the Object's hash code and the Behaviour. More... | |
override string | ToString () |
Returns a string representation of the NetworkBehaviourId. The string representation is in the format: [Object:{Object}, Behaviour:{Behaviour}]. More... | |
Static Public Member Functions | |
static bool | operator!= (NetworkBehaviourId a, NetworkBehaviourId b) |
Determines whether two NetworkBehaviourId instances are not equal. Two NetworkBehaviourId instances are considered not equal if their Objects or Behaviours are not equal. More... | |
static bool | operator== (NetworkBehaviourId a, NetworkBehaviourId b) |
Determines whether two NetworkBehaviourId instances are equal. Two NetworkBehaviourId instances are considered equal if their Objects and Behaviours are equal. More... | |
Public Attributes | |
int | Behaviour |
The identifier for the behaviour within the object. More... | |
NetworkId | Object |
The NetworkId of the object this behaviour belongs to. More... | |
Static Public Attributes | |
const int | SIZE = NetworkId.SIZE + sizeof(int) |
Size of the NetworkBehaviourId structure in bytes. More... | |
Properties | |
bool | IsValid [get] |
Checks if the NetworkBehaviourId is valid. A NetworkBehaviourId is valid if its Object is valid and its Behaviour is non-negative. More... | |
static NetworkBehaviourId | None [get] |
Returns a new NetworkBehaviourId with default values. More... | |
Represents the unique identifier for a NetworkBehaviour instance.
bool Equals | ( | NetworkBehaviourId | other | ) |
Checks if this NetworkBehaviourId is equal to another NetworkBehaviourId. Two NetworkBehaviourIds are equal if their Objects and Behaviours are equal.
other | The other NetworkBehaviourId to compare with. |
override bool Equals | ( | object | obj | ) |
Checks if this NetworkBehaviourId is equal to another object. The object is considered equal if it is a NetworkBehaviourId and its Object and Behaviour are equal to this NetworkBehaviourId's.
obj | The object to compare with. |
override int GetHashCode | ( | ) |
Returns a hash code for this NetworkBehaviourId. The hash code is computed based on the Object's hash code and the Behaviour.
|
static |
Determines whether two NetworkBehaviourId instances are not equal. Two NetworkBehaviourId instances are considered not equal if their Objects or Behaviours are not equal.
a | The first NetworkBehaviourId to compare. |
b | The second NetworkBehaviourId to compare. |
|
static |
Determines whether two NetworkBehaviourId instances are equal. Two NetworkBehaviourId instances are considered equal if their Objects and Behaviours are equal.
a | The first NetworkBehaviourId to compare. |
b | The second NetworkBehaviourId to compare. |
override string ToString | ( | ) |
Returns a string representation of the NetworkBehaviourId. The string representation is in the format: [Object:{Object}, Behaviour:{Behaviour}].
int Behaviour |
The identifier for the behaviour within the object.
|
static |
Size of the NetworkBehaviourId structure in bytes.
|
get |
Checks if the NetworkBehaviourId is valid. A NetworkBehaviourId is valid if its Object is valid and its Behaviour is non-negative.
|
staticget |
Returns a new NetworkBehaviourId with default values.