Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
helios::app::AppExit Struct Reference

Message that requests the application to exit. More...

#include <application.hpp>

Public Attributes

ExitCode code = ExitCode::kSuccess

Static Public Attributes

static constexpr std::string_view kName = "AppExit"
static constexpr ecs::MessageClearPolicy kClearPolicy
static constexpr bool kAsync = false
static constexpr bool kConsumable = false

Detailed Description

Message that requests the application to exit.

Written by systems; RunDefault stops when this message is present. Uses manual clear policy so it survives per-schedule World::Update() sync points within a frame.

Definition at line 58 of file application.hpp.

Member Data Documentation

◆ code

ExitCode helios::app::AppExit::code = ExitCode::kSuccess

Definition at line 65 of file application.hpp.

◆ kAsync

bool helios::app::AppExit::kAsync = false
staticconstexpr

Definition at line 62 of file application.hpp.

◆ kClearPolicy

ecs::MessageClearPolicy helios::app::AppExit::kClearPolicy
staticconstexpr
Initial value:
=
@ kManual
Messages persist until manually cleared.
Definition message.hpp:19

Definition at line 60 of file application.hpp.

◆ kConsumable

bool helios::app::AppExit::kConsumable = false
staticconstexpr

Definition at line 63 of file application.hpp.

◆ kName

std::string_view helios::app::AppExit::kName = "AppExit"
staticconstexpr

Definition at line 59 of file application.hpp.