feat: simplified local-space and celestial, removed bubbles

This commit is contained in:
2026-03-18 08:49:35 -04:00
parent 00a008bda5
commit 933c6afd08
19 changed files with 246 additions and 448 deletions

View File

@@ -30,7 +30,7 @@ public sealed record ResourceNodeSnapshot(
string Id,
string SystemId,
Vector3Dto LocalPosition,
string? AnchorNodeId,
string? CelestialId,
string SourceKind,
float OreRemaining,
float MaxOre,
@@ -40,48 +40,28 @@ public sealed record ResourceNodeDelta(
string Id,
string SystemId,
Vector3Dto LocalPosition,
string? AnchorNodeId,
string? CelestialId,
string SourceKind,
float OreRemaining,
float MaxOre,
string ItemId);
public sealed record SpatialNodeSnapshot(
public sealed record CelestialSnapshot(
string Id,
string SystemId,
string Kind,
Vector3Dto LocalPosition,
string BubbleId,
Vector3Dto OrbitalAnchor,
float LocalSpaceRadius,
string? ParentNodeId,
string? OccupyingStructureId,
string? OrbitReferenceId);
public sealed record SpatialNodeDelta(
public sealed record CelestialDelta(
string Id,
string SystemId,
string Kind,
Vector3Dto LocalPosition,
string BubbleId,
Vector3Dto OrbitalAnchor,
float LocalSpaceRadius,
string? ParentNodeId,
string? OccupyingStructureId,
string? OrbitReferenceId);
public sealed record LocalBubbleSnapshot(
string Id,
string NodeId,
string SystemId,
float Radius,
IReadOnlyList<string> OccupantShipIds,
IReadOnlyList<string> OccupantStationIds,
IReadOnlyList<string> OccupantClaimIds,
IReadOnlyList<string> OccupantConstructionSiteIds);
public sealed record LocalBubbleDelta(
string Id,
string NodeId,
string SystemId,
float Radius,
IReadOnlyList<string> OccupantShipIds,
IReadOnlyList<string> OccupantStationIds,
IReadOnlyList<string> OccupantClaimIds,
IReadOnlyList<string> OccupantConstructionSiteIds);

View File

@@ -10,9 +10,7 @@ public sealed record StationSnapshot(
string Category,
string SystemId,
Vector3Dto LocalPosition,
string? NodeId,
string? BubbleId,
string? AnchorNodeId,
string? CelestialId,
string Color,
int DockedShips,
IReadOnlyList<string> DockedShipIds,
@@ -36,9 +34,7 @@ public sealed record StationDelta(
string Category,
string SystemId,
Vector3Dto LocalPosition,
string? NodeId,
string? BubbleId,
string? AnchorNodeId,
string? CelestialId,
string Color,
int DockedShips,
IReadOnlyList<string> DockedShipIds,
@@ -70,8 +66,7 @@ public sealed record ClaimSnapshot(
string Id,
string FactionId,
string SystemId,
string NodeId,
string BubbleId,
string CelestialId,
string State,
float Health,
DateTimeOffset PlacedAtUtc,
@@ -81,8 +76,7 @@ public sealed record ClaimDelta(
string Id,
string FactionId,
string SystemId,
string NodeId,
string BubbleId,
string CelestialId,
string State,
float Health,
DateTimeOffset PlacedAtUtc,
@@ -92,8 +86,7 @@ public sealed record ConstructionSiteSnapshot(
string Id,
string FactionId,
string SystemId,
string NodeId,
string BubbleId,
string CelestialId,
string TargetKind,
string TargetDefinitionId,
string? BlueprintId,
@@ -111,8 +104,7 @@ public sealed record ConstructionSiteDelta(
string Id,
string FactionId,
string SystemId,
string NodeId,
string BubbleId,
string CelestialId,
string TargetKind,
string TargetDefinitionId,
string? BlueprintId,

View File

@@ -15,8 +15,7 @@ public sealed record ShipSnapshot(
string? BehaviorPhase,
string ControllerTaskKind,
string? CommanderObjective,
string? NodeId,
string? BubbleId,
string? CelestialId,
string? DockedStationId,
string? CommanderId,
string? PolicySetId,
@@ -46,8 +45,7 @@ public sealed record ShipDelta(
string? BehaviorPhase,
string ControllerTaskKind,
string? CommanderObjective,
string? NodeId,
string? BubbleId,
string? CelestialId,
string? DockedStationId,
string? CommanderId,
string? PolicySetId,
@@ -69,8 +67,7 @@ public sealed record ShipActionProgressSnapshot(
public sealed record ShipSpatialStateSnapshot(
string SpaceLayer,
string CurrentSystemId,
string? CurrentNodeId,
string? CurrentBubbleId,
string? CurrentCelestialId,
Vector3Dto? LocalPosition,
Vector3Dto? SystemPosition,
string MovementRegime,

View File

@@ -9,8 +9,7 @@ public sealed record WorldSnapshot(
OrbitalSimulationSnapshot OrbitalSimulation,
DateTimeOffset GeneratedAtUtc,
IReadOnlyList<SystemSnapshot> Systems,
IReadOnlyList<SpatialNodeSnapshot> SpatialNodes,
IReadOnlyList<LocalBubbleSnapshot> LocalBubbles,
IReadOnlyList<CelestialSnapshot> Celestials,
IReadOnlyList<ResourceNodeSnapshot> Nodes,
IReadOnlyList<StationSnapshot> Stations,
IReadOnlyList<ClaimSnapshot> Claims,
@@ -28,8 +27,7 @@ public sealed record WorldDelta(
DateTimeOffset GeneratedAtUtc,
bool RequiresSnapshotRefresh,
IReadOnlyList<SimulationEventRecord> Events,
IReadOnlyList<SpatialNodeDelta> SpatialNodes,
IReadOnlyList<LocalBubbleDelta> LocalBubbles,
IReadOnlyList<CelestialDelta> Celestials,
IReadOnlyList<ResourceNodeDelta> Nodes,
IReadOnlyList<StationDelta> Stations,
IReadOnlyList<ClaimDelta> Claims,
@@ -54,7 +52,7 @@ public sealed record SimulationEventRecord(
public sealed record ObserverScope(
string ScopeKind,
string? SystemId = null,
string? BubbleId = null);
string? CelestialId = null);
public sealed record OrbitalSimulationSnapshot(
double SimulatedSecondsPerRealSecond);