erratum/bestiaire/classes/dataholders/simpleholder.lua
Kazhnuz b1b481536e
All checks were successful
continuous-integration/drone/push Build is passing
feat: ajout d'un systeme de bestiaire
2024-08-15 10:42:55 +02:00

17 lines
No EOL
303 B
Lua

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