Class GhostSendSystem<TGhostSerializerCollection>
Inheritance
GhostSendSystem<TGhostSerializerCollection>
Syntax
public abstract class GhostSendSystem<TGhostSerializerCollection> : JobComponentSystem, IGhostSendSystem where TGhostSerializerCollection : struct, IGhostSerializerCollection
Type Parameters
Name |
Description |
TGhostSerializerCollection |
|
Fields
m_AllocatedGhostIds
Declaration
protected NativeArray<int> m_AllocatedGhostIds
Field Value
Type |
Description |
NativeArray<Int32> |
|
serializers
Declaration
protected TGhostSerializerCollection serializers
Field Value
Type |
Description |
TGhostSerializerCollection |
|
Methods
InvokeSerialize<TSerializer, TSnapshotData>(TSerializer, ref DataStreamWriter, SerializeData)
Declaration
public static int InvokeSerialize<TSerializer, TSnapshotData>(TSerializer serializer, ref DataStreamWriter dataStream, SerializeData data)
where TSerializer : struct, IGhostSerializer<TSnapshotData> where TSnapshotData : struct, ISnapshotData<TSnapshotData>
Parameters
Type |
Name |
Description |
TSerializer |
serializer |
|
DataStreamWriter |
dataStream |
|
SerializeData |
data |
|
Returns
Type Parameters
Name |
Description |
TSerializer |
|
TSnapshotData |
|
IsEnabled()
Declaration
public abstract bool IsEnabled()
Returns
Implements
OnCreate()
Declaration
protected override void OnCreate()
OnDestroy()
Declaration
protected override void OnDestroy()
OnUpdate(JobHandle)
Declaration
protected override JobHandle OnUpdate(JobHandle inputDeps)
Parameters
Type |
Name |
Description |
JobHandle |
inputDeps |
|
Returns
Type |
Description |
JobHandle |
|
SetAllocatedGhostId(Int32)
Declaration
public bool SetAllocatedGhostId(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Returns
Implements