Rename runtime state documents

This commit is contained in:
Meta Vens 2026-06-13 06:27:59 +01:00
commit d3f07df8cc
6 changed files with 34 additions and 37 deletions

View file

@ -33,8 +33,8 @@ public static class AetheriaDocumentRegistry
CultNetDocumentBinding.ForDocument<AetheriaMigrationLedger>(registry),
CultNetDocumentBinding.ForDocument<AetheriaLegacyCatalogQuarantine>(registry),
CultNetDocumentBinding.ForDocument<AetheriaPlayerSettings>(registry),
CultNetDocumentBinding.ForDocument<AetheriaSavedRun>(registry),
CultNetDocumentBinding.ForDocument<AetheriaSavedZone>(registry),
CultNetDocumentBinding.ForDocument<AetheriaRunState>(registry),
CultNetDocumentBinding.ForDocument<AetheriaZoneState>(registry),
CultNetDocumentBinding.ForDocument<AetheriaEntitySnapshot>(registry)
});
}
@ -50,8 +50,8 @@ public static class AetheriaDocumentRegistry
typeof(AetheriaMigrationLedger),
typeof(AetheriaLegacyCatalogQuarantine),
typeof(AetheriaPlayerSettings),
typeof(AetheriaSavedRun),
typeof(AetheriaSavedZone),
typeof(AetheriaRunState),
typeof(AetheriaZoneState),
typeof(AetheriaEntitySnapshot)
];
}

View file

@ -130,14 +130,14 @@ public sealed class AetheriaStateNode : IAsyncDisposable, IDisposable
return Database.GetAsync<AetheriaPlayerSettings>(new CultRecordKey("global:aetheria.player_settings.v1"));
}
public Task<CultRecordHandle<AetheriaSavedRun>> PutSavedRunAsync(CultRecordKey key, AetheriaSavedRun run)
public Task<CultRecordHandle<AetheriaRunState>> PutRunStateAsync(CultRecordKey key, AetheriaRunState run)
{
return Database.PutAsync(key, run);
}
public Task<AetheriaSavedRun?> GetSavedRunAsync(CultRecordKey key)
public Task<AetheriaRunState?> GetRunStateAsync(CultRecordKey key)
{
return Database.GetAsync<AetheriaSavedRun>(key);
return Database.GetAsync<AetheriaRunState>(key);
}
public Task FlushAsync(bool soft = false)

View file

@ -13,16 +13,16 @@ public sealed class AetheriaPlayerSettings
public string Name { get; set; } = "Aetheria player settings";
[Key(1)]
[CultReference(typeof(AetheriaSavedRun))]
[CultReference(typeof(AetheriaRunState))]
public string ActiveRunKey { get; set; } = "";
[Key(2)]
public string LastUpdatedAtUtc { get; set; } = "";
}
[CultDocument("aetheria.saved_run", "aetheria.saved_run.v1")]
[CultDocument("aetheria.run_state", "aetheria.run_state.v1")]
[MessagePackObject]
public sealed class AetheriaSavedRun
public sealed class AetheriaRunState
{
[Key(0)]
[CultName]
@ -47,7 +47,7 @@ public sealed class AetheriaSavedRun
public int[] DiscoveredZoneIndices { get; set; } = [];
[Key(7)]
[CultReference(typeof(AetheriaSavedZone), many: true)]
[CultReference(typeof(AetheriaZoneState), many: true)]
public string[] ZoneKeys { get; set; } = [];
[Key(8)]
@ -60,9 +60,9 @@ public sealed class AetheriaSavedRun
public string UpdatedAtUtc { get; set; } = "";
}
[CultDocument("aetheria.saved_zone", "aetheria.saved_zone.v1")]
[CultDocument("aetheria.zone_state", "aetheria.zone_state.v1")]
[MessagePackObject]
public sealed class AetheriaSavedZone
public sealed class AetheriaZoneState
{
[Key(0)]
[CultName]

View file

@ -9,10 +9,11 @@ tree, RethinkDB, JsonKnownTypes, or Newtonsoft.Json.
The first live state file is `GameData/aetheria-world.cc`. Legacy files such as
`GameData/AetherDB.msgpack` are migration inputs only.
The typed save model is split into player settings, saved runs, saved zones,
entity snapshots, item slots, weapon groups, action-bar bindings, and stat
grids. Do not preserve `SavedGame` or `EntityPack` as opaque payloads in the
new store; they are source shapes for migration, not portable state authority.
The typed runtime state model is split into player settings, run state, zone
state, entity snapshots, item slots, weapon groups, action-bar bindings, and
stat grids. Do not preserve `SavedGame` or `EntityPack` as opaque payloads in
the new store; they are source shapes for migration, not portable state
authority.
The Unity client no longer writes `PlayerSettings.msgpack`, `.loadout`, or
`.zone` files. Until `Aetheria.State` is available to Unity as a runtime Verse
@ -21,8 +22,8 @@ disabled. That is intentional: the missing runtime package is the owner gap, and
the old bespoke file formats must not keep acting as durable truth while the
state spine is being rebuilt.
The old `SavedGame`/`SavedZone` DTOs and `Galaxy` loader constructor have also
been deleted; the only save model left is the typed `AetheriaSavedRun` document
family in this project.
been deleted; the new document family is live Verse run/zone state, not a
bespoke save-file format.
Keyboard layout rendering now reads the checked-in Unity text asset directly.
The old generated `GameData/KeyboardLayouts/*.msgpack` cache was deleted; layout