Luna::Event::add_handler

usize add_handler(const Function< _Func > &func)

Adds one new handler to the event.

Parameters

  • in func

    The handler to add to this event.

Return value

Returns one integer that can be used to remove this handler manually.