add modeltree component

This commit is contained in:
MihailRis
2024-07-01 22:09:52 +03:00
parent 824231bfd6
commit 8e08f79b54
5 changed files with 53 additions and 13 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
#include "../../../window/Camera.hpp"
#include "../../../frontend/hud.hpp"
#include "../../../content/Content.hpp"
#include "../../../engine.hpp"
#include <optional>
@@ -35,7 +36,7 @@ static int l_spawn(lua::State* L) {
if (lua::gettop(L) > 2) {
args = lua::tovalue(L, 3);
}
level->entities->spawn(def, pos, args);
level->entities->spawn(scripting::engine->getAssets(), def, pos, args);
return 1;
}