潜在问题修复, events sys

This commit is contained in:
UnCLAS-Prommer
2025-07-16 11:38:01 +08:00
parent d8cce20690
commit 1a17fa20f7
3 changed files with 27 additions and 21 deletions

View File

@@ -7,3 +7,5 @@ class EventsManager:
def __init__(self):
# 有权重的 events 订阅者注册表
self.events_subscribers: Dict[EventType, List[Dict[int, Type]]] = {event: [] for event in EventType}
events_manager = EventsManager()