Rename zone-state orbit and body ids to keys

This commit is contained in:
Meta Vens 2026-06-16 17:03:59 +01:00
commit c0aec84af4
7 changed files with 131 additions and 27 deletions

View file

@ -315,8 +315,8 @@ public static class AetheriaRuntimeCommitLogApplier
return (orbits ?? Array.Empty<AetheriaRuntimeOrbitSnapshotCommit>())
.Select(orbit => new AetheriaOrbitSnapshot
{
OrbitId = orbit.OrbitKey ?? "",
ParentId = orbit.ParentOrbitKey ?? "",
OrbitKey = orbit.OrbitKey ?? "",
ParentOrbitKey = orbit.ParentOrbitKey ?? "",
Distance = orbit.Distance,
Phase = orbit.Phase,
FixedPosition = new AetheriaVector2
@ -336,10 +336,10 @@ public static class AetheriaRuntimeCommitLogApplier
return (bodies ?? Array.Empty<AetheriaRuntimeBodySnapshotCommit>())
.Select(body => new AetheriaBodySnapshot
{
BodyId = body.BodyKey ?? "",
BodyKey = body.BodyKey ?? "",
Kind = body.Kind ?? "",
Name = body.Name ?? "",
OrbitId = body.OrbitKey ?? "",
OrbitKey = body.OrbitKey ?? "",
Mass = body.Mass,
Resources = ToBodyResources(body.Resources),
BodyRadiusMultiplier = body.BodyRadiusMultiplier,