Complete universe model migration
This commit is contained in:
@@ -6,6 +6,7 @@ public sealed class SimulationWorld
|
||||
public required string Label { get; init; }
|
||||
public required int Seed { get; init; }
|
||||
public required List<SystemRuntime> Systems { get; init; }
|
||||
public required List<AnchorRuntime> Anchors { get; init; }
|
||||
public required List<ResourceNodeRuntime> Nodes { get; init; }
|
||||
public required List<CelestialRuntime> Celestials { get; init; }
|
||||
public required List<WreckRuntime> Wrecks { get; init; }
|
||||
|
||||
@@ -7,22 +7,49 @@ public sealed class SystemRuntime
|
||||
public required Vector3 Position { get; init; }
|
||||
}
|
||||
|
||||
public sealed class AnchorRuntime
|
||||
{
|
||||
public required string Id { get; init; }
|
||||
public required string SystemId { get; init; }
|
||||
public required SpatialNodeKind Kind { get; init; }
|
||||
public required Vector3 Position { get; set; }
|
||||
public float LocalSpaceRadius { get; set; }
|
||||
public string? ParentAnchorId { get; set; }
|
||||
public string? OrbitReferenceId { get; set; }
|
||||
public string? OccupyingStructureId { get; set; }
|
||||
public required string SourceEntityKind { get; init; }
|
||||
public required string SourceEntityId { get; init; }
|
||||
public string LastDeltaSignature { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public sealed class ResourceNodeRuntime
|
||||
{
|
||||
public required string Id { get; init; }
|
||||
public required string AnchorId { get; init; }
|
||||
public required string SystemId { get; init; }
|
||||
public required Vector3 Position { get; set; }
|
||||
public required string SourceKind { get; init; }
|
||||
public required string ItemId { get; init; }
|
||||
public string? CelestialId { get; set; }
|
||||
public float LocalSpaceRadius { get; init; }
|
||||
public float OrbitRadius { get; init; }
|
||||
public float OrbitPhase { get; init; }
|
||||
public float OrbitInclination { get; init; }
|
||||
public float OreRemaining { get; set; }
|
||||
public float MaxOre { get; init; }
|
||||
public List<ResourceDepositRuntime> Deposits { get; } = [];
|
||||
public string LastDeltaSignature { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public sealed class ResourceDepositRuntime
|
||||
{
|
||||
public required string Id { get; init; }
|
||||
public required string NodeId { get; init; }
|
||||
public required string AnchorId { get; init; }
|
||||
public required Vector3 Position { get; set; }
|
||||
public float OreRemaining { get; set; }
|
||||
public float MaxOre { get; init; }
|
||||
}
|
||||
|
||||
public sealed class CelestialRuntime
|
||||
{
|
||||
public required string Id { get; init; }
|
||||
@@ -30,7 +57,7 @@ public sealed class CelestialRuntime
|
||||
public required SpatialNodeKind Kind { get; init; }
|
||||
public required Vector3 Position { get; set; }
|
||||
public float LocalSpaceRadius { get; init; }
|
||||
public string? ParentNodeId { get; set; }
|
||||
public string? ParentAnchorId { get; set; }
|
||||
public string? OccupyingStructureId { get; set; }
|
||||
public string? OrbitReferenceId { get; set; }
|
||||
public string LastDeltaSignature { get; set; } = string.Empty;
|
||||
@@ -52,19 +79,19 @@ public sealed class ShipSpatialStateRuntime
|
||||
{
|
||||
public SpaceLayerKind SpaceLayer { get; set; } = SpaceLayerKind.LocalSpace;
|
||||
public required string CurrentSystemId { get; set; }
|
||||
public string? CurrentCelestialId { get; set; }
|
||||
public string? CurrentAnchorId { get; set; }
|
||||
public Vector3? LocalPosition { get; set; }
|
||||
public Vector3? SystemPosition { get; set; }
|
||||
public MovementRegimeKind MovementRegime { get; set; } = MovementRegimeKind.LocalFlight;
|
||||
public string? DestinationNodeId { get; set; }
|
||||
public string? DestinationAnchorId { get; set; }
|
||||
public ShipTransitRuntime? Transit { get; set; }
|
||||
}
|
||||
|
||||
public sealed class ShipTransitRuntime
|
||||
{
|
||||
public required MovementRegimeKind Regime { get; init; }
|
||||
public string? OriginNodeId { get; init; }
|
||||
public string? DestinationNodeId { get; init; }
|
||||
public string? OriginAnchorId { get; init; }
|
||||
public string? DestinationAnchorId { get; init; }
|
||||
public DateTimeOffset? StartedAtUtc { get; set; }
|
||||
public DateTimeOffset? ArrivalDueAtUtc { get; set; }
|
||||
public float Progress { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user