show alliance icon

This commit is contained in:
evanpelle
2025-02-01 12:05:11 -08:00
committed by Evan
parent ba654fd7ea
commit ab183e4f59
7 changed files with 22 additions and 20 deletions
+2 -1
View File
@@ -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[]
}
+2 -1
View File
@@ -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())
}
}