Split input host contract

This commit is contained in:
gamer147
2026-08-03 10:56:47 -04:00
parent 3d807e6115
commit c5204341a3
4 changed files with 62 additions and 38 deletions

View File

@@ -169,7 +169,9 @@ simple hosts. `engine/Age.Engine/Hosting/IMovieHost.cs` owns ordinary, positione
and modal movie playback contracts. `IHost` inherits all four focused contracts; their required and default
behavior is unchanged. `engine/Age.Engine/Hosting/IGraphicsHost.cs` owns mutable surfaces, retained-range/frame
presentation, transitions, texture lifecycle, pixel capture/replace, draw, and size contracts; `IHost` also
inherits this focused surface without changing existing hosts. The neutral
inherits this focused surface without changing existing hosts. `engine/Age.Engine/Hosting/IInputHost.cs` owns
modal fullwidth entry, ADV waits/callback servicing, input clock, cursor resources, and skip-state interaction;
its required wait and overload/default chains remain unchanged. The neutral
`engine/Age.Engine/Model/MovieMaskTransitionRequest.cs` record carries movie mask work between the VM, host, and
retained graphics without making `Model` depend on `Hosting`.
`engine/Age.Engine/Model/RgbaImage.cs` owns the format-independent packed RGBA image transported between SYS4

View File

@@ -798,6 +798,12 @@ do not mix mechanical moves with semantic changes.
imported `Model`, so no call sites changed; surface request shape, enum values, and graphics behavior remain
unchanged. Runtime validation remains green.
The eighth bounded contract slice introduced `IInputHost` for modal fullwidth entry, ADV wait overloads and
callback servicing, input clock, cursor resources, and skip-state interaction. `IHost` inherits the focused
contract; all fourteen members, the required base wait, overload/default chains, and existing host classes
remain behaviorally unchanged. Input transport records remain in their prior locations pending a separate
cleanup. Runtime validation remains green.
4. **Make the build graph express source ownership.** Stop linking production `.cs` files from `godot/` and
`tools/movie-corpus-gate/` into `Age.Engine.Tests`. Extract the platform-neutral frontend/movie/diagnostic
code into a small production project referenced by Godot, tests, and the corpus gate. Retain both existing
@@ -1158,9 +1164,8 @@ layer's rendering diverges from ADV; save layout.
## 8. Immediate next step
Continue step 3 of the **codebase consolidation** maintenance slice: clarify runtime contracts without changing
behavior or the aggregate host accepted by the VM. With diagnostic, lifecycle, audio, and movie contracts
established beneath `IHost`, shared movie/image transport neutral, and the graphics contract now separated, move
the input host contract next: modal text entry, ADV waits and callback servicing, input clock, cursor resources,
and skip-state interaction. Preserve the existing overload/default chains and aggregate `IHost` entry point before
separating the remaining ADV text/presentation contract.
established beneath `IHost`, shared graphics transport neutral, and graphics/input contracts now separated, move
the unchanged `FullwidthTextEditRequest`, `FullwidthTextEditResult`, and `AdvAutoWaitState` declarations from
`Hosting` to `Model` next. Preserve all consumers before extracting the remaining ADV text/presentation contract.
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.