Class DefaultGhostSpawnSystem<T> | Unity NetCode | 0.2.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    Class DefaultGhostSpawnSystem<T>

    Inheritance
    Object
    DefaultGhostSpawnSystem<T>
    Namespace: Unity.NetCode
    Syntax
    public abstract class DefaultGhostSpawnSystem<T> : JobComponentSystem, IGhostSpawnSystem where T : struct, ISnapshotData<T>
    Type Parameters
    Name Description
    T

    Fields

    m_PlayerGroup

    Declaration
    protected EntityQuery m_PlayerGroup
    Field Value
    Type Description
    EntityQuery

    Properties

    GhostType

    Declaration
    public int GhostType { get; set; }
    Property Value
    Type Description
    Int32

    NewGhostIds

    Declaration
    public NativeList<int> NewGhostIds { get; }
    Property Value
    Type Description
    NativeList<Int32>

    NewGhosts

    Declaration
    public NativeList<T> NewGhosts { get; }
    Property Value
    Type Description
    NativeList<T>

    Methods

    AddGhost(Int32, Entity)

    Declaration
    public void AddGhost(int ghostId, Entity ghostEntity)
    Parameters
    Type Name Description
    Int32 ghostId
    Entity ghostEntity
    Implements
    IGhostSpawnSystem.AddGhost(Int32, Entity)

    CanSpawn(Entity)

    Declaration
    public bool CanSpawn(Entity entity)
    Parameters
    Type Name Description
    Entity entity
    Returns
    Type Description
    Boolean
    Implements
    IGhostSpawnSystem.CanSpawn(Entity)

    MarkPredictedGhosts(NativeArray<T>, NativeArray<Int32>, NativeList<DefaultGhostSpawnSystem<T>.PredictSpawnGhost>, JobHandle)

    Declaration
    protected virtual JobHandle MarkPredictedGhosts(NativeArray<T> snapshots, NativeArray<int> predictionMask, NativeList<DefaultGhostSpawnSystem<T>.PredictSpawnGhost> predictSpawnGhosts, JobHandle inputDeps)
    Parameters
    Type Name Description
    NativeArray<T> snapshots
    NativeArray<Int32> predictionMask
    NativeList<DefaultGhostSpawnSystem.PredictSpawnGhost<>> predictSpawnGhosts
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle

    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

    SetPredictedGhostDefaults(NativeArray<T>, NativeArray<Int32>, JobHandle)

    Declaration
    protected virtual JobHandle SetPredictedGhostDefaults(NativeArray<T> snapshots, NativeArray<int> predictionMask, JobHandle inputDeps)
    Parameters
    Type Name Description
    NativeArray<T> snapshots
    NativeArray<Int32> predictionMask
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle

    UpdateNewInterpolatedEntities(NativeArray<Entity>, JobHandle)

    Declaration
    protected virtual JobHandle UpdateNewInterpolatedEntities(NativeArray<Entity> entities, JobHandle inputDeps)
    Parameters
    Type Name Description
    NativeArray<Entity> entities
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle

    UpdateNewPredictedEntities(NativeArray<Entity>, JobHandle)

    Declaration
    protected virtual JobHandle UpdateNewPredictedEntities(NativeArray<Entity> entities, JobHandle inputDeps)
    Parameters
    Type Name Description
    NativeArray<Entity> entities
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023