Namespace Engine::Signals¶
Namespace List > Engine > Signals
Godot-style signal dispatch shared by every emitter system. More...
Classes¶
| Type | Name |
|---|---|
| struct | SignalProvider One emitting plugin and the signals it can fire. |
Public Functions¶
| Type | Name |
|---|---|
| void | EmitSignal (Registry & registry, Entity emitter, const std::string & signal, Entity other) |
| std::vector< SignalProvider > | GetSignalProviders () All known signal providers, in tab order. |
Detailed Description¶
Looks up SignalConnections on emitter, and for each connection whose signal matches, calls method(targetTable, emitter, other) on the target's loaded script (same self-passing convention as ScriptSystem::Update). Dead targets, missing scripts, and missing methods are skipped (warn-once); Lua errors are logged, never propagated, so one bad handler cannot break the emitting system.
Public Functions Documentation¶
function EmitSignal¶
void Engine::Signals::EmitSignal (
Registry & registry,
Entity emitter,
const std::string & signal,
Entity other
)
function GetSignalProviders¶
All known signal providers, in tab order.
The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Scripting/SignalDispatch.hpp