refactor(runtime): expose canonical gameplay state
Move character options and movement skills into the Runtime-owned character graph, expose borrowed inventory, character, and social views, and route retained UI state commands through generation-gated typed Runtime contracts. Preserve the existing synchronous wire path while deleting the App-owned option and skill mirrors and extending normalized parity checkpoints. Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
parent
9d0d9b07e0
commit
dcb61efb5a
34 changed files with 2076 additions and 103 deletions
|
|
@ -13,6 +13,10 @@ public enum RuntimeCommandDomain
|
|||
Movement,
|
||||
Chat,
|
||||
Portal,
|
||||
InventoryState,
|
||||
Spellbook,
|
||||
Character,
|
||||
Social,
|
||||
}
|
||||
|
||||
public readonly record struct RuntimeLifecycleDelta(
|
||||
|
|
@ -145,6 +149,19 @@ public sealed class RuntimeTraceRecorder : IRuntimeEventObserver
|
|||
System.Globalization.CultureInfo.InvariantCulture,
|
||||
$"frame={checkpoint.FrameNumber};materialized={checkpoint.MaterializedEntityCount};" +
|
||||
$"containers={checkpoint.InventoryContainerCount};chat={checkpoint.ChatCount};" +
|
||||
$"inventory-state={checkpoint.InventoryState.ShortcutCount}:" +
|
||||
$"{checkpoint.InventoryState.ShortcutRevision}:" +
|
||||
$"{checkpoint.InventoryState.ItemManaCount}:" +
|
||||
$"{checkpoint.InventoryState.ItemManaRevision};" +
|
||||
$"character={checkpoint.Character.CharacterRevision}:" +
|
||||
$"{checkpoint.Character.SpellbookRevision}:" +
|
||||
$"{checkpoint.Character.LearnedSpellCount}:" +
|
||||
$"{checkpoint.Character.SkillCount}:" +
|
||||
$"{checkpoint.Character.Options.Revision}:" +
|
||||
$"{checkpoint.Character.MovementSkills.Revision};" +
|
||||
$"social={checkpoint.Social.FriendsRevision}:" +
|
||||
$"{checkpoint.Social.FriendCount}:" +
|
||||
$"{checkpoint.Social.SquelchRevision};" +
|
||||
$"portal={checkpoint.Portal.Generation}:{(int)checkpoint.Portal.Kind}:" +
|
||||
$"{checkpoint.Portal.DestinationCell:X8}:{checkpoint.Portal.IsReady}")));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue