Struct CommandReceiveSystem<TCommandDataSerializer, TCommandData>.ReceiveJobData
Helper struct used by code-gen for implementing the Execute method of the the generated receiving job.
The ReceiveJobData implement the command deserialization logic, by reading from the data stream the
serialized commands and enqueuing them into the taget entity command buffer.
As part of the command deserialization, if a Command
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public struct CommandReceiveSystem<TCommandDataSerializer, TCommandData>.ReceiveJobData
Fields
autoCommandTargetFromEntity
Accessor for retrieving the optional Auto
Declaration
[ReadOnly]
public ComponentLookup<AutoCommandTarget> autoCommandTargetFromEntity
Field Value
Type | Description |
---|---|
Component |
cmdBufferType
Read-only type handle for reading the data from the Incoming
Declaration
[ReadOnly]
public BufferTypeHandle<IncomingCommandDataStreamBuffer> cmdBufferType
Field Value
Type | Description |
---|---|
Buffer |
commandData
The output command buffer where the deserialized command are added.
Declaration
public BufferLookup<TCommandData> commandData
Field Value
Type | Description |
---|---|
Buffer |
commmandTargetType
Read-only type handle to get the Command
Declaration
[ReadOnly]
public ComponentTypeHandle<CommandTarget> commmandTargetType
Field Value
Type | Description |
---|---|
Component |
compressionModel
The compression model used for decoding the delta compressed commands.
Declaration
public StreamCompressionModel compressionModel
Field Value
Type | Description |
---|---|
Stream |
delayFromEntity
Accessor for retrieving the optional Command
Declaration
public ComponentLookup<CommandDataInterpolationDelay> delayFromEntity
Field Value
Type | Description |
---|---|
Component |
enablePacketLoggingType
Type handle for Enable
Declaration
public ComponentTypeHandle<EnablePacketLogging> enablePacketLoggingType
Field Value
Type | Description |
---|---|
Component |
ghostMap
A readonly mapping to retrieve a ghost entity instance from a Spawned
Declaration
[ReadOnly]
public NativeParallelHashMap<SpawnedGhost, Entity>.ReadOnly ghostMap
Field Value
Type | Description |
---|---|
Native |
ghostOwnerFromEntity
Accessor for retrieving the optional Ghost
Declaration
[ReadOnly]
public ComponentLookup<GhostOwner> ghostOwnerFromEntity
Field Value
Type | Description |
---|---|
Component |
netDebug
The Net
Declaration
public NetDebug netDebug
Field Value
Type | Description |
---|---|
Net |
networkIdType
Read-only type handle to get the Network
Declaration
[ReadOnly]
public ComponentTypeHandle<NetworkId> networkIdType
Field Value
Type | Description |
---|---|
Component |
serverTick
The current server tick
Declaration
public NetworkTick serverTick
Field Value
Type | Description |
---|---|
Network |
snapshotAckType
Type handle to get the Network
Declaration
public ComponentTypeHandle<NetworkSnapshotAck> snapshotAckType
Field Value
Type | Description |
---|---|
Component |
stableHash
The stable hash for the ICommand
Declaration
public ulong stableHash
Field Value
Type | Description |
---|---|
ulong |
Methods
Execute(ArchetypeChunk, int)
Decode the commands present in the Incoming
Declaration
public void Execute(ArchetypeChunk chunk, int orderIndex)
Parameters
Type | Name | Description |
---|---|---|
Archetype |
chunk | Chunk containing commands to decode |
int | orderIndex | Order index |