Carry typed daemon entity indices into Unity

This commit is contained in:
Meta Vens 2026-06-28 11:26:11 +01:00
commit c751157670
5 changed files with 19 additions and 17 deletions

View file

@ -123,8 +123,7 @@ public sealed class AetheriaUnityObservedEntityProjector
private static void ApplyPoseAndSimpleRuntimeState(Entity entity, AetheriaRuntimeEntitySnapshot entitySnapshot)
{
entity.DaemonEntityIndex =
AetheriaUnityDaemonEntitySnapshotProjector.EntityIndexFromRecordKey(entitySnapshot.RecordKey);
entity.DaemonEntityIndex = entitySnapshot.EntityIndex;
entity.Name = entitySnapshot.Name ?? "";
entity.CultPosition = new CultMath.float3((float)entitySnapshot.PositionX, (float)entitySnapshot.PositionY, (float)entitySnapshot.PositionZ);
entity.CultDirection = new CultMath.float2((float)entitySnapshot.DirectionX, (float)entitySnapshot.DirectionY);