|
Aegis2D
Modular C++26 2D game engine for networked games
|
Events sent to Lua scripts: the game's own, and the gameplay events of a bus. More...
#include <aegis2d/core/event_bus.hpp>#include <aegis2d/ecs/events.hpp>#include <aegis2d/ecs/lives.hpp>#include <aegis2d/script/export.hpp>#include <aegis2d/script/state.hpp>#include <array>#include <span>#include <string_view>Go to the source code of this file.
Classes | |
| struct | aegis2d::script::EventField |
| A field of an event sent to scripts. More... | |
| class | aegis2d::script::EventBridge |
| Sends the gameplay events of a bus to the scripts of a state, while it lives. More... | |
Namespaces | |
| namespace | aegis2d |
| Root namespace of the engine. | |
| namespace | aegis2d::script |
| Entity behaviors in Lua, so that new enemies and patterns need no recompilation. | |
Functions | |
| AEGIS2D_SCRIPT_EXPORT bool | aegis2d::script::emit (ScriptState &lua, std::string_view name, std::span< const EventField > fields={}) |
| Sends an event to the scripts of a state. | |
Events sent to Lua scripts: the game's own, and the gameplay events of a bus.