mirror of
https://github.com/nihilvux/bancho.py.git
synced 2025-09-17 02:58:39 -07:00
25 lines
613 B
Python
25 lines
613 B
Python
from __future__ import annotations
|
|
|
|
import asyncio
|
|
from collections import defaultdict
|
|
from typing import TYPE_CHECKING
|
|
from typing import Literal
|
|
|
|
from . import cache
|
|
from . import services
|
|
from . import sessions
|
|
|
|
if TYPE_CHECKING:
|
|
from asyncio import AbstractEventLoop
|
|
|
|
from app.packets import BasePacket
|
|
from app.packets import ClientPackets
|
|
|
|
loop: AbstractEventLoop
|
|
score_submission_locks: defaultdict[str, asyncio.Lock] = defaultdict(asyncio.Lock)
|
|
packets: dict[Literal["all", "restricted"], dict[ClientPackets, type[BasePacket]]] = {
|
|
"all": {},
|
|
"restricted": {},
|
|
}
|
|
shutting_down = False
|