diff options
Diffstat (limited to 'server/src/emmy/manager.lua')
-rw-r--r-- | server/src/emmy/manager.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/server/src/emmy/manager.lua b/server/src/emmy/manager.lua index 5213e2f6..ce766988 100644 --- a/server/src/emmy/manager.lua +++ b/server/src/emmy/manager.lua @@ -143,11 +143,22 @@ end function mt:remove() end +function mt:count() + local count = 0 + for _, list in pairs(self._class) do + for k in pairs(list) do + if k ~= 'version' then + count = count + 1 + end + end + end + return count +end + return function () ---@class emmyMgr local self = setmetatable({ _class = {}, - _type = {}, }, mt) return self end |