From 4e06585f121672d0298329f8de88da7aedeef4f9 Mon Sep 17 00:00:00 2001 From: yuki Date: Tue, 11 Nov 2025 23:01:19 -0300 Subject: [PATCH] return GameObject in emmylua --- obj/Area.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/obj/Area.lua b/obj/Area.lua index 68c8522..080ab18 100644 --- a/obj/Area.lua +++ b/obj/Area.lua @@ -49,6 +49,7 @@ end ---@param x number|nil horizontal position ---@param y number|nil vertical position ---@param opts table|nil additional arguments +---@return GameObject function Area:addGameObject(game_object_type, x, y, opts) local game_object = _G[game_object_type](self, x or 0, y or 0, opts or {}) table.insert(self.game_objects, game_object)