Struct GhostSpawnBuffer
The GhostSpawnBuffer is the data for a GhostSpawnQueueComponent singleton. It contains a list of ghosts which
will be spawned by the GhostSpawnSystem at the beginning of next frame. It is populated by the
GhostReceiveSystem and there needs to be a classification system updating after the GhostReceiveSystem which
sets the SpawnType so the spawn system knows how to spawn the ghost.
A classification system should only modify the SpawnType and PredictedSpawnEntity fields of this struct.
Syntax
public struct GhostSpawnBuffer : IBufferElementData
Fields
DataOffset
Declaration
Field Value
DynamicDataSize
The size of the initial dynamic buffers data associated with the entity.
Declaration
public uint DynamicDataSize
Field Value
GhostID
Declaration
Field Value
GhostType
Declaration
Field Value
PredictedSpawnEntity
Declaration
public Entity PredictedSpawnEntity
Field Value
ServerSpawnTick
The tick this ghost was spawned on the server. For any predicted spawning this is the tick that should
match since you are interested in when the server spawned the ghost, not when the server first sent the
ghost to the client. Using this also means you are not considering ghosts becoming relevant as spawning.
Declaration
public uint ServerSpawnTick
Field Value
SpawnType
Declaration
public GhostSpawnBuffer.Type SpawnType
Field Value