Refactor modular startup and viewer ship debugging

This commit is contained in:
2026-03-13 01:57:13 -04:00
parent a9c08124f5
commit c7fcb08ba6
13 changed files with 962 additions and 127 deletions

View File

@@ -74,6 +74,10 @@ public sealed record ResourceNodeDelta(
float MaxOre,
string ItemId);
public sealed record InventoryEntry(
string ItemId,
float Amount);
public sealed record StationSnapshot(
string Id,
string Label,
@@ -82,8 +86,8 @@ public sealed record StationSnapshot(
Vector3Dto LocalPosition,
string Color,
int DockedShips,
float OreStored,
float RefinedStock,
float EnergyStored,
IReadOnlyList<InventoryEntry> Inventory,
string FactionId);
public sealed record StationDelta(
@@ -94,8 +98,8 @@ public sealed record StationDelta(
Vector3Dto LocalPosition,
string Color,
int DockedShips,
float OreStored,
float RefinedStock,
float EnergyStored,
IReadOnlyList<InventoryEntry> Inventory,
string FactionId);
public sealed record ShipSnapshot(
@@ -111,9 +115,9 @@ public sealed record ShipSnapshot(
string? OrderKind,
string DefaultBehaviorKind,
string ControllerTaskKind,
float Cargo,
float CargoCapacity,
string? CargoItemId,
float EnergyStored,
IReadOnlyList<InventoryEntry> Inventory,
string FactionId,
float Health,
IReadOnlyList<string> History);
@@ -131,9 +135,9 @@ public sealed record ShipDelta(
string? OrderKind,
string DefaultBehaviorKind,
string ControllerTaskKind,
float Cargo,
float CargoCapacity,
string? CargoItemId,
float EnergyStored,
IReadOnlyList<InventoryEntry> Inventory,
string FactionId,
float Health,
IReadOnlyList<string> History);