feat(terminus): restore single-player pilot loop
This commit is contained in:
parent
97f86d5365
commit
bfb5d9d1d5
11 changed files with 186 additions and 9 deletions
|
|
@ -38,6 +38,7 @@ public static class AetheriaDocumentRegistry
|
|||
typeof(AetheriaEntitySnapshot),
|
||||
typeof(AetheriaVerseHostSettings),
|
||||
typeof(AetheriaMainMenuState),
|
||||
typeof(AetheriaGameSessionState),
|
||||
typeof(AetheriaEveCommandAcceptanceStatus),
|
||||
typeof(AetheriaRuntimeDaemonProviderAdvertisementDocument),
|
||||
typeof(AetheriaRuntimeDaemonHealthDocument),
|
||||
|
|
|
|||
|
|
@ -262,6 +262,9 @@ public sealed class AetheriaStateNode : IAsyncDisposable, IDisposable
|
|||
public static CultRecordKey MainMenuStateKey { get; } =
|
||||
new("global:aetheria.main_menu_state.v1");
|
||||
|
||||
public static CultRecordKey GameSessionStateKey { get; } =
|
||||
new("global:aetheria.game_session.v1");
|
||||
|
||||
public static CultRecordKey TradeValuePolicyKey { get; } =
|
||||
new(AetheriaTradeValuePolicy.RecordKey);
|
||||
|
||||
|
|
|
|||
20
Aetheria.State/Documents/AetheriaGameSessionState.cs
Normal file
20
Aetheria.State/Documents/AetheriaGameSessionState.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using GameCult.Caching;
|
||||
using MessagePack;
|
||||
|
||||
namespace Aetheria.State.Documents;
|
||||
|
||||
[CultDocument("aetheria.game_session", "aetheria.game_session.v1")]
|
||||
[CultGlobal]
|
||||
[MessagePackObject]
|
||||
public sealed class AetheriaGameSessionState
|
||||
{
|
||||
public const string TerminusMode = "terminus";
|
||||
|
||||
[Key(0)] public string Mode { get; set; } = TerminusMode;
|
||||
[Key(1)] public string SessionId { get; set; } = "";
|
||||
[Key(2)] public string RunId { get; set; } = "";
|
||||
[Key(3)] public string ControlledEntityKey { get; set; } = "";
|
||||
[Key(4)] public string EntrySurfaceId { get; set; } = "aetheria.pilot";
|
||||
[Key(5)] public string LastStartCommandId { get; set; } = "";
|
||||
[Key(6)] public string UpdatedAtUtc { get; set; } = "";
|
||||
}
|
||||
Loading…
Reference in a new issue