Restructuring controller to broaden usability; changed events logic to support that

This commit is contained in:
2026-01-18 00:52:54 -06:00
parent f7d944f7a9
commit 99f1bffefb
46 changed files with 169 additions and 221 deletions

View File

@@ -0,0 +1,19 @@
# Python imports
# Lib imports
# Application imports
from ..dto.base_event import BaseEvent
class EmitDispatcher:
def __init__(self):
super(EmitDispatcher, self).__init__()
def emit(self, event: BaseEvent):
self.message_all(event)
def emit_to(self, controller: str, event: BaseEvent):
self.message_to(controller, event)