events system init

This commit is contained in:
UnCLASPrommer
2025-07-15 23:20:18 +08:00
parent 02f674494c
commit b104178bd7
5 changed files with 42 additions and 23 deletions

View 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}