BBMOD_IEventListener

An interface defined in BBMOD_IEventListener.gml

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() constructor
{
   BBMOD_IEventListener();

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

new MyEventListener().trigger_event("test"); // Prints "It is working!"

Implemented in

BBMOD_AnimationPlayer, BBMOD_AnimationState

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on April 18, 2024 using GMDoc.