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

@@ -77,6 +77,11 @@ export interface ResourceNodeSnapshot {
export interface ResourceNodeDelta extends ResourceNodeSnapshot {}
export interface InventoryEntry {
itemId: string;
amount: number;
}
export interface StationSnapshot {
id: string;
label: string;
@@ -85,8 +90,8 @@ export interface StationSnapshot {
localPosition: Vector3Dto;
color: string;
dockedShips: number;
oreStored: number;
refinedStock: number;
energyStored: number;
inventory: InventoryEntry[];
factionId: string;
}
@@ -105,9 +110,9 @@ export interface ShipSnapshot {
orderKind: string | null;
defaultBehaviorKind: string;
controllerTaskKind: string;
cargo: number;
cargoCapacity: number;
cargoItemId: string | null;
energyStored: number;
inventory: InventoryEntry[];
factionId: string;
health: number;
history: string[];