Android build v1.0.55

This commit is contained in:
Warren H
2026-06-21 20:38:55 -04:00
parent 787e2bbae9
commit 5449276521
5 changed files with 213 additions and 48 deletions
+13
View File
@@ -35,6 +35,7 @@ export type PvpMatchSnapshot<TSideState = unknown> = {
elapsedTicks: number
}>>
upgradeChoices: Partial<Record<PvpMatchSide, Record<string, PvpUpgradeChoicePayload>>>
rematchRequests?: Partial<Record<PvpMatchSide, boolean>>
updatedAt: number
}
@@ -45,6 +46,12 @@ export type PvpQueueResponse<TSideState = unknown> = {
side?: PvpMatchSide
}
export type PvpRematchResponse<TSideState = unknown> = {
status: 'waiting' | 'matched'
match?: PvpMatchSnapshot<TSideState>
side?: PvpMatchSide
}
export type CpuPvpLeaderboardEntry = {
characterName: string
className: string
@@ -166,3 +173,9 @@ export function submitPvpUpgradeChoice(
body: JSON.stringify(payload),
})
}
export function requestPvpRematch<TSideState>(matchId: string): Promise<PvpRematchResponse<TSideState>> {
return requestGameApiJson(`/api/pvp/matches/${encodeURIComponent(matchId)}/rematch`, {
method: 'POST',
})
}