From c50f71f2448f30d4f09ae6a56b2d02360ec55666 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 1 Apr 2019 13:08:03 +0200 Subject: [PATCH] modules/world: autoregister actors --- gamecore/modules/world/actors/actor2D.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gamecore/modules/world/actors/actor2D.lua b/gamecore/modules/world/actors/actor2D.lua index 5ce8610..5211215 100644 --- a/gamecore/modules/world/actors/actor2D.lua +++ b/gamecore/modules/world/actors/actor2D.lua @@ -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()