mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
updating dummy modules
This commit is contained in:
parent
ea0d105e12
commit
d6f12367a1
6 changed files with 139 additions and 17 deletions
34
dist/dummymodules/_babase.py
vendored
34
dist/dummymodules/_babase.py
vendored
|
|
@ -32,6 +32,8 @@ from __future__ import annotations
|
||||||
|
|
||||||
from typing import TYPE_CHECKING, overload, Sequence, TypeVar
|
from typing import TYPE_CHECKING, overload, Sequence, TypeVar
|
||||||
|
|
||||||
|
from typing_extensions import override
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from typing import Any, Callable
|
from typing import Any, Callable
|
||||||
from babase import App
|
from babase import App
|
||||||
|
|
@ -461,13 +463,16 @@ class Vec3(Sequence[float]):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
# (for index access)
|
# (for index access)
|
||||||
|
@override
|
||||||
def __getitem__(self, typeargs: Any) -> Any:
|
def __getitem__(self, typeargs: Any) -> Any:
|
||||||
return 0.0
|
return 0.0
|
||||||
|
|
||||||
|
@override
|
||||||
def __len__(self) -> int:
|
def __len__(self) -> int:
|
||||||
return 3
|
return 3
|
||||||
|
|
||||||
# (for iterator access)
|
# (for iterator access)
|
||||||
|
@override
|
||||||
def __iter__(self) -> Any:
|
def __iter__(self) -> Any:
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
@ -749,6 +754,14 @@ def dev_console_tab_width() -> float:
|
||||||
return float()
|
return float()
|
||||||
|
|
||||||
|
|
||||||
|
def disable_custom_tint() -> None:
|
||||||
|
"""(internal)
|
||||||
|
|
||||||
|
Disable custom tint overrride.
|
||||||
|
"""
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def displaytime() -> babase.DisplayTime:
|
def displaytime() -> babase.DisplayTime:
|
||||||
"""Return the current display-time in seconds.
|
"""Return the current display-time in seconds.
|
||||||
|
|
||||||
|
|
@ -973,6 +986,11 @@ def get_immediate_return_code() -> int | None:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
def get_input_idle_time() -> float:
|
||||||
|
"""Return seconds since any local input occurred (touch, keypress, etc.)."""
|
||||||
|
return float()
|
||||||
|
|
||||||
|
|
||||||
def get_low_level_config_value(key: str, default_value: int) -> int:
|
def get_low_level_config_value(key: str, default_value: int) -> int:
|
||||||
"""(internal)"""
|
"""(internal)"""
|
||||||
return int()
|
return int()
|
||||||
|
|
@ -1112,6 +1130,14 @@ def increment_analytics_counts_raw(name: str, increment: int = 1) -> None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def invoke_main_menu() -> None:
|
||||||
|
"""High level call to bring up the main menu if it is not present.
|
||||||
|
|
||||||
|
This is essentially the same as pressing the menu button on a controller.
|
||||||
|
"""
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def is_log_full() -> bool:
|
def is_log_full() -> bool:
|
||||||
"""(internal)"""
|
"""(internal)"""
|
||||||
return bool()
|
return bool()
|
||||||
|
|
@ -1456,6 +1482,14 @@ def set_dev_console_input_text(val: str) -> None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def set_global_tint(x: float, y: float, z: float) -> None:
|
||||||
|
"""(internal)
|
||||||
|
|
||||||
|
This will override any tint set by game in local or netplay
|
||||||
|
"""
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def set_internal_language_keys(
|
def set_internal_language_keys(
|
||||||
listobj: list[tuple[str, str]], random_names_list: list[tuple[str, str]]
|
listobj: list[tuple[str, str]], random_names_list: list[tuple[str, str]]
|
||||||
) -> None:
|
) -> None:
|
||||||
|
|
|
||||||
6
dist/dummymodules/_baclassic.py
vendored
6
dist/dummymodules/_baclassic.py
vendored
|
|
@ -32,6 +32,8 @@ from __future__ import annotations
|
||||||
|
|
||||||
from typing import TYPE_CHECKING, TypeVar
|
from typing import TYPE_CHECKING, TypeVar
|
||||||
|
|
||||||
|
from typing_extensions import override
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from typing import Any, Callable
|
from typing import Any, Callable
|
||||||
|
|
||||||
|
|
@ -45,7 +47,9 @@ def _uninferrable() -> Any:
|
||||||
return _not_a_real_variable # type: ignore
|
return _not_a_real_variable # type: ignore
|
||||||
|
|
||||||
|
|
||||||
def set_stress_testing(testing: bool, player_count: int) -> None:
|
def set_stress_testing(
|
||||||
|
testing: bool, player_count: int, attract_mode: bool
|
||||||
|
) -> None:
|
||||||
"""(internal)"""
|
"""(internal)"""
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
|
||||||
2
dist/dummymodules/_baplus.py
vendored
2
dist/dummymodules/_baplus.py
vendored
|
|
@ -32,6 +32,8 @@ from __future__ import annotations
|
||||||
|
|
||||||
from typing import TYPE_CHECKING, TypeVar
|
from typing import TYPE_CHECKING, TypeVar
|
||||||
|
|
||||||
|
from typing_extensions import override
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from typing import Any, Callable
|
from typing import Any, Callable
|
||||||
|
|
||||||
|
|
|
||||||
110
dist/dummymodules/_bascenev1.py
vendored
110
dist/dummymodules/_bascenev1.py
vendored
|
|
@ -32,6 +32,8 @@ from __future__ import annotations
|
||||||
|
|
||||||
from typing import TYPE_CHECKING, overload, TypeVar
|
from typing import TYPE_CHECKING, overload, TypeVar
|
||||||
|
|
||||||
|
from typing_extensions import override
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from typing import Any, Callable, Literal, Sequence
|
from typing import Any, Callable, Literal, Sequence
|
||||||
import babase
|
import babase
|
||||||
|
|
@ -204,6 +206,9 @@ class InputDevice:
|
||||||
"""Whether this input-device represents a remotely-connected
|
"""Whether this input-device represents a remotely-connected
|
||||||
client."""
|
client."""
|
||||||
|
|
||||||
|
is_test_input: bool
|
||||||
|
"""Whether this input-device is a dummy device for testing."""
|
||||||
|
|
||||||
def __bool__(self) -> bool:
|
def __bool__(self) -> bool:
|
||||||
"""Support for bool evaluation."""
|
"""Support for bool evaluation."""
|
||||||
return bool(True) # Slight obfuscation.
|
return bool(True) # Slight obfuscation.
|
||||||
|
|
@ -607,6 +612,10 @@ class Node:
|
||||||
"""
|
"""
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def changerotation(self, x: int, y: int, z: int) -> None:
|
||||||
|
"""added by smoothy"""
|
||||||
|
return None
|
||||||
|
|
||||||
def connectattr(self, srcattr: str, dstnode: Node, dstattr: str) -> None:
|
def connectattr(self, srcattr: str, dstnode: Node, dstattr: str) -> None:
|
||||||
"""Connect one of this node's attributes to an attribute on another
|
"""Connect one of this node's attributes to an attribute on another
|
||||||
node. This will immediately set the target attribute's value to that
|
node. This will immediately set the target attribute's value to that
|
||||||
|
|
@ -644,12 +653,10 @@ class Node:
|
||||||
@overload
|
@overload
|
||||||
def getdelegate(
|
def getdelegate(
|
||||||
self, type: type[_T], doraise: Literal[False] = False
|
self, type: type[_T], doraise: Literal[False] = False
|
||||||
) -> _T | None:
|
) -> _T | None: ...
|
||||||
...
|
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
def getdelegate(self, type: type[_T], doraise: Literal[True]) -> _T:
|
def getdelegate(self, type: type[_T], doraise: Literal[True]) -> _T: ...
|
||||||
...
|
|
||||||
|
|
||||||
def getdelegate(self, type: Any, doraise: bool = False) -> Any:
|
def getdelegate(self, type: Any, doraise: bool = False) -> Any:
|
||||||
"""Return the node's current delegate object if it matches
|
"""Return the node's current delegate object if it matches
|
||||||
|
|
@ -935,6 +942,11 @@ class Timer:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def append_owner_ip(ip: str) -> None:
|
||||||
|
"""(internal)"""
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def basetime() -> bascenev1.BaseTime:
|
def basetime() -> bascenev1.BaseTime:
|
||||||
"""Return the base-time in seconds for the current scene-v1 context.
|
"""Return the base-time in seconds for the current scene-v1 context.
|
||||||
|
|
||||||
|
|
@ -1074,6 +1086,11 @@ def connect_to_party(
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def disable_kickvote(id: str) -> None:
|
||||||
|
"""(internal)id: pb-id who cant start a kick vote to anyone"""
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def disconnect_client(client_id: int, ban_time: int = 300) -> bool:
|
def disconnect_client(client_id: int, ban_time: int = 300) -> bool:
|
||||||
"""(internal)"""
|
"""(internal)"""
|
||||||
return bool()
|
return bool()
|
||||||
|
|
@ -1122,6 +1139,21 @@ def get_chat_messages() -> list[str]:
|
||||||
return ['blah', 'blah2']
|
return ['blah', 'blah2']
|
||||||
|
|
||||||
|
|
||||||
|
def get_client_device_uuid(client_id: float) -> str:
|
||||||
|
"""(internal)"""
|
||||||
|
return str()
|
||||||
|
|
||||||
|
|
||||||
|
def get_client_ip(client_id: float) -> str:
|
||||||
|
"""(internal)"""
|
||||||
|
return str()
|
||||||
|
|
||||||
|
|
||||||
|
def get_client_ping(client_id: float) -> str:
|
||||||
|
"""(internal)"""
|
||||||
|
return str()
|
||||||
|
|
||||||
|
|
||||||
def get_client_public_device_uuid(client_id: int) -> str | None:
|
def get_client_public_device_uuid(client_id: int) -> str | None:
|
||||||
"""(internal)
|
"""(internal)
|
||||||
|
|
||||||
|
|
@ -1291,13 +1323,11 @@ def get_ui_input_device() -> bascenev1.InputDevice | None:
|
||||||
|
|
||||||
# Show that our return type varies based on "doraise" value:
|
# Show that our return type varies based on "doraise" value:
|
||||||
@overload
|
@overload
|
||||||
def getactivity(doraise: Literal[True] = True) -> bascenev1.Activity:
|
def getactivity(doraise: Literal[True] = True) -> bascenev1.Activity: ...
|
||||||
...
|
|
||||||
|
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
def getactivity(doraise: Literal[False]) -> bascenev1.Activity | None:
|
def getactivity(doraise: Literal[False]) -> bascenev1.Activity | None: ...
|
||||||
...
|
|
||||||
|
|
||||||
|
|
||||||
def getactivity(doraise: bool = True) -> bascenev1.Activity | None:
|
def getactivity(doraise: bool = True) -> bascenev1.Activity | None:
|
||||||
|
|
@ -1351,15 +1381,13 @@ def getdata(name: str) -> bascenev1.Data:
|
||||||
@overload
|
@overload
|
||||||
def getinputdevice(
|
def getinputdevice(
|
||||||
name: str, unique_id: str, doraise: Literal[True] = True
|
name: str, unique_id: str, doraise: Literal[True] = True
|
||||||
) -> bascenev1.InputDevice:
|
) -> bascenev1.InputDevice: ...
|
||||||
...
|
|
||||||
|
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
def getinputdevice(
|
def getinputdevice(
|
||||||
name: str, unique_id: str, doraise: Literal[False]
|
name: str, unique_id: str, doraise: Literal[False]
|
||||||
) -> bascenev1.InputDevice | None:
|
) -> bascenev1.InputDevice | None: ...
|
||||||
...
|
|
||||||
|
|
||||||
|
|
||||||
def getinputdevice(name: str, unique_id: str, doraise: bool = True) -> Any:
|
def getinputdevice(name: str, unique_id: str, doraise: bool = True) -> Any:
|
||||||
|
|
@ -1397,13 +1425,11 @@ def getnodes() -> list:
|
||||||
|
|
||||||
# Show that our return type varies based on "doraise" value:
|
# Show that our return type varies based on "doraise" value:
|
||||||
@overload
|
@overload
|
||||||
def getsession(doraise: Literal[True] = True) -> bascenev1.Session:
|
def getsession(doraise: Literal[True] = True) -> bascenev1.Session: ...
|
||||||
...
|
|
||||||
|
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
def getsession(doraise: Literal[False]) -> bascenev1.Session | None:
|
def getsession(doraise: Literal[False]) -> bascenev1.Session | None: ...
|
||||||
...
|
|
||||||
|
|
||||||
|
|
||||||
def getsession(doraise: bool = True) -> bascenev1.Session | None:
|
def getsession(doraise: bool = True) -> bascenev1.Session | None:
|
||||||
|
|
@ -1474,6 +1500,11 @@ def have_touchscreen_input() -> bool:
|
||||||
return bool()
|
return bool()
|
||||||
|
|
||||||
|
|
||||||
|
def hide_player_device_id(type: bool) -> None:
|
||||||
|
"""(internal)hide player device spec from roster to clients"""
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def host_scan_cycle() -> list:
|
def host_scan_cycle() -> list:
|
||||||
"""(internal)"""
|
"""(internal)"""
|
||||||
return list()
|
return list()
|
||||||
|
|
@ -1484,6 +1515,14 @@ def is_in_replay() -> bool:
|
||||||
return bool()
|
return bool()
|
||||||
|
|
||||||
|
|
||||||
|
def is_replay_paused() -> bool:
|
||||||
|
"""(internal)
|
||||||
|
|
||||||
|
Returns if Replay is paused or not.
|
||||||
|
"""
|
||||||
|
return bool()
|
||||||
|
|
||||||
|
|
||||||
def ls_input_devices() -> None:
|
def ls_input_devices() -> None:
|
||||||
"""Print debugging info about game objects.
|
"""Print debugging info about game objects.
|
||||||
|
|
||||||
|
|
@ -1574,6 +1613,14 @@ def on_app_mode_deactivate() -> None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def pause_replay() -> None:
|
||||||
|
"""(internal)
|
||||||
|
|
||||||
|
Pauses replay.
|
||||||
|
"""
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def printnodes() -> None:
|
def printnodes() -> None:
|
||||||
"""Print various info about existing nodes; useful for debugging.
|
"""Print various info about existing nodes; useful for debugging.
|
||||||
|
|
||||||
|
|
@ -1622,6 +1669,14 @@ def reset_random_player_names() -> None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def resume_replay() -> None:
|
||||||
|
"""(internal)
|
||||||
|
|
||||||
|
Resumes replay.
|
||||||
|
"""
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def set_admins(admins: list[str]) -> None:
|
def set_admins(admins: list[str]) -> None:
|
||||||
"""(internal)"""
|
"""(internal)"""
|
||||||
return None
|
return None
|
||||||
|
|
@ -1645,6 +1700,14 @@ def set_enable_default_kick_voting(enable: bool) -> None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def set_game_speed(speed: int) -> None:
|
||||||
|
"""(internal)
|
||||||
|
|
||||||
|
Sets the speed scale for the game.
|
||||||
|
"""
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def set_internal_music(
|
def set_internal_music(
|
||||||
music: babase.SimpleSound | None, volume: float = 1.0, loop: bool = True
|
music: babase.SimpleSound | None, volume: float = 1.0, loop: bool = True
|
||||||
) -> None:
|
) -> None:
|
||||||
|
|
@ -1652,6 +1715,11 @@ def set_internal_music(
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def set_kickvote_msg_type(name: str) -> None:
|
||||||
|
"""(internal)set chat to show msg in chat"""
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def set_map_bounds(
|
def set_map_bounds(
|
||||||
bounds: tuple[float, float, float, float, float, float]
|
bounds: tuple[float, float, float, float, float, float]
|
||||||
) -> None:
|
) -> None:
|
||||||
|
|
@ -1700,11 +1768,21 @@ def set_replay_speed_exponent(speed: int) -> None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def set_server_name(name: str) -> None:
|
||||||
|
"""(internal)set the host name"""
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def set_touchscreen_editing(editing: bool) -> None:
|
def set_touchscreen_editing(editing: bool) -> None:
|
||||||
"""(internal)"""
|
"""(internal)"""
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def set_transparent_kickvote(type: bool) -> None:
|
||||||
|
"""(internal)True to show kick vote starter name"""
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def time() -> bascenev1.Time:
|
def time() -> bascenev1.Time:
|
||||||
"""Return the current scene time in seconds.
|
"""Return the current scene time in seconds.
|
||||||
|
|
||||||
|
|
|
||||||
2
dist/dummymodules/_batemplatefs.py
vendored
2
dist/dummymodules/_batemplatefs.py
vendored
|
|
@ -32,6 +32,8 @@ from __future__ import annotations
|
||||||
|
|
||||||
from typing import TYPE_CHECKING, TypeVar
|
from typing import TYPE_CHECKING, TypeVar
|
||||||
|
|
||||||
|
from typing_extensions import override
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from typing import Any, Callable
|
from typing import Any, Callable
|
||||||
|
|
||||||
|
|
|
||||||
2
dist/dummymodules/_bauiv1.py
vendored
2
dist/dummymodules/_bauiv1.py
vendored
|
|
@ -32,6 +32,8 @@ from __future__ import annotations
|
||||||
|
|
||||||
from typing import TYPE_CHECKING, TypeVar
|
from typing import TYPE_CHECKING, TypeVar
|
||||||
|
|
||||||
|
from typing_extensions import override
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from typing import Any, Callable, Literal, Sequence
|
from typing import Any, Callable, Literal, Sequence
|
||||||
import babase
|
import babase
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue