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. | |
override bool | Equals (object obj) |
Checks if the current instance of NetworkObjectHeader is equal to another object. | |
override int | GetHashCode () |
Generates a hash code for the current instance of NetworkObjectHeader. | |
override string | ToString () |
The string representation of the NetworkObjectHeader. | |
Static Public Member Functions | |
static int * | GetBehaviourChangedTickArray (NetworkObjectHeader *header) |
Returns a pointer to the array of behaviour change ticks in a NetworkObjectHeader. | |
static int * | GetDataPointer (NetworkObjectHeader *header) |
Returns a pointer to the data of a NetworkObjectHeader. | |
static int | GetDataWordCount (NetworkObjectHeader *header) |
Returns the count of data words in a NetworkObjectHeader. | |
static NetworkTRSPData * | GetMainNetworkTRSPData (NetworkObjectHeader *header) |
Returns a pointer to the main network TRSP data of a NetworkObjectHeader, if it exists. | |
static bool | HasMainNetworkTRSP (NetworkObjectHeader *header) |
Checks if a NetworkObjectHeader has a main network TRSP. | |
static bool | operator!= (NetworkObjectHeader left, NetworkObjectHeader right) |
Determines if two instances of NetworkObjectHeader are not equal. | |
static bool | operator== (NetworkObjectHeader left, NetworkObjectHeader right) |
Determines if two instances of NetworkObjectHeader are equal. | |
Public Attributes | |
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. | |
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 number of words in the network object header. | |
Static Public Attributes | |
const int | PLAYER_DATA_WORD = 36 / Allocator.REPLICATE_WORD_SIZE |
The word index of the player data in the NetworkObjectHeader. | |
const int | SIZE = 80 |
The size of the NetworkObjectHeader in bytes. | |
const int | WORDS = SIZE / Allocator.REPLICATE_WORD_SIZE |
The size of the NetworkObjectHeader in words. | |
Properties | |
int | ByteCount [get] |
how many bytes this headers object is | |
Network object header information for a NetworkObject.
|
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. |
|
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.