sonic-radiance/sonic-radiance.love/game/ennemies.lua

16 lines
410 B
Lua
Raw Permalink Normal View History

local EnnemyManager = Object:extend()
function EnnemyManager:new(controller)
self.controller = controller
end
function EnnemyManager:getEnnemyData(ennemy)
local data = require("datas.gamedata.ennemies." .. ennemy)
data.skills = require("datas.gamedata.ennemies." .. ennemy .. ".skills")
data.stats = require("datas.gamedata.ennemies." .. ennemy .. ".stats")
return data
end
return EnnemyManager