feat(terminus): restore single-player pilot loop

This commit is contained in:
Meta Vens 2026-07-11 01:08:31 +01:00
commit bfb5d9d1d5
11 changed files with 186 additions and 9 deletions

View file

@ -38,6 +38,7 @@ public static class AetheriaDocumentRegistry
typeof(AetheriaEntitySnapshot),
typeof(AetheriaVerseHostSettings),
typeof(AetheriaMainMenuState),
typeof(AetheriaGameSessionState),
typeof(AetheriaEveCommandAcceptanceStatus),
typeof(AetheriaRuntimeDaemonProviderAdvertisementDocument),
typeof(AetheriaRuntimeDaemonHealthDocument),

View file

@ -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);

View 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; } = "";
}