sonic-radiance/sonic-radiance.love/game/ennemies.lua
2019-08-15 09:35:37 +02:00

15 lines
410 B
Lua

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