summaryrefslogtreecommitdiff
path: root/server-beta/src/core/tablefield.lua
blob: cfc6bace38b369efb07e8921a96f1cd5fc9e122f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
local m = {}

function m:field(source, key, callback)
    if source.value then
        self:eachField(source.value, key, callback)
    end
end

function m:value(source, callback)
    if source.value then
        self:eachValue(source.value, callback)
    end
end

return m