mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2026-09-26 22:01:44 +07:00
create entity without multi inserts
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user