updating dummy modules

This commit is contained in:
Ayush Saini 2024-03-10 17:34:02 +05:30
parent ea0d105e12
commit d6f12367a1
6 changed files with 139 additions and 17 deletions

View file

@ -32,6 +32,8 @@ from __future__ import annotations
from typing import TYPE_CHECKING, overload, Sequence, TypeVar
from typing_extensions import override
if TYPE_CHECKING:
from typing import Any, Callable
from babase import App
@ -461,13 +463,16 @@ class Vec3(Sequence[float]):
return self
# (for index access)
@override
def __getitem__(self, typeargs: Any) -> Any:
return 0.0
@override
def __len__(self) -> int:
return 3
# (for iterator access)
@override
def __iter__(self) -> Any:
return self
@ -749,6 +754,14 @@ def dev_console_tab_width() -> float:
return float()
def disable_custom_tint() -> None:
"""(internal)
Disable custom tint overrride.
"""
return None
def displaytime() -> babase.DisplayTime:
"""Return the current display-time in seconds.
@ -973,6 +986,11 @@ def get_immediate_return_code() -> int | None:
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:
"""(internal)"""
return int()
@ -1112,6 +1130,14 @@ def increment_analytics_counts_raw(name: str, increment: int = 1) -> 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:
"""(internal)"""
return bool()
@ -1456,6 +1482,14 @@ def set_dev_console_input_text(val: str) -> 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(
listobj: list[tuple[str, str]], random_names_list: list[tuple[str, str]]
) -> None: