update to build 420

This commit is contained in:
crazywhalecc
2021-09-11 11:59:02 +08:00
parent 07391810ff
commit 907a9cea25
11 changed files with 102 additions and 21 deletions

View File

@@ -23,6 +23,7 @@ class EventManager
public static $req_mapping = [];
public static function addEvent($event_name, ?AnnotationBase $event_obj) {
Console::debug("Adding event $event_name at ".$event_obj->class.":".$event_obj->method);
self::$events[$event_name][] = $event_obj;
(new AnnotationParser())->sortByLevel(self::$events, $event_name);
}