diff options
Diffstat (limited to 'server/src/vm/label.lua')
-rw-r--r-- | server/src/vm/label.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/server/src/vm/label.lua b/server/src/vm/label.lua new file mode 100644 index 00000000..f8f8eb81 --- /dev/null +++ b/server/src/vm/label.lua @@ -0,0 +1,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 |