mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
updating ba_data
This commit is contained in:
parent
b0b6865bdf
commit
48af420a73
92 changed files with 3174 additions and 1075 deletions
73
dist/ba_data/python/bacommon/cloud.py
vendored
73
dist/ba_data/python/bacommon/cloud.py
vendored
|
|
@ -16,6 +16,13 @@ if TYPE_CHECKING:
|
|||
pass
|
||||
|
||||
|
||||
class WebLocation(Enum):
|
||||
"""Set of places we can be directed on ballistica.net."""
|
||||
|
||||
ACCOUNT_EDITOR = 'e'
|
||||
ACCOUNT_DELETE_SECTION = 'd'
|
||||
|
||||
|
||||
@ioprepped
|
||||
@dataclass
|
||||
class LoginProxyRequestMessage(Message):
|
||||
|
|
@ -238,6 +245,10 @@ class SignInResponse(Response):
|
|||
class ManageAccountMessage(Message):
|
||||
"""Message asking for a manage-account url."""
|
||||
|
||||
weblocation: Annotated[WebLocation, IOAttrs('l')] = (
|
||||
WebLocation.ACCOUNT_EDITOR
|
||||
)
|
||||
|
||||
@override
|
||||
@classmethod
|
||||
def get_response_types(cls) -> list[type[Response] | None]:
|
||||
|
|
@ -250,3 +261,65 @@ class ManageAccountResponse(Response):
|
|||
"""Here's that sign-in result you asked for, boss."""
|
||||
|
||||
url: Annotated[str | None, IOAttrs('u')]
|
||||
|
||||
|
||||
@ioprepped
|
||||
@dataclass
|
||||
class StoreQueryMessage(Message):
|
||||
"""Message asking about purchasable stuff and store related state."""
|
||||
|
||||
@override
|
||||
@classmethod
|
||||
def get_response_types(cls) -> list[type[Response] | None]:
|
||||
return [StoreQueryResponse]
|
||||
|
||||
|
||||
@ioprepped
|
||||
@dataclass
|
||||
class StoreQueryResponse(Response):
|
||||
"""Here's that store info you asked for, boss."""
|
||||
|
||||
class Result(Enum):
|
||||
"""Our overall result."""
|
||||
|
||||
SUCCESS = 's'
|
||||
ERROR = 'e'
|
||||
|
||||
@dataclass
|
||||
class Purchase:
|
||||
"""Info about a purchasable thing."""
|
||||
|
||||
purchaseid: Annotated[str, IOAttrs('id')]
|
||||
|
||||
# Overall result; all data is undefined if not SUCCESS.
|
||||
result: Annotated[Result, IOAttrs('r')]
|
||||
|
||||
tokens: Annotated[int, IOAttrs('t')]
|
||||
gold_pass: Annotated[bool, IOAttrs('g')]
|
||||
|
||||
available_purchases: Annotated[list[Purchase], IOAttrs('p')]
|
||||
token_info_url: Annotated[str, IOAttrs('tiu')]
|
||||
|
||||
|
||||
@ioprepped
|
||||
@dataclass
|
||||
class BSPrivatePartyMessage(Message):
|
||||
"""Message asking about info we need for private-party UI."""
|
||||
|
||||
need_datacode: Annotated[bool, IOAttrs('d')]
|
||||
|
||||
@override
|
||||
@classmethod
|
||||
def get_response_types(cls) -> list[type[Response] | None]:
|
||||
return [BSPrivatePartyResponse]
|
||||
|
||||
|
||||
@ioprepped
|
||||
@dataclass
|
||||
class BSPrivatePartyResponse(Response):
|
||||
"""Here's that private party UI info you asked for, boss."""
|
||||
|
||||
success: Annotated[bool, IOAttrs('s')]
|
||||
tokens: Annotated[int, IOAttrs('t')]
|
||||
gold_pass: Annotated[bool, IOAttrs('g')]
|
||||
datacode: Annotated[str | None, IOAttrs('d')]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue