1.7.13 , client_ping, player account privacy added

added _ba.get_client_ping(113)
and _ba.hide_player_device_id(True) . to hide players device id from roster of clients.
This commit is contained in:
Ayush Saini 2022-11-06 01:04:52 +05:30
parent 59730e19b3
commit e5034cbb6f
282 changed files with 35005 additions and 23205 deletions

View file

@ -14,18 +14,19 @@ if TYPE_CHECKING:
def _get_map_data(name: str) -> dict[str, Any]:
import json
print('Would get map data', name)
with open('ba_data/data/maps/' + name + '.json',
encoding='utf-8') as infile:
with open(
'ba_data/data/maps/' + name + '.json', encoding='utf-8'
) as infile:
mapdata = json.loads(infile.read())
assert isinstance(mapdata, dict)
return mapdata
class StdMap(ba.Map):
"""A map completely defined by asset data.
"""A map completely defined by asset data."""
"""
_data: dict[str, Any] | None = None
@classmethod