2021-11-25 11:28:31 +01:00
|
|
|
local ParentWorld = require "game.modules.subgames.world.parent"
|
2019-12-28 14:13:19 +01:00
|
|
|
local BattleWorld = ParentWorld:extend()
|
|
|
|
|
2021-11-25 11:28:31 +01:00
|
|
|
local customMap = require "game.modules.subgames.world.maps"
|
2019-12-28 14:13:19 +01:00
|
|
|
|
|
|
|
function BattleWorld:new(scene, mapname)
|
|
|
|
local mappath = game.utils.getMapPath("battle", mapname)
|
|
|
|
BattleWorld.super.new(self, scene, "battle", mapname)
|
|
|
|
|
|
|
|
self.mapname = mapname
|
|
|
|
end
|
|
|
|
|
|
|
|
function BattleWorld:createMapController()
|
|
|
|
customMap.Battle(self, self.maptype, self.mapname)
|
|
|
|
end
|
|
|
|
|
|
|
|
return BattleWorld
|