Function: add()
> add(fn, name): void
Defined in: src/canvas/decorators/event-decorator.ts:43
Register a event in the game.
Parameters
fn
SerializableEventHandler
The class of the event.
name
string
Name of the event, by default it will use the class name. If the name is already registered, it will show a warning
Returns
void