mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 12:24:11 -04:00
Cache added and removed components
This commit is contained in:
parent
bb508ee947
commit
ecb3c2db7e
4 changed files with 67 additions and 18 deletions
|
@ -38,7 +38,10 @@ end
|
|||
-- @return A new initialized Bag
|
||||
function Component:__initialize(...)
|
||||
if self.__populate then
|
||||
local bag = setmetatable({}, self)
|
||||
local bag = setmetatable({
|
||||
__baseComponent = self,
|
||||
}, self)
|
||||
|
||||
self.__populate(bag, ...)
|
||||
|
||||
return bag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue