mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
ConsoleLauncher accepts arbitrary amount of civs to simulate - see #12407
This commit is contained in:
parent
c5cab907c1
commit
aa59be298b
@ -71,15 +71,14 @@ internal object ConsoleLauncher {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getGameParameters(civilization1: String, civilization2: String): GameParameters {
|
private fun getGameParameters(vararg civilizations: String): GameParameters {
|
||||||
return GameParameters().apply {
|
return GameParameters().apply {
|
||||||
difficulty = "Prince"
|
difficulty = "Prince"
|
||||||
numberOfCityStates = 0
|
numberOfCityStates = 0
|
||||||
speed = Speed.DEFAULT
|
speed = Speed.DEFAULT
|
||||||
noBarbarians = true
|
noBarbarians = true
|
||||||
players = ArrayList<Player>().apply {
|
players = ArrayList<Player>().apply {
|
||||||
add(Player(civilization1))
|
civilizations.forEach { add(Player(it)) }
|
||||||
add(Player(civilization2))
|
|
||||||
add(Player(Constants.spectator, PlayerType.Human))
|
add(Player(Constants.spectator, PlayerType.Human))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user