create entity without multi inserts

This commit is contained in:
BlackMATov
2024-11-14 03:11:26 +07:00
parent b421b1704f
commit 6317665321
3 changed files with 46 additions and 4 deletions
+6
View File
@@ -7,6 +7,12 @@ local fragments = {
velocity = registry:entity(),
}
do
registry:entity(
fragments.position,
fragments.velocity)
end
do
local entity = registry:entity()
entity:insert(fragments.position)