modules/world: autoregister actors
This commit is contained in:
parent
55aadc56c3
commit
c50f71f244
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,8 @@ function Actor2D:new(world, type, x, y, w, h)
|
|||
self.w = w or 0
|
||||
self.h = h or 0
|
||||
self.type = type or ""
|
||||
|
||||
self:register()
|
||||
end
|
||||
|
||||
function Actor2D:register()
|
||||
|
|
Loading…
Reference in a new issue