diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-06-24 10:38:35 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-06-24 10:38:35 +0800 |
commit | 8647f7987e30799f8a84b5ed3ae39484ca1c7135 (patch) | |
tree | b938fadac48fd9f3d7297dd01c574835484fb48d /server/src/vm | |
parent | 21b7cc4df0295df5915a7b4328c04f71e7cf25ca (diff) | |
download | lua-language-server-8647f7987e30799f8a84b5ed3ae39484ca1c7135.zip |
整理代码
Diffstat (limited to 'server/src/vm')
-rw-r--r-- | server/src/vm/manager.lua | 11 |
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 |