DR -> DR SDK #16

Merged
shenjackyuanjie merged 41 commits from feature/dr-sdk into main 2023-05-03 00:40:53 +08:00
5 changed files with 39 additions and 7 deletions
Showing only changes of commit 6a75e3d516 - Show all commits

View File

@ -26,7 +26,7 @@ ForceRequire = bool
# TODO 完善中 # TODO 完善中
class MODInfo(Options): class ModInfo(Options):
""" """
加载mod时候的参数 加载mod时候的参数
""" """

View File

@ -11,7 +11,7 @@ from typing import Tuple, List
from MCDR.version import Version from MCDR.version import Version
# from DR # from DR
from Difficult_Rocket.api.mod import MODInfo from Difficult_Rocket.api.mod import ModInfo
from Difficult_Rocket import DR_runtime, Options from Difficult_Rocket import DR_runtime, Options
""" """

View File

@ -122,7 +122,7 @@ class Translates:
return self return self
def __call__(self, *args, **kwargs) -> str: def __call__(self, *args, **kwargs) -> str:
return self.__str__() return str(self)
def copy(self): def copy(self):
return self.__copy__() return self.__copy__()

View File

@ -22,6 +22,40 @@
- [![Readme-gitee](https://img.shields.io/badge/Readme-中文(点我!)-blue.svg?style=flat-square)](../../README.md) - [![Readme-gitee](https://img.shields.io/badge/Readme-中文(点我!)-blue.svg?style=flat-square)](../../README.md)
- Using [SemVer 2.0.0](https://semver.org/) to manage version - Using [SemVer 2.0.0](https://semver.org/) to manage version
## 202305 DR `0.8.0.0` + DR_api `0.1.0.0`
> 啊哈! mod 加载来啦!
### Remove
- `game.config`
- 已删除
- Removed
### Changes
- `main.toml`
- `game.mods.path`
- 存储 mod 的路径
- Store the path of the mod
- `Difficult_Rocket.mod.MODInfo` -> `Difficult_Rocket.api.mod.ModInfo`
- 用于存储 mod 的信息
- Used to store information about the mod
- `Difficult_Rocket.DR_runtime`
- 添加 `mod_path: str` 字段
- 添加 `DR_Mod_List: List[Tuple[str, Version]]` 字段
- 添加 `load_mods() -> None` 方法
- 添加 `find_mods -> List[str]` 方法
- Add `mod_path: str` field
- Add `DR_Mod_List: List[Tuple[str, Version]]` field
- Add `load_mods() -> None` method
- Add `find_mods -> List[str]` method
### Mod Loader
- `ModInfo`
## 20230422 DR `0.7.2.2` + DR_rs `0.2.6.1` + DR_api `0.0.2.0` + 14 ## 20230422 DR `0.7.2.2` + DR_rs `0.2.6.1` + DR_api `0.0.2.0` + 14
### DR_rs V 0.2.6.1 ### DR_rs V 0.2.6.1
@ -556,8 +590,6 @@ long_version: 一个用于标记内部协议的整数
- 尝试加载 `icon` - 尝试加载 `icon`
- 更新了主项目 - 更新了主项目
## 20220627
## 20220511 V 0.6.3 ## 20220511 V 0.6.3
- 咕了好久的 update log 了 - 咕了好久的 update log 了

View File

@ -5,9 +5,9 @@
# ------------------------------- # -------------------------------
from MCDR.version import Version from MCDR.version import Version
from Difficult_Rocket.mod import MODInfo from Difficult_Rocket.mod import ModInfo
INFO = MODInfo( INFO = ModInfo(
mod_id="Difficult_Rocket_mod", mod_id="Difficult_Rocket_mod",
name="Difficult_Rocket_mod", name="Difficult_Rocket_mod",
version=Version("0.7.2.0") version=Version("0.7.2.0")