mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-02 19:18:11 +00:00
thread-split events display
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user