Inno.Editor.PlayMode
Section titled “Inno.Editor.PlayMode”
- Atomic Edit/Play transitions with fresh script tickets, isolated scene/history/audio and verified retirement.
Atomic Edit/Play transitions with fresh script tickets, isolated scene/history/audio and verified retirement.
Enter and stop through one controller
Section titled “Enter and stop through one controller”Play Mode describes its six states, fresh-ticket admission, isolated runtime world and presentation switch. The controller coordinates existing scene/script/audio/history owners rather than owning their formats or implementations. It never simulates by mutating the Edit world and later restoring bytes.
Keep host and script surfaces distinct
Section titled “Keep host and script surfaces distinct”IEditorPlayMode and EditorPlayModeState are selected script contracts. EditorPlayModeController and EditorPlayModeLoop are host infrastructure: frame-safe transition advancement, one tick per frame, coordinated shutdown and reload participation remain host-owned. Only the public interface/enum enter the projected script facade.
Manual Reload is admitted only while Editing. Automatic changes wait for completed Play retirement and do not stop the game. Required entry compilation can activate before Play resources exist; this is not permission for arbitrary manual Reload during Compiling. Pending disposal preserves owners/Stopping, and a faulted gate requires restart. State observation returns a disposable subscription and aggregates observer errors after notifying all listeners.
Host examples
Section titled “Host examples”These use the actual host contracts and borrowed live dependencies. They do not initialize a product or establish lifecycle/device acceptance.
using Inno.Editor.PlayMode;
public static class Example0{ static bool Toggle(IEditorPlayMode playMode) { return playMode.state is EditorPlayModeState.Editing or EditorPlayModeState.Failed ? playMode.EnterPlayMode() : playMode.ExitPlayMode(); }}Script examples
Section titled “Script examples”Source boundary
Section titled “Source boundary”Source project. Declarations, script selection and runtime behavior require separate matching evidence.
API reference
Section titled “API reference”Types and exact member contracts preserve captured declarations and source XML.
Logical script references
Section titled “Logical script references”The compiler-selected script declarations are separate from this project’s host CLR surface. Read the script calling guide and the associated module contracts before using a projected member.
Source project facts
Section titled “Source project facts”Project: Inno.Editor.PlayMode
Source: src/composition/editor/features/Inno.Editor.PlayMode/Inno.Editor.PlayMode.csproj
| Type | API | Description |
|---|---|---|
| EditorPlayModeController | engine | Implements the deterministic state machine for one editor Play Mode workflow. |
| EditorPlayModeLoop | engine | Bridges the editor host frame clock to the active Play Mode session. |
| EditorPlayModeState | engine | Identifies the current relationship between editor documents and game simulation. |
| IEditorPlayMode | engine | Controls the editor’s isolated game-simulation session. |
| EditorPlayModeState | Editor | Identifies the current relationship between editor documents and game simulation. |
| IEditorPlayMode | Editor | Controls the editor’s isolated game-simulation session. |