summaryrefslogtreecommitdiff
path: root/server/src/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-06-24 10:38:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-06-24 10:38:35 +0800
commit8647f7987e30799f8a84b5ed3ae39484ca1c7135 (patch)
treeb938fadac48fd9f3d7297dd01c574835484fb48d /server/src/vm
parent21b7cc4df0295df5915a7b4328c04f71e7cf25ca (diff)
downloadlua-language-server-8647f7987e30799f8a84b5ed3ae39484ca1c7135.zip
整理代码
Diffstat (limited to 'server/src/vm')
-rw-r--r--server/src/vm/manager.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/src/vm/manager.lua b/server/src/vm/manager.lua
index 5f6a9b6a..b9762d2e 100644
--- a/server/src/vm/manager.lua
+++ b/server/src/vm/manager.lua
@@ -2,5 +2,16 @@
local mt = {}
mt.__index = mt
mt.type = 'vm'
+mt._version = -1
+
+---@param version integer
+function mt:setVersion(version)
+ self._version = version
+end
+
+---@return integer
+function mt:getVersion()
+ return self._version
+end
return mt