Photon Fusion
2.1.1
Represents the unique identifier for a NetworkBehaviour instance. More...
Inherits INetworkStruct.
Public Member Functions | |
| readonly bool | Equals (NetworkBehaviourId other) |
| Checks if this NetworkBehaviourId is equal to another NetworkBehaviourId. Two NetworkBehaviourIds are equal if their Objects and Behaviours are equal. | |
| override readonly 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. | |
| override readonly int | GetHashCode () |
| Returns a hash code for this NetworkBehaviourId. The hash code is computed based on the Object's hash code and the Behaviour. | |
| override readonly string | ToString () |
| Returns a string representation of the NetworkBehaviourId. The string representation is in the format: [Object:{Object}, Behaviour:{Behaviour}]. | |
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. | |
| 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. | |
Public Attributes | |
| int | Behaviour |
| The identifier for the behaviour within the object. | |
| NetworkId | Object |
| The NetworkId of the object this behaviour belongs to. | |
Properties | |
| readonly bool | IsValid [get] |
| Checks if the NetworkBehaviourId is valid. A NetworkBehaviourId is valid if its Object is valid and its Behaviour is non-negative. | |
| static NetworkBehaviourId | None [get] |
| Returns a new NetworkBehaviourId with default values. | |
Represents the unique identifier for a NetworkBehaviour instance.
| readonly 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 readonly 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 readonly 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 readonly string ToString | ( | ) |
Returns a string representation of the NetworkBehaviourId. The string representation is in the format: [Object:{Object}, Behaviour:{Behaviour}].