Query asteroid render poses from daemon state

This commit is contained in:
Meta Vens 2026-06-21 15:47:39 +01:00
commit b353652316
6 changed files with 246 additions and 35 deletions

View file

@ -2693,7 +2693,6 @@ public class ActionGameManager : MonoBehaviour
if (!_authoritativeDaemonEntities.TryGetValue(entitySnapshot.RecordKey, out var entity))
continue;
entity.DaemonRecordKey = entitySnapshot.RecordKey ?? "";
entity.DaemonEntityIndex = EntityIndexFromRecordKey(entitySnapshot.RecordKey);
entity.Name = entitySnapshot.Name ?? "";
entity.CultPosition = new CultMath.float3((float)entitySnapshot.PositionX, (float)entitySnapshot.PositionY, (float)entitySnapshot.PositionZ);
@ -2768,7 +2767,6 @@ public class ActionGameManager : MonoBehaviour
entity.OverrideShutdown = entitySnapshot.OverrideShutdown;
entity.TractorPower = (float)entitySnapshot.TractorPower;
entity.RestoreActiveState(entitySnapshot.IsActive);
entity.DaemonRecordKey = entitySnapshot.RecordKey ?? "";
entity.DaemonEntityIndex = EntityIndexFromRecordKey(entitySnapshot.RecordKey);
entity.Zone = Zone;
Zone.Entities.Add(entity);