blob: d47ee5855e7a18e4fb37a2c3cd1a9729416c25a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
local listMgr = require 'vm.list'
---@class EmmyGeneric
local mt = {}
mt.__index = mt
mt.type = 'emmy.generic'
function mt:getName()
return self.name
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
|