From c6e5d8f4f17d13b63001eb5540ba9013f1b15fb6 Mon Sep 17 00:00:00 2001 From: shenjack-mac <3695888@qq.com> Date: Sat, 22 Apr 2023 17:13:45 +0800 Subject: [PATCH] update mod --- Difficult_Rocket/__init__.py | 14 +++++++------- Difficult_Rocket/mod/loader/__init__.py | 7 ------- configs/game.config | 4 ---- configs/main.toml | 3 +++ 4 files changed, 10 insertions(+), 18 deletions(-) delete mode 100644 configs/game.config diff --git a/Difficult_Rocket/__init__.py b/Difficult_Rocket/__init__.py index 708f880..405855b 100644 --- a/Difficult_Rocket/__init__.py +++ b/Difficult_Rocket/__init__.py @@ -73,7 +73,7 @@ class _DR_option(Options): use_cProfile: bool = False use_local_logging: bool = False use_DR_rust: bool = True - + # tests playing: bool = False debugging: bool = False @@ -122,16 +122,16 @@ class _DR_runtime(Options): API_version: Version = Api_version # DR SDK API 版本 DR_long_version: int = long_version # DR SDK 内部协议版本 (不要问我为什么不用 Version,我也在考虑) - DR_Rust_version: Version = DR_rust_version # 后面要去掉的 DR_rs 版本 - DR_Rust_get_version: Optional[Version] = None # 后面也要去掉的 DR_rs 版本 - DR_Mod_List: List[Tuple[str, Version]] = [] # DR Mod 列表 + DR_Rust_version: Version = DR_rust_version # 后面要去掉的 DR_rs 版本 + DR_Rust_get_version: Optional[Version] = None # 后面也要去掉的 DR_rs 版本 + # run status running: bool = False - start_time_ns: int = None - client_setup_cause_ns: int = None - server_setup_cause_ns: int = None + start_time_ns: Optional[int] = None + client_setup_cause_ns: Optional[int] = None + server_setup_cause_ns: Optional[int] = None # game runtimes # global_logger: logging.Logger diff --git a/Difficult_Rocket/mod/loader/__init__.py b/Difficult_Rocket/mod/loader/__init__.py index 8fcca51..e65b6e9 100644 --- a/Difficult_Rocket/mod/loader/__init__.py +++ b/Difficult_Rocket/mod/loader/__init__.py @@ -3,10 +3,3 @@ # Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com # All rights reserved # ------------------------------- - -""" -writen by shenjackyuanjie -mail: 3695888@qq.com -github: @shenjackyuanjie -gitee: @shenjackyuanjie -""" diff --git a/configs/game.config b/configs/game.config deleted file mode 100644 index 509b2d1..0000000 --- a/configs/game.config +++ /dev/null @@ -1,4 +0,0 @@ -[command] -log = 1000 -show = 20 -size = 12 diff --git a/configs/main.toml b/configs/main.toml index 8e5b488..aa2f87a 100644 --- a/configs/main.toml +++ b/configs/main.toml @@ -19,3 +19,6 @@ full_screen = false width = 1024 height = 768 gui_scale = 1 + +[game.mods] +path = "mods"