SceneManager.trigger

Calls a trigger for the current scene, as well as its instances.

Triggers are required for custom signal and events. By calling, you can force to pull functions with special attributes, for example:

alias SpecEvent = Trigger("SpecialEvent");

@SpecEvent
void onSpec() @safe { ... }
...
sceneManager.trigger("SpecialEvent");
// Will cause the exact event to be called by calling the function,
// only for the scene that is being held in the context.
class SceneManager
@safe @trusted
void
trigger
(
string name
)

Parameters

name string

Trigger name.

Meta