Extract VM input opcode handler

This commit is contained in:
gamer147
2026-08-03 00:17:15 -04:00
parent 5ceea006dc
commit 03ddbf52d6
4 changed files with 200 additions and 131 deletions

View File

@@ -195,6 +195,9 @@ retained history rendering, metadata/voice lookup, and history backlog clearing.
`engine/Age.Engine/Vm/VirtualMachine.AdvServices.cs` owns persistent/active message-skip control, read-skip
settings and queries, auto-message state/timing, and per-message voice/skip reset opcode dispatch; shared state
and refresh helpers remain in the VM coordinator because live text and input paths also consume them.
`engine/Age.Engine/Vm/VirtualMachine.Input.cs` owns blocking ADV waits, hotspot registration/arming, cursor
resources and virtual position, raw mouse/joystick callback registration and dispatch, action polling, and
physical-input mapping; public host-thread input entry points and shared synchronization remain in the coordinator.
The disposable `build/page-map-<SCENE>.jsonl` files are produced by editor/development Godot runs and map
runtime ADV page ordinals to their authoritative script offsets for `tools/locate_page.py`. Packaged exports

View File

@@ -681,6 +681,13 @@ do not mix mechanical moves with semantic changes.
remain in the VM coordinator because live-text and input paths also consume them. Runtime validation remains
green.
The tenth bounded `VirtualMachine.Step` extraction moved blocking ADV waits, hotspot registration/arming,
cursor resources and virtual position, raw mouse/joystick callback registration and dispatch, action polling,
and physical-input mapping into `engine/Age.Engine/Vm/VirtualMachine.Input.cs`. The top-level dispatcher
retains all labels and aliases at their existing positions and routes them through guarded `StepInput`; public
host-thread input entry points, shared synchronization, and callback service helpers remain in the coordinator.
Runtime validation remains green.
**Gate:** no externally visible behavior or command changes; generated artifacts are byte-identical where
deterministic, and the corresponding engine, Python, Godot, and corpus validations remain green after
each domain move.
@@ -1054,7 +1061,8 @@ Continue step 2 of the **codebase consolidation** maintenance slice: behavior-ne
by the tracked launcher and layered validation driver. With the planned `Main`, `GodotAdvHost`, and `GfxState`
domains isolated and the audio, movie, surface/texture, retained-object, animation, presentation, ADV-text, and
text-history `VirtualMachine.Step` families routed through domain handlers, with ADV skip/auto-message services
now isolated as well, extract the interactive input/hotspot/cursor callback opcode family next without replacing
the proven dispatcher or changing public types, commands, and generated output.
and interactive input/hotspot/cursor callbacks now isolated as well, extract the sleep/timed-callback sequencing
opcode family next without replacing the proven dispatcher or changing public types, commands, and generated
output.
Concrete playthrough blockers may still preempt this bounded maintenance work; the consolidation effort does
not replace Phase B gameplay validation or the open cross-platform gates.