feat(admin): apply durable runtime clock shifts
This commit is contained in:
@@ -51,6 +51,12 @@ export type TurnDaemonCommand =
|
||||
| { type: 'pause'; requestId?: string; reason?: string }
|
||||
| { type: 'resume'; requestId?: string; reason?: string }
|
||||
| { type: 'shutdown'; requestId?: string; reason?: string }
|
||||
| {
|
||||
type: 'shiftSchedule';
|
||||
requestId?: string;
|
||||
actionId: string;
|
||||
deltaMinutes: number;
|
||||
}
|
||||
| { type: 'getStatus'; requestId?: string }
|
||||
| { type: 'troopCreate'; requestId?: string; generalId: number; troopName: string }
|
||||
| { type: 'troopJoin'; requestId?: string; generalId: number; troopId: number }
|
||||
@@ -214,6 +220,22 @@ export type TurnDaemonCommandResult =
|
||||
commandType: TurnDaemonCommand['type'];
|
||||
reason: string;
|
||||
}
|
||||
| {
|
||||
type: 'shiftSchedule';
|
||||
ok: true;
|
||||
actionId: string;
|
||||
deltaMinutes: number;
|
||||
lastTurnTime: string;
|
||||
shiftedGenerals: number;
|
||||
shiftedAuctions: number;
|
||||
checkpoint?: TurnCheckpoint;
|
||||
}
|
||||
| {
|
||||
type: 'shiftSchedule';
|
||||
ok: false;
|
||||
actionId: string;
|
||||
reason: string;
|
||||
}
|
||||
| {
|
||||
type: 'auctionFinalize';
|
||||
ok: true;
|
||||
|
||||
Reference in New Issue
Block a user