Co-Op Layer

This commit is contained in:
Luis Gonzalez
2026-06-01 10:48:18 -07:00
parent 1f647dd5e1
commit e851d5f8e9
29 changed files with 667 additions and 20 deletions
@@ -63,7 +63,7 @@ namespace ProjectM.Client
SystemAPI.GetSingletonEntity<GhostCollection>(),
SystemAPI.GetSingletonEntity<SpawnedGhostEntityMap>());
m_PredictedGhostSpawnLookup = state.GetBufferLookup<PredictedGhostSpawn>(true);
m_PredictedGhostSpawnLookup = state.GetBufferLookup<PredictedGhostSpawn>(false);
m_ProjectileLookup = state.GetComponentLookup<Projectile>(true);
state.RequireForUpdate<GhostSpawnQueue>();
@@ -134,7 +134,7 @@ namespace ProjectM.Client
// is NOT marked [ReadOnly].
public Entity PredictedSpawnListEntity;
[ReadOnly] public BufferLookup<PredictedGhostSpawn> PredictedGhostSpawnLookup;
public BufferLookup<PredictedGhostSpawn> PredictedGhostSpawnLookup;
[ReadOnly] public ComponentLookup<Projectile> ProjectileLookup;
// 'data' is taken by value (NOT 'in') because TryGetComponentDataFromSnapshotHistory needs a