add rename

This commit is contained in:
shenjack 2023-07-01 00:25:41 +08:00
parent e0d8c0b0d7
commit a190fd0b31
2 changed files with 6 additions and 3 deletions

View File

@ -10,10 +10,10 @@ from pathlib import Path
from Difficult_Rocket.api.types import Options, Version from Difficult_Rocket.api.types import Options, Version
game_version = Version("0.8.5.0") # 游戏版本 sdk_version = Version("0.8.5.0") # SDK 版本
build_version = Version("2.1.0.0") # 编译文件版本(与游戏本体无关) build_version = Version("2.1.0.0") # 编译文件版本(与游戏本体无关)
Api_version = Version("0.1.1.0") # API 版本 Api_version = Version("0.1.1.0") # API 版本
__version__ = game_version __version__ = sdk_version
__all__ = [ __all__ = [
@ -57,7 +57,7 @@ class _DR_status(Options):
crash_report_test: bool = False crash_report_test: bool = False
# game version status # game version status
DR_version: Version = game_version # DR SDK 版本 DR_version: Version = sdk_version # DR SDK 版本
Build_version: Version = build_version # DR 构建 版本 Build_version: Version = build_version # DR 构建 版本
API_version: Version = Api_version # DR SDK API 版本 API_version: Version = Api_version # DR SDK API 版本

View File

@ -8,6 +8,9 @@
### Changes ### Changes
- `Difficult_Rocket.__init__`
- 重命名 / Rename
- `game_version` -> `sdk_version`
- `ModManager` - `ModManager`
- `get_mod_module(mod_name: str) -> Optional[ModInfo]` - `get_mod_module(mod_name: str) -> Optional[ModInfo]`
- 通过 mod 名称获取 mod 的信息 - 通过 mod 名称获取 mod 的信息