erratum/bestiaire/classes/dataholders/simpleholder.lua

17 lines
303 B
Lua
Raw Normal View History

2024-08-15 10:42:55 +02:00
local SimpleHolder = Object:extend()
function SimpleHolder:new(key, datas)
self.key = key
self.datas = datas
self.value = nil
end
function SimpleHolder:applyCommand(command, args)
self.value = args
end
function SimpleHolder:reduce(level)
return self.value
end
return SimpleHolder