Refactor simulation and viewer architecture
This commit is contained in:
47
apps/backend/Contracts/WorldContracts.Economy.cs
Normal file
47
apps/backend/Contracts/WorldContracts.Economy.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
namespace SpaceGame.Simulation.Api.Contracts;
|
||||
|
||||
public sealed record MarketOrderSnapshot(
|
||||
string Id,
|
||||
string FactionId,
|
||||
string? StationId,
|
||||
string? ConstructionSiteId,
|
||||
string Kind,
|
||||
string ItemId,
|
||||
float Amount,
|
||||
float RemainingAmount,
|
||||
float Valuation,
|
||||
float? ReserveThreshold,
|
||||
string? PolicySetId,
|
||||
string State);
|
||||
|
||||
public sealed record MarketOrderDelta(
|
||||
string Id,
|
||||
string FactionId,
|
||||
string? StationId,
|
||||
string? ConstructionSiteId,
|
||||
string Kind,
|
||||
string ItemId,
|
||||
float Amount,
|
||||
float RemainingAmount,
|
||||
float Valuation,
|
||||
float? ReserveThreshold,
|
||||
string? PolicySetId,
|
||||
string State);
|
||||
|
||||
public sealed record PolicySetSnapshot(
|
||||
string Id,
|
||||
string OwnerKind,
|
||||
string OwnerId,
|
||||
string TradeAccessPolicy,
|
||||
string DockingAccessPolicy,
|
||||
string ConstructionAccessPolicy,
|
||||
string OperationalRangePolicy);
|
||||
|
||||
public sealed record PolicySetDelta(
|
||||
string Id,
|
||||
string OwnerKind,
|
||||
string OwnerId,
|
||||
string TradeAccessPolicy,
|
||||
string DockingAccessPolicy,
|
||||
string ConstructionAccessPolicy,
|
||||
string OperationalRangePolicy);
|
||||
Reference in New Issue
Block a user