- summary: During fight placement, accepts the offer another fighter made to swap starting cells with you.
- area: Game.Fight.Preparation
During fight placement, accepts the offer another fighter made to swap starting cells with you.
Kind request · Area Game.Fight.Preparation
Says yes to a placement swap. During placement a team mate can ask to take your starting cell and give you theirs; this message accepts that offer.
HOW TO SEND IT
1. Only while placing, and only for an offer made TO YOU. The offer arrives as
FightPlacementSwapPositionsOfferEvent (no signature here yet); the fighter who made it
cannot accept their own offer - the client shows them Cancel only.
2. Put the offer's request id in FightPlacementSwapPositionsAcceptRequest.request_id.
Nothing else: the server knows both fighters and both cells from the offer.
3. Expect the swap to happen: FightPlacementSwapPositionsEvent gives both fighters'
new cells, or FightPlacementSwapPositionsErrorEvent says it failed. The client does
not wait for a specific reply.
TO SAY NO, send FightPlacementSwapPositionsCancelRequest with the same request id.
The two requests have the same shape and are sent by the same client service; only the
button differs.
WHERE THE CLIENT SENDS IT. Two buttons raise the same client action: Accept in the swap notification popup, and Accept in the swap context menu. Both copy the offer's request id; the fight-preparation request service turns the action into this message.
When you may send it
- Requires
context_readyinferred - Raised by: the player clicks Accept on a swap offer: in the swap notification popup, or in the swap context menu, which offers Accept only to the fighter who was asked proven
Related messages
- You will then receive
FightPlacementSwapPositionsEventinferred — the swap's result, the two fighters' new dispositions; no capture of a swap yet - You will then receive
FightPlacementSwapPositionsErrorEventinferred — when the swap can no longer be made
Fields
| # | Field | Type | Meaning | You set it |
|---|---|---|---|---|
| 1 | request_id | int32 | The swap offer being accepted, by the request id the offer event carried. (swap request id) | required |