fix(game): sync diplomatic responses into turn world

This commit is contained in:
2026-09-03 18:18:22 +00:00
parent 03e47feef1
commit 62006fb2d4
7 changed files with 343 additions and 54 deletions
+19
View File
@@ -161,6 +161,15 @@ export type TurnDaemonCommand =
messageId: number;
response: boolean;
}
| {
type: 'syncDiplomaticResponse';
requestId?: string;
userId: string;
generalId: number;
messageId: number;
nationIds: number[];
cityIds: number[];
}
| { type: 'vacation'; requestId?: string; userId: string; generalId: number }
| {
type: 'setMySetting';
@@ -575,6 +584,16 @@ export type TurnDaemonCommandResult =
action?: 'scout' | 'raiseInvader';
reason: string;
}
| {
type: 'syncDiplomaticResponse';
ok: boolean;
generalId: number;
messageId: number;
nations: number;
diplomacy: number;
cities: number;
reason?: string;
}
| { type: 'vacation'; ok: boolean; generalId: number; reason?: string }
| { type: 'setMySetting'; ok: boolean; generalId: number; reason?: string }
| { type: 'dropItem'; ok: boolean; generalId: number; reason?: string }