Class BufferSerializationHelper<TComponentType, TSnapshot, TSerializer>
Helper class used by code-gen to setup the serialisation function pointers.
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
[BurstCompile]
public static class BufferSerializationHelper<TComponentType, TSnapshot, TSerializer> where TComponentType : unmanaged where TSnapshot : unmanaged where TSerializer : unmanaged, IGhostSerializer
Type Parameters
Name | Description |
---|---|
TComponentType | The unmanaged buffer the helper serialise |
TSnapshot | The snaphost data struct that contains the IBufferElementData data. |
TSerializer | A concrete type that implement the IGhostSerializer interface. |
Methods
SetupFunctionPointers(ref State, ref SystemState)
Setup all the GhostComponentSerializer.State data and function pointers.
Declaration
public static bool SetupFunctionPointers(ref GhostComponentSerializer.State state, ref SystemState systemState)
Parameters
Type | Name | Description |
---|---|---|
GhostComponentSerializer.State | state | |
SystemState | systemState |
Returns
Type | Description |
---|---|
bool | if the /> has been initialised. |