Struct StartupResult
Defined in File startup.h
Struct Documentation
-
struct StartupResult
Owns the constructed context and selected runtime policy.
Help or validation errors leave context empty and provide the process exit_code instead.
Public Functions
-
inline bool should_start() const noexcept
Declaration:
[[nodiscard]]- Returns:
Whether initialization produced a context ready for a runtime.
-
CE::Runtime::GameRuntime make_runtime(CE::Game::AbstractGame &game) const &
Declaration:
[[nodiscard]]Construct a runtime borrowing this result’s context and the game.
The result and game must survive the runtime and its blocking session. Rejects a result without a context; construction does not start the session.
- Parameters:
game – Simulation hooks retained by reference.
- Returns:
A runtime using the selected mode, polling and timing policy.
-
CE::Runtime::GameRuntime make_runtime(CE::Game::AbstractGame &game) const && = delete
-
inline bool should_start() const noexcept