mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-07 17:36:15 +00:00
1.6.10 update
This commit is contained in:
parent
81485da646
commit
240155bce3
37 changed files with 809 additions and 350 deletions
33
dist/ba_data/python/bacommon/build.py
vendored
Normal file
33
dist/ba_data/python/bacommon/build.py
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Released under the MIT License. See LICENSE for details.
|
||||
#
|
||||
"""Functionality related to game builds."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import datetime
|
||||
from dataclasses import dataclass, field
|
||||
from typing import TYPE_CHECKING, Annotated
|
||||
|
||||
from efro.dataclassio import ioprepped, IOAttrs
|
||||
|
||||
if TYPE_CHECKING:
|
||||
pass
|
||||
|
||||
|
||||
@ioprepped
|
||||
@dataclass
|
||||
class BuildInfoSet:
|
||||
"""Set of build infos."""
|
||||
|
||||
@dataclass
|
||||
class Entry:
|
||||
"""Info about a particular build."""
|
||||
filename: Annotated[str, IOAttrs('fname')]
|
||||
size: Annotated[int, IOAttrs('size')]
|
||||
version: Annotated[str, IOAttrs('version')]
|
||||
build_number: Annotated[int, IOAttrs('build')]
|
||||
checksum: Annotated[str, IOAttrs('checksum')]
|
||||
createtime: Annotated[datetime.datetime, IOAttrs('createtime')]
|
||||
|
||||
builds: Annotated[list[Entry],
|
||||
IOAttrs('builds')] = field(default_factory=list)
|
||||
Loading…
Add table
Add a link
Reference in a new issue