2024-08-02 08:34:54 +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)
|
|
|
|
print(self.key, command, args)
|
|
|
|
self.value = args
|
|
|
|
end
|
|
|
|
|
2024-08-02 08:38:54 +02:00
|
|
|
function SimpleHolder:reduce(level)
|
2024-08-02 08:34:54 +02:00
|
|
|
return self.value
|
|
|
|
end
|
|
|
|
|
|
|
|
return SimpleHolder
|