From 82cf18b9163f86e4d0a1cd999d4815cc3f85a3fd Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 1 Mar 2022 22:49:53 -0600 Subject: clear out demo/ --- demo/SignalManager.lua | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 demo/SignalManager.lua (limited to 'demo/SignalManager.lua') diff --git a/demo/SignalManager.lua b/demo/SignalManager.lua deleted file mode 100644 index b7e9d6b..0000000 --- a/demo/SignalManager.lua +++ /dev/null @@ -1,24 +0,0 @@ -local SignalManager = {} -SignalManager.signals = {} - -function SignalManager.addCallback(self, signal, func) - if not self.signals[signal] then self.signals[signal] = {} end - self.signals[signal][func] = true -end - -function SignalManager.removeCallback(self, signal, func) - if self.signals[signal] then - self.signals[signal][func] = nil - end -end - -function SignalManager.emit(self, signal, argtable) - local sig = self.signals[signal] - if not sig then return end - - for f, _ in pairs(sig) do - f(argtable) - end -end - -return SignalManager -- cgit v1.2.1