mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add modeltree component
This commit is contained in:
parent
824231bfd6
commit
8e08f79b54
5 changed files with 53 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue