Added some core loop mechanic

This commit is contained in:
2025-05-07 14:43:22 +02:00
parent 2edb549156
commit 448e0354ea

View File

@@ -144,4 +144,16 @@ function Core:disconnect()
end
self.ws.close();
end
function Core:setLoop(loop)
self.loop = loop;
end
function Core:start()
while true do
if self.loop then
self.loop();
end
end
end