thread-split events display

This commit is contained in:
Evan
2025-01-12 17:00:23 -08:00
parent 3da6008e9f
commit e76837c75a
8 changed files with 180 additions and 88 deletions
+7 -2
View File
@@ -412,6 +412,11 @@ export interface PlayerActions {
interaction?: PlayerInteraction
}
export interface PlayerProfile {
relations: Record<number, Relation>
// TODO: add alliances etc
}
export interface PlayerInteraction {
sharedBorder: boolean
canSendEmoji: boolean
@@ -495,8 +500,8 @@ export interface BrokeAllianceUpdate {
export interface AllianceExpiredUpdate {
type: GameUpdateType.AllianceExpired
player1: number
player2: number
player1ID: number
player2ID: number
}
export interface TargetPlayerUpdate {
+2 -2
View File
@@ -473,8 +473,8 @@ export class GameImpl implements MutableGame {
this.alliances_ = this.alliances_.filter(a => a != alliances[0])
this.addUpdate({
type: GameUpdateType.AllianceExpired,
player1: alliance.requestor().smallID(),
player2: alliance.recipient().smallID()
player1ID: alliance.requestor().smallID(),
player2ID: alliance.recipient().smallID()
})
}