Class GhostSendSystem<TGhostSerializerCollection> | Unity NetCode | 0.2.0-preview.5
docs.unity.cn
    Show / Hide Table of Contents

    Class GhostSendSystem<TGhostSerializerCollection>

    Inheritance
    Object
    GhostSendSystem<TGhostSerializerCollection>
    Namespace: Unity.NetCode
    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 Description
    Int32
    Type Parameters
    Name Description
    TSerializer
    TSnapshotData

    IsEnabled()

    Declaration
    public abstract bool IsEnabled()
    Returns
    Type Description
    Boolean
    Implements
    IGhostSendSystem.IsEnabled()

    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
    Type Description
    Boolean
    Implements
    IGhostSendSystem.SetAllocatedGhostId(Int32)
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX