diff options
Diffstat (limited to 'server/src/vm/function.lua')
-rw-r--r-- | server/src/vm/function.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server/src/vm/function.lua b/server/src/vm/function.lua index f3d4720c..8eebb59c 100644 --- a/server/src/vm/function.lua +++ b/server/src/vm/function.lua @@ -212,6 +212,20 @@ function mt:createArgs() end end +function mt:setFlag(name, v) + if not self._flag then + self._flag = {} + end + self._flag[name] = v +end + +function mt:getFlag(name) + if not self._flag then + return nil + end + return self._flag[name] +end + return function (source) local self = setmetatable({ source = source, |