Struct CommandSendSystem<TCommandDataSerializer, TCommandData>.SendJobData
Helper struct used by code-generated command job to serialize the ICommand
Inherited Members
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
public struct CommandSendSystem<TCommandDataSerializer, TCommandData>.SendJobData
Fields
Name | Description |
---|---|
auto |
The list of all ghost entities with a Auto |
auto |
Readonly accessor to retrieve the Auto |
commmand |
The readonly Command |
compression |
The compression model used to delta encode the old inputs. The first input (the one for the current tick) is serialized as it is. The older ones, are serialized as delta in respect the first one to reduce the bandwidth. |
ghost |
Reaonly Ghost |
ghost |
Readonly accessor to retrieve the Ghost |
input |
Accessor for retrieving the input buffer from the target entity. |
input |
The server tick the command should be executed on the server. |
network |
The readonly network |
outgoing |
Outgoing |
prev |
The last server tick for which we send this command |
stable |
The stable type hash for the command type. Serialized and used on the server side to match and verify the correctness of the input data sent. |
Methods
Name | Description |
---|---|
Execute(Archetype |
Lookup all the ghost entities for which commands need to be serialized for the current
tick and enqueue them into the Outgoing - the entity referenced by the Command - All ghosts owned by the player (see Ghost |