diff options
Diffstat (limited to 'script/emmy/generic.lua')
-rw-r--r-- | script/emmy/generic.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/script/emmy/generic.lua b/script/emmy/generic.lua new file mode 100644 index 00000000..82fd0c4b --- /dev/null +++ b/script/emmy/generic.lua @@ -0,0 +1,27 @@ +local listMgr = require 'vm.list' + +---@class EmmyGeneric +local mt = {} +mt.__index = mt +mt.type = 'emmy.generic' + +function mt:getName() + return self.name:getName() +end + +function mt:setValue(value) + self._value = value +end + +function mt:getValue() + return self._value +end + +return function (manager, defs) + for _, def in ipairs(defs) do + setmetatable(def, mt) + def._manager = manager + def._binds = {} + end + return defs +end |