BBMOD_IEventListener

interface

BBMOD_IEventListener()

Methods

Name Description
off_event Removes event listeners.
on_event Adds a listener for a specific event.
trigger_event Triggers an event in the event listener.

Example

function MyEventListener() : BBMOD_Class() constructor
{
    implement(BBMOD_IEventListener);

    on_event("test", function () {
        show_debug_message("It is working!");
    });
}

new MyEventListener().trigger_event("test"); // Prints "It is working!"
Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on November 16, 2022 using GMDoc.