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

@ -27,8 +27,10 @@ class SharedObjects:
def __init__(self) -> None:
activity = ba.getactivity()
if self._STORENAME in activity.customdata:
raise RuntimeError('Use SharedObjects.get() to fetch the'
' shared instance for this activity.')
raise RuntimeError(
'Use SharedObjects.get() to fetch the'
' shared instance for this activity.'
)
self._object_material: ba.Material | None = None
self._player_material: ba.Material | None = None
self._pickup_material: ba.Material | None = None
@ -111,7 +113,8 @@ class SharedObjects:
if self._death_material is None:
mat = self._death_material = ba.Material()
mat.add_actions(
('message', 'their_node', 'at_connect', ba.DieMessage()))
('message', 'their_node', 'at_connect', ba.DieMessage())
)
return self._death_material
@property