|
Engine
Raylib based game framework
|
Event signalling that the game should close. More...
#include <Events.hpp>
Static Public Member Functions | |
| static void | LuaRegister (sol::state &lua) |
| Registers the CloseGame type with Lua. | |
Event signalling that the game should close.
Trigger this event to request a clean shutdown. The Engine listens for it and exits the main loop at the end of the current frame.
Usage:
|
inlinestatic |
Registers the CloseGame type with Lua.
Called automatically by LuaManager::RegisterReceiveEvent and LuaManager::RegisterSendEvent. After registration, scripts can construct and trigger the event via "TriggerCloseGameEvent()".
| lua | Lua state to register into |