feat: complete legacy-compatible auction system
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user