summaryrefslogtreecommitdiff
path: root/server/src/emmy/class.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/emmy/class.lua')
-rw-r--r--server/src/emmy/class.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/src/emmy/class.lua b/server/src/emmy/class.lua
index 5e87181d..fe67cf40 100644
--- a/server/src/emmy/class.lua
+++ b/server/src/emmy/class.lua
@@ -24,6 +24,14 @@ function mt:getValue()
return self.value
end
+function mt:eachChild(callback)
+ self._manager:eachClass(self.name, function (obj)
+ if obj.type == 'emmy.type' then
+ callback(obj)
+ end
+ end)
+end
+
return function (manager, source)
local self = setmetatable({
name = source[1][1],