feat: complete legacy-compatible auction system

This commit is contained in:
2026-07-25 10:43:49 +00:00
parent 26c3d5ce16
commit 93ae4df519
21 changed files with 1355 additions and 216 deletions
+22
View File
@@ -71,6 +71,17 @@ export type TurnDaemonCommand =
}
| { type: 'dropItem'; requestId?: string; generalId: number; itemType: string }
| { type: 'auctionFinalize'; requestId?: string; auctionId: number }
| {
type: 'auctionOpen';
requestId?: string;
generalId: number;
auctionType: 'BUY_RICE' | 'SELL_RICE' | 'UNIQUE_ITEM';
amount: number;
closeTurnCnt?: number;
startBidAmount?: number;
finishBidAmount?: number;
itemKey?: string;
}
| {
type: 'changePermission';
requestId?: string;
@@ -204,6 +215,17 @@ export type TurnDaemonCommandResult =
auctionId: number;
reason: string;
}
| {
type: 'auctionOpen';
ok: true;
auctionId: number;
closeAt: string;
}
| {
type: 'auctionOpen';
ok: false;
reason: string;
}
| {
type: 'troopJoin';
ok: true;