2026-01-11 17:48:35 -06:00
|
|
|
# Python imports
|
|
|
|
|
|
|
|
|
|
# Lib imports
|
|
|
|
|
|
|
|
|
|
# Application imports
|
2026-01-13 11:23:26 -06:00
|
|
|
from ..event_factory import Event_Factory_Types
|
2026-01-11 17:48:35 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EmitDispatcher:
|
|
|
|
|
def __init__(self):
|
|
|
|
|
super(EmitDispatcher, self).__init__()
|
|
|
|
|
|
|
|
|
|
|
2026-01-12 23:59:13 -06:00
|
|
|
def emit(self, event: Event_Factory_Types.CodeEvent):
|
2026-01-11 17:48:35 -06:00
|
|
|
self.message_all(event)
|
|
|
|
|
|
2026-01-12 23:59:13 -06:00
|
|
|
def emit_to(self, controller: str, event: Event_Factory_Types.CodeEvent):
|
2026-01-11 17:48:35 -06:00
|
|
|
self.message_to(controller, event)
|