feat: passing args to component in entity definition

This commit is contained in:
MihailRis
2025-08-06 23:34:00 +03:00
parent f2aa77db8b
commit f6be6689aa
5 changed files with 33 additions and 7 deletions
+2
View File
@@ -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);
}