modules/world: autoregister actors

This commit is contained in:
Kazhnuz 2019-04-01 13:08:03 +02:00
parent 55aadc56c3
commit c50f71f244

View file

@ -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()