AdaptiveFrameContext Type
The graph-building context handed to an
AdaptiveProgramInit function and to
the subscription projection
(AdaptiveInit.withSubscriptions).
The context exposes the framework-owned roots: the time cell, written by
the runner at the start of every Step (once per fixed sub-step),
the exit-request cell, read by the runner to decide whether to stop, plus
the GameContext holding the window dimensions
and the registered services. The program reads these cells and derives
its projections from them like any other root; only ExitRequested
is written by the program. The intent queue is exposed for the
Init function: work posted there runs at the startup drain, right
after Init returns and before the first frame is forced, so the
first frame includes its effects. The subscription projection also
receives this context and must not post: it runs once per step, and work
posted there would run at the next step's boundary, a step late.
Instance members
| Instance member |
Description
|
|
The GameContext the runner owns: the window
dimensions and the registered services (IAssets, IInput, custom). Programs
read services directly from here in
|
|
The exit-request root. Set it to
|
|
The intent queue: the single place to post
|
The framework-owned time root. The runner writes it at the start of every AdaptiveHeadless.Step (once per fixed sub-step); projections may depend on it (animation, physics, timers). |
|
Full Usage:
this.WindowHeight
Returns: int
|
Current window height in pixels. Default: 600.
|
Full Usage:
this.WindowWidth
Returns: int
|
Current window width in pixels. Default: 800.
|
Mibo