Struct PrespawnGhostSerializer
Build the ghost baseline for all the pre-spawned ghosts present in the world.
The job will add to the entities a new buffer, PrespawGhostBaseline, witch will contains the
a pre-serialized snapshot of the entity at the time the job run.
NOTE: The serialization does not depend on component stripping (it is only dependent on the ghost type archetype
serializer /omponent that is guarantee to be same on both client and server and that is handled by the GhostCollectionSystem)
Syntax
[BurstCompatible]
[BurstCompile]
public struct PrespawnGhostSerializer : IJobChunk
Fields
baselineHashes
Declaration
public NativeArray<ulong> baselineHashes
Field Value
childEntityLookup
Declaration
[ReadOnly]
public StorageInfoFromEntity childEntityLookup
Field Value
entityType
Declaration
[ReadOnly]
public EntityTypeHandle entityType
Field Value
ghostChunkComponentTypes
Declaration
[ReadOnly]
public DynamicTypeList ghostChunkComponentTypes
Field Value
GhostCollectionFromEntity
Declaration
[ReadOnly]
public BufferFromEntity<GhostCollectionPrefab> GhostCollectionFromEntity
Field Value
GhostCollectionSingleton
Declaration
public Entity GhostCollectionSingleton
Field Value
GhostComponentCollectionFromEntity
Declaration
[ReadOnly]
public BufferFromEntity<GhostComponentSerializer.State> GhostComponentCollectionFromEntity
Field Value
GhostComponentIndexFromEntity
Declaration
[ReadOnly]
public BufferFromEntity<GhostCollectionComponentIndex> GhostComponentIndexFromEntity
Field Value
ghostFromEntity
Declaration
[ReadOnly]
public ComponentDataFromEntity<GhostComponent> ghostFromEntity
Field Value
GhostTypeCollectionFromEntity
Declaration
[ReadOnly]
public BufferFromEntity<GhostCollectionPrefabSerializer> GhostTypeCollectionFromEntity
Field Value
ghostTypeComponentType
Declaration
[ReadOnly]
public ComponentTypeHandle<GhostTypeComponent> ghostTypeComponentType
Field Value
linkedEntityGroupType
Declaration
[ReadOnly]
public BufferTypeHandle<LinkedEntityGroup> linkedEntityGroupType
Field Value
prespawnBaseline
Declaration
[NativeDisableParallelForRestriction]
public BufferTypeHandle<PrespawnGhostBaseline> prespawnBaseline
Field Value
Methods
Execute(ArchetypeChunk, Int32, Int32)
Declaration
public void Execute(ArchetypeChunk chunk, int chunkIndex, int firstEntityIndex)
Parameters
Implements