mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 15:30:43 -04:00
Resolved #1007 - trades and alerts now work again, which means they'll also work in multiplayer =)
This commit is contained in:
parent
03228a6546
commit
c685e0f528
@ -91,6 +91,8 @@ class CivilizationInfo {
|
|||||||
toReturn.exploredTiles.addAll(gameInfo.tileMap.values.asSequence().map { it.position }.filter { it in exploredTiles })
|
toReturn.exploredTiles.addAll(gameInfo.tileMap.values.asSequence().map { it.position }.filter { it in exploredTiles })
|
||||||
toReturn.notifications.addAll(notifications)
|
toReturn.notifications.addAll(notifications)
|
||||||
toReturn.citiesCreated = citiesCreated
|
toReturn.citiesCreated = citiesCreated
|
||||||
|
toReturn.popupAlerts.addAll(popupAlerts)
|
||||||
|
toReturn.tradeRequests.addAll(tradeRequests)
|
||||||
return toReturn
|
return toReturn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,6 +41,17 @@ class Trade{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class TradeRequest(val requestingCiv:String,
|
class TradeRequest {
|
||||||
|
|
||||||
|
lateinit var requestingCiv: String
|
||||||
|
|
||||||
/** Their offers are what they offer us, and our offers are what they want in return */
|
/** Their offers are what they offer us, and our offers are what they want in return */
|
||||||
val trade: Trade)
|
lateinit var trade: Trade
|
||||||
|
|
||||||
|
constructor() // for json serialization
|
||||||
|
|
||||||
|
constructor(requestingCiv: String, trade: Trade) {
|
||||||
|
this.requestingCiv = requestingCiv
|
||||||
|
this.trade = trade
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user