Network object header information for a NetworkObject. More...
Inherits INetworkStruct, and IEquatable< NetworkObjectHeader >.
Public Member Functions | |
bool | Equals (NetworkObjectHeader other) |
Checks if the current instance of NetworkObjectHeader is equal to another instance of the same type. More... | |
override bool | Equals (object obj) |
Checks if the current instance of NetworkObjectHeader is equal to another object. More... | |
override int | GetHashCode () |
Generates a hash code for the current instance of NetworkObjectHeader. More... | |
override string | ToString () |
The string representation of the NetworkObjectHeader. More... | |
Static Public Member Functions | |
static int * | GetBehaviourChangedTickArray (NetworkObjectHeader *header) |
Returns a pointer to the array of behaviour change ticks in a NetworkObjectHeader. More... | |
static int * | GetDataPointer (NetworkObjectHeader *header) |
Returns a pointer to the data of a NetworkObjectHeader. More... | |
static int | GetDataWordCount (NetworkObjectHeader *header) |
Returns the count of data words in a NetworkObjectHeader. More... | |
static NetworkTRSPData * | GetMainNetworkTRSPData (NetworkObjectHeader *header) |
Returns a pointer to the main network TRSP data of a NetworkObjectHeader, if it exists. More... | |
static bool | HasMainNetworkTRSP (NetworkObjectHeader *header) |
Checks if a NetworkObjectHeader has a main network TRSP. More... | |
static bool | operator!= (NetworkObjectHeader left, NetworkObjectHeader right) |
Determines if two instances of NetworkObjectHeader are not equal. More... | |
static bool | operator== (NetworkObjectHeader left, NetworkObjectHeader right) |
Determines if two instances of NetworkObjectHeader are equal. More... | |
Public Attributes | |
fixed int | _reserved [10] |
Reserved space for future use. More... | |
short | BehaviourCount |
The number of behaviours in the network object. More... | |
NetworkObjectHeaderFlags | Flags |
The flags indicating various states or properties of the network object. More... | |
NetworkId | Id |
The unique identifier of the network object. More... | |
PlayerRef | InputAuthority |
The player reference who has input authority over the network object. More... | |
NetworkObjectNestingKey | NestingKey |
The nesting key of the network object. More... | |
NetworkId | NestingRoot |
The unique identifier of the root network object in the nesting hierarchy. More... | |
PlayerRef | StateAuthority |
The player reference who has state authority over the network object. More... | |
NetworkObjectTypeId | Type |
The type identifier of the network object. More... | |
short | WordCount |
The size of the network object's data in words. More... | |
Static Public Attributes | |
const int | PLAYER_DATA_WORD = 36 / Allocator.REPLICATE_WORD_SIZE |
The word index of the player data in the NetworkObjectHeader. More... | |
const int | SIZE = 80 |
The size of the NetworkObjectHeader in bytes. More... | |
const int | WORDS = SIZE / Allocator.REPLICATE_WORD_SIZE |
The size of the NetworkObjectHeader in words. More... | |
Properties | |
int | ByteCount [get] |
The size of the network object's data in bytes. More... | |
Network object header information for a NetworkObject.
bool Equals | ( | NetworkObjectHeader | other | ) |
Checks if the current instance of NetworkObjectHeader is equal to another instance of the same type.
override bool Equals | ( | object | obj | ) |
Checks if the current instance of NetworkObjectHeader is equal to another object.
|
static |
Returns a pointer to the array of behaviour change ticks in a NetworkObjectHeader.
header | Pointer to the NetworkObjectHeader. |
|
static |
Returns a pointer to the data of a NetworkObjectHeader.
header | Pointer to the NetworkObjectHeader. |
|
static |
Returns the count of data words in a NetworkObjectHeader.
header | Pointer to the NetworkObjectHeader. |
override int GetHashCode | ( | ) |
Generates a hash code for the current instance of NetworkObjectHeader.
|
static |
Returns a pointer to the main network TRSP data of a NetworkObjectHeader, if it exists.
header | Pointer to the NetworkObjectHeader. |
|
static |
Checks if a NetworkObjectHeader has a main network TRSP.
header | Pointer to the NetworkObjectHeader. |
|
static |
Determines if two instances of NetworkObjectHeader are not equal.
|
static |
Determines if two instances of NetworkObjectHeader are equal.
override string ToString | ( | ) |
The string representation of the NetworkObjectHeader.
fixed int _reserved[10] |
Reserved space for future use.
short BehaviourCount |
The number of behaviours in the network object.
NetworkObjectHeaderFlags Flags |
The flags indicating various states or properties of the network object.
NetworkId Id |
The unique identifier of the network object.
PlayerRef InputAuthority |
The player reference who has input authority over the network object.
NetworkObjectNestingKey NestingKey |
The nesting key of the network object.
NetworkId NestingRoot |
The unique identifier of the root network object in the nesting hierarchy.
|
static |
The word index of the player data in the NetworkObjectHeader.
|
static |
The size of the NetworkObjectHeader in bytes.
PlayerRef StateAuthority |
The player reference who has state authority over the network object.
NetworkObjectTypeId Type |
The type identifier of the network object.
short WordCount |
The size of the network object's data in words.
|
static |
The size of the NetworkObjectHeader in words.
|
get |
The size of the network object's data in bytes.