From 076aca36bab28e805a85ee2e6a8f347a9ea83ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 31 Jan 2019 18:11:10 +0800 Subject: =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/vm/label.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 server/src/vm/label.lua (limited to 'server/src/vm/label.lua') 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 -- cgit v1.2.3