mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: passing args to component in entity definition
This commit is contained in:
parent
f2aa77db8b
commit
f6be6689aa
5 changed files with 33 additions and 7 deletions
|
|
@ -603,6 +603,8 @@ void scripting::on_entity_spawn(
|
|||
} else {
|
||||
lua::createtable(L, 0, 0);
|
||||
}
|
||||
} else if (component->params != nullptr) {
|
||||
lua::pushvalue(L, component->params);
|
||||
} else {
|
||||
lua::createtable(L, 0, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue