Class DefaultGhostSpawnSystem<T>
Inheritance
DefaultGhostSpawnSystem<T>
Syntax
public abstract class DefaultGhostSpawnSystem<T> : JobComponentSystem where T : struct, ISnapshotData<T>
Type Parameters
Fields
m_PlayerGroup
Declaration
protected EntityQuery m_PlayerGroup
Field Value
Type |
Description |
EntityQuery |
|
Properties
GhostType
Declaration
public int GhostType { get; set; }
Property Value
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
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
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 |
|