Refactor runtime bootstrap and ship control flows
This commit is contained in:
19
apps/backend/Ships/Contracts/ShipAutomation.cs
Normal file
19
apps/backend/Ships/Contracts/ShipAutomation.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace SpaceGame.Api.Ships.Contracts;
|
||||
|
||||
public sealed record ShipBehaviorDefinitionSnapshot(
|
||||
string Id,
|
||||
string Label,
|
||||
string Category,
|
||||
string SupportStatus,
|
||||
string Notes);
|
||||
|
||||
public sealed record ShipOrderDefinitionSnapshot(
|
||||
string Id,
|
||||
string Label,
|
||||
string Category,
|
||||
string SupportStatus,
|
||||
string Notes);
|
||||
|
||||
public sealed record ShipAutomationCatalogSnapshot(
|
||||
IReadOnlyList<ShipBehaviorDefinitionSnapshot> Behaviors,
|
||||
IReadOnlyList<ShipOrderDefinitionSnapshot> Orders);
|
||||
@@ -42,7 +42,7 @@ public sealed record ShipDefaultBehaviorCommandRequest(
|
||||
string? HomeStationId,
|
||||
string? AreaSystemId,
|
||||
string? TargetEntityId,
|
||||
string? PreferredItemId,
|
||||
string? ItemId,
|
||||
string? PreferredNodeId,
|
||||
string? PreferredConstructionSiteId,
|
||||
string? PreferredModuleId,
|
||||
|
||||
@@ -10,6 +10,8 @@ public sealed record ShipSkillProfileSnapshot(
|
||||
public sealed record ShipOrderSnapshot(
|
||||
string Id,
|
||||
string Kind,
|
||||
string SourceKind,
|
||||
string SourceId,
|
||||
string Status,
|
||||
int Priority,
|
||||
bool InterruptCurrentPlan,
|
||||
@@ -53,7 +55,7 @@ public sealed record DefaultBehaviorSnapshot(
|
||||
string? HomeStationId,
|
||||
string? AreaSystemId,
|
||||
string? TargetEntityId,
|
||||
string? PreferredItemId,
|
||||
string? ItemId,
|
||||
string? PreferredNodeId,
|
||||
string? PreferredConstructionSiteId,
|
||||
string? PreferredModuleId,
|
||||
@@ -129,9 +131,9 @@ public sealed record ShipPlanSnapshot(
|
||||
|
||||
public sealed record ShipSnapshot(
|
||||
string Id,
|
||||
string Label,
|
||||
string Kind,
|
||||
string Class,
|
||||
string Name,
|
||||
string Purpose,
|
||||
string Type,
|
||||
string SystemId,
|
||||
Vector3Dto LocalPosition,
|
||||
Vector3Dto LocalVelocity,
|
||||
@@ -164,9 +166,9 @@ public sealed record ShipSnapshot(
|
||||
|
||||
public sealed record ShipDelta(
|
||||
string Id,
|
||||
string Label,
|
||||
string Kind,
|
||||
string Class,
|
||||
string Name,
|
||||
string Purpose,
|
||||
string Type,
|
||||
string SystemId,
|
||||
Vector3Dto LocalPosition,
|
||||
Vector3Dto LocalVelocity,
|
||||
|
||||
Reference in New Issue
Block a user