feat(multiplayer): supoort abort match

This commit is contained in:
MingxuanGame
2025-08-03 14:00:49 +00:00
parent c2579e86eb
commit 1e304542bd
2 changed files with 68 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import asyncio
from collections.abc import Awaitable, Callable
from dataclasses import dataclass, field
from datetime import UTC, datetime, timedelta
from enum import IntEnum
from typing import TYPE_CHECKING, Annotated, Any, ClassVar, Literal
from app.database.beatmap import Beatmap
@@ -587,3 +588,8 @@ class CountdownStoppedEvent(_MatchServerEvent):
MatchServerEvent = CountdownStartedEvent | CountdownStoppedEvent
class GameplayAbortReason(IntEnum):
LOAD_TOOK_TOO_LONG = 0
HOST_ABORTED = 1