Photon Fusion
2.1.1
The unique identifier for a network entity. More...
Inherits INetworkStruct.
Classes | |
| class | EqualityComparer |
| IEqualityComparer interface for NetworkId objects. More... | |
Public Member Functions | |
| int | CompareTo (NetworkId other) |
| Compares the current NetworkId object with another NetworkId object. | |
| readonly bool | Equals (NetworkId other) |
| Determines whether the current NetworkId object is equal to another NetworkId object. | |
| override readonly bool | Equals (object obj) |
| Determines whether the specified object is equal to the current NetworkId object. | |
| override readonly int | GetHashCode () |
| Get the hash code for this NetworkId. | |
| string | ToNamePrefixString () |
| String conversion specifically for use in prefixing names of GameObjects. | |
| override readonly string | ToString () |
| String representation of the NetworkId. | |
| void | Write (NetBitBuffer *buffer) |
| Writes this NetworkId to the provided NetBitBuffer. | |
Static Public Member Functions | |
| static NetworkId | FromRaw (uint value) |
| Creates a new instance from raw value. | |
| static implicit | operator bool (NetworkId id) |
| Converts the NetworkId object to a boolean value. | |
| static bool | operator!= (NetworkId a, NetworkId b) |
| Determines whether two NetworkId objects are not equal. | |
| static bool | operator== (NetworkId a, NetworkId b) |
| Determines whether two NetworkId objects are equal. | |
| static NetworkId | Read (NetBitBuffer *buffer) |
| Reads a NetworkId from the provided NetBitBuffer. | |
| static void | Write (NetBitBuffer *buffer, NetworkId id) |
| Writes the NetworkId to the provided NetBitBuffer. | |
Public Attributes | |
| uint | Raw |
| The raw value of the network id. | |
Static Public Attributes | |
| const int | ALIGNMENT = 4 |
| The alignment of the network id in bytes. | |
| const int | BLOCK_SIZE = 8 |
| The size of the network id block in bytes. | |
Properties | |
| static EqualityComparer | Comparer = new EqualityComparer() [get] |
| The IEqualityComparer for NetworkId objects. | |
| readonly bool | IsReserved [get] |
| Signal if the network id is reserved. | |
| readonly bool | IsValid [get] |
| Signal if the network id is valid. | |
The unique identifier for a network entity.
| int CompareTo | ( | NetworkId | other | ) |
| readonly bool Equals | ( | NetworkId | other | ) |
| override readonly bool Equals | ( | object | obj | ) |
Determines whether the specified object is equal to the current NetworkId object.
| obj | The object to compare with the current object. |
|
static |
Creates a new instance from raw value.
| value |
|
static |
Reads a NetworkId from the provided NetBitBuffer.
| buffer | The buffer to read the NetworkId from. |
| void Write | ( | NetBitBuffer * | buffer | ) |
Writes this NetworkId to the provided NetBitBuffer.
| buffer | The buffer to write this NetworkId to. |
|
static |
Writes the NetworkId to the provided NetBitBuffer.