summaryrefslogtreecommitdiff
path: root/src/config/lua/objects/LuaTimer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/lua/objects/LuaTimer.hpp')
-rw-r--r--src/config/lua/objects/LuaTimer.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/config/lua/objects/LuaTimer.hpp b/src/config/lua/objects/LuaTimer.hpp
new file mode 100644
index 00000000..0a602848
--- /dev/null
+++ b/src/config/lua/objects/LuaTimer.hpp
@@ -0,0 +1,12 @@
+#pragma once
+
+#include "LuaObjectHelpers.hpp"
+#include "../../../managers/eventLoop/EventLoopTimer.hpp"
+
+namespace Config::Lua::Objects {
+ class CLuaTimer : public ILuaObjectWrapper {
+ public:
+ void setup(lua_State* L) override;
+ static void push(lua_State* L, const SP<CEventLoopTimer>& timer, int timeoutMs);
+ };
+}