OSDN Git Service

implement Install Events
[ninix-aya/master.git] / lib / ninix / communicate.py
index 7f6692c..8800613 100644 (file)
@@ -32,6 +32,10 @@ class Communicate:
         return [chr(1).join(value) for value in self.__ghosts.values() \
                     if value[0] != name]
 
+    def notify_all(self, event, references):
+        for sakura in self.__ghosts.keys():
+            sakura.enqueue_event(event, *references)
+
     ON_OTHER_EVENT = {
         'OnBoot': 'OnOtherGhostBooted',
         'OnFirstBoot': 'OnOtherGhostBooted',