This commit is contained in:
MihailRis
2024-12-09 01:12:41 +03:00
parent 5fe5c6b27a
commit 5ffc054d75
16 changed files with 212 additions and 126 deletions
+2 -2
View File
@@ -5,11 +5,11 @@
using namespace scripting;
static int l_uptime(lua::State* L) {
return lua::pushnumber(L, engine->getUptime());
return lua::pushnumber(L, engine->getTime().getTime());
}
static int l_delta(lua::State* L) {
return lua::pushnumber(L, engine->getDelta());
return lua::pushnumber(L, engine->getTime().getDelta());
}
const luaL_Reg timelib[] = {