This commit is contained in:
dingo
2026-02-22 15:19:35 -05:00
parent fd7964c044
commit 636aa4070e
8 changed files with 167 additions and 42 deletions
@@ -1,9 +1,51 @@
# Ranked play Scene
# RankedPlay Scene
## Status
Draft placeholder.
## UI
- Ranked lobby header (season, rank, queue health)
- Loadout panel:
- selected deck
- selected archspirit
- deck legality status for ranked ruleset
- Queue actions:
- `Join Queue`
- `Leave Queue`
- Matchmaking status panel:
- elapsed queue time
- estimated wait range
- cancellation state
- Lobby chat subsection:
- ranked-only channel visibility while in this scene
## Planned Scope
- Define scene UI blocks
- Define client interactions
- Define server contract and payloads
## Client
- Load ranked eligibility and current competitive profile.
- Require valid deck + archspirit selection before enabling `Join Queue`.
- Submit ranked queue request and transition to matchmaking state.
- On match found, lock queue interactions and transition to gameplay scene with ranked ruleset payload.
## Server
- Return ranked season/profile data and queue eligibility.
- Validate selected deck against ranked format/rules.
- Enqueue/dequeue player for ranked matchmaking.
- Emit match-found payload with authoritative match seed and ruleset.
## Data Exchange
### Client -> Server (`RankedLobbyBootstrapRequest`)
- `requestId`, `accountId`, `clientVersion`
### Server -> Client (`RankedLobbyBootstrapResponse`)
- `requestId`, `seasonSummary`, `rankedProfile`, `queueEligibility`, `formatId`, `rulesVersion`
### Client -> Server (`RankedQueueJoinRequest`)
- `requestId`, `deckId`, `archspiritId`, `formatId`
### Server -> Client (`RankedQueueJoinResponse`)
- `requestId`, `success`, `queueTicketId`, `estimatedWaitSeconds`, `errorCode`
### Client -> Server (`RankedQueueLeaveRequest`)
- `requestId`, `queueTicketId`
### Server -> Client (`RankedQueueLeaveResponse`)
- `requestId`, `success`, `errorCode`
### Server -> Client (`RankedMatchFound`)
- `requestId`, `queueTicketId`, `matchId`, `rulesetId`, `opponentSummary`, `acceptDeadlineUtc`, `gameServerEndpoint`, `matchToken`