mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-17 04:09:24 +00:00
show alliance icon
This commit is contained in:
@@ -370,7 +370,7 @@ export interface PlayerActions {
|
||||
|
||||
export interface PlayerProfile {
|
||||
relations: Record<number, Relation>
|
||||
// TODO: add alliances etc
|
||||
alliances: number[]
|
||||
}
|
||||
|
||||
export interface PlayerInteraction {
|
||||
@@ -428,6 +428,7 @@ export interface PlayerUpdate {
|
||||
workers: number,
|
||||
troops: number,
|
||||
targetTroopRatio: number
|
||||
alliances: number[]
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -75,7 +75,8 @@ export class PlayerImpl implements MutablePlayer {
|
||||
population: this.population(),
|
||||
workers: this.workers(),
|
||||
troops: this.troops(),
|
||||
targetTroopRatio: this.targetTroopRatio()
|
||||
targetTroopRatio: this.targetTroopRatio(),
|
||||
alliances: this.alliances().map(a => a.other(this).smallID())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user