summaryrefslogtreecommitdiff
path: root/server/src/vm/label.lua
blob: f8f8eb813a7611ee99920850644806f945b72a00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
local mt = {}
mt.__index = mt
mt.type = 'label'

function mt:getName()
    return self.name
end

return function (name, source)
    local self = setmetatable({
        name = name,
        source = source,
    }, mt)
    return self
end