events system init
This commit is contained in:
9
src/plugin_system/core/events_manager.py
Normal file
9
src/plugin_system/core/events_manager.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from typing import List, Dict, Type
|
||||
|
||||
from src.plugin_system.base.component_types import EventType
|
||||
|
||||
|
||||
class EventsManager:
|
||||
def __init__(self):
|
||||
# 有权重的 events 订阅者注册表
|
||||
self.events_subscribers: Dict[EventType, List[Dict[int, Type]]] = {event: [] for event in EventType}
|
||||
Reference in New Issue
Block a user