add blocks_agent templates & remove block.get_slow

This commit is contained in:
MihailRis
2024-12-16 11:26:57 +03:00
parent 5bf56d1f64
commit 6157f8193d
9 changed files with 158 additions and 104 deletions
+2 -3
View File
@@ -16,6 +16,7 @@
#include "logic/EngineController.hpp"
#include "logic/LevelController.hpp"
#include "util/listutil.hpp"
#include "util/platform.hpp"
#include "window/Events.hpp"
#include "window/Window.hpp"
#include "world/Level.hpp"
@@ -220,8 +221,6 @@ static int l_load_texture(lua::State* L) {
return 0;
}
#include "util/platform.hpp"
static int l_open_folder(lua::State* L) {
auto path = engine->getPaths()->resolve(lua::require_string(L, 1));
platform::open_folder(path);
@@ -239,7 +238,7 @@ static int l_blank(lua::State*) {
}
const luaL_Reg corelib[] = {
{"nop", lua::wrap<l_blank>},
{"blank", lua::wrap<l_blank>},
{"get_version", lua::wrap<l_get_version>},
{"new_world", lua::wrap<l_new_world>},
{"open_world", lua::wrap<l_open_world>},