mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 05:09:25 +07:00
Can now choose a map name and load a map from those existing on the phone!
This commit is contained in:
@ -20,6 +20,7 @@ class GameParameters{
|
||||
var humanNations=ArrayList<String>().apply { add("Babylon") }
|
||||
var numberOfEnemies=3
|
||||
var mapType= MapType.Perlin
|
||||
var mapFileName :String?=null
|
||||
}
|
||||
|
||||
class GameStarter{
|
||||
@ -27,7 +28,7 @@ class GameStarter{
|
||||
val gameInfo = GameInfo()
|
||||
|
||||
gameInfo.gameParameters = newGameParameters
|
||||
gameInfo.tileMap = TileMap(newGameParameters.mapRadius, newGameParameters.mapType)
|
||||
gameInfo.tileMap = TileMap(newGameParameters)
|
||||
gameInfo.tileMap.gameInfo = gameInfo // need to set this transient before placing units in the map
|
||||
val startingLocations = getStartingLocations(
|
||||
newGameParameters.numberOfEnemies+newGameParameters.numberOfHumanPlayers, gameInfo.tileMap)
|
||||
|
Reference in New Issue
Block a user