update requirement and version DR 0.8.5.0

This commit is contained in:
shenjack 2023-06-26 10:46:43 +08:00
parent 8c91198e87
commit 3e54946eeb
8 changed files with 65 additions and 31 deletions

View File

@ -10,7 +10,7 @@ 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.4.1") # 游戏版本 game_version = Version("0.8.5.0") # 游戏版本
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__ = game_version

View File

@ -66,7 +66,7 @@
## 需要的 Python 模块 ## 需要的 Python 模块
- `pyglet` (已经内置 V2.0.5 路径:`./libs/pyglet`) - `pyglet` (已经内置 V2.0.8 路径:`./libs/pyglet`)
- `xmltodict` (已经内置 V0.12.0 路径:`./libs/xmltodict`) - `xmltodict` (已经内置 V0.12.0 路径:`./libs/xmltodict`)
- `pyperclip` (已经内置 V1.8.2 路径: `./libs/pyperclip`) - `pyperclip` (已经内置 V1.8.2 路径: `./libs/pyperclip`)
@ -77,28 +77,29 @@
# DR contributing # DR contributing
# for images # for images
pillow >= 9.5.0 # not for pypy >= 3.10
pillow >= 9.5.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython"
# for sys info # for sys info
psutil >= 5.9.5 psutil >= 5.9.5
# for files # for files
rtoml >= 0.9.0 rtoml >= 0.9.0
tomlkit >= 0.11.7 tomlkit >= 0.11.8
defusedxml >= 0.7.1 defusedxml >= 0.7.1
# for debug # for debug
objprint >= 0.2.2 objprint >= 0.2.2
viztracer >= 0.15.6 viztracer >= 0.15.6; platform_python_implementation != "PyPy"
vizplugins >= 0.1.3 vizplugins >= 0.1.3; platform_python_implementation != "PyPy"
# for compile # for compile
nuitka >= 1.5.6 nuitka >= 1.6.5
ordered-set >= 4.1.0 ordered-set >= 4.1.0
imageio >= 2.27.0 imageio >= 2.31.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython"
wheel >= 0.40.0 wheel >= 0.40.0
setuptools >= 67.6.1 setuptools >= 67.8.0
setuptools-rust >= 1.5.2 setuptools-rust >= 1.6.0
``` ```
## 感谢 ## 感谢
@ -108,8 +109,8 @@ setuptools-rust >= 1.5.2
- `tomlkit` / `rtoml` : toml 解析器 - `tomlkit` / `rtoml` : toml 解析器
- `xmltodict`: xml 与 dict 转换器 - `xmltodict`: xml 与 dict 转换器
- `pyperclip`: 剪贴板! - `pyperclip`: 剪贴板!
- `rapier2d`: 物理模拟引擎 - [rapier2d](https://rapier.rs/) : 物理模拟引擎
- `pyo3`: Rust Python 扩展 - [pyo3](https://pyo3.rs/main): Rust Python 扩展
- 主要贡献者 - 主要贡献者
- [@Rayawa](https://github.com/Rayawa) : 文档矫正 & 翻译部分 lang - [@Rayawa](https://github.com/Rayawa) : 文档矫正 & 翻译部分 lang

View File

@ -19,9 +19,9 @@
[About Versions](src/version.md) [About Versions](src/version.md)
[![Generic badge](https://img.shields.io/badge/Release-0.8.4.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases) [![Generic badge](https://img.shields.io/badge/Release-0.8.5.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
[![Generic badge](https://img.shields.io/badge/Pre_Release-0.8.4.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases) [![Generic badge](https://img.shields.io/badge/Pre_Release-0.8.5.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
[![Generic badge](https://img.shields.io/badge/Devloping-0.8.5-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases) [![Generic badge](https://img.shields.io/badge/Devloping-0.8.6-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
[![language badge](https://stats.deeptrain.net/repo/shenjackyuanjie/Difficult-Rocket?theme=dark)](https://stats.deeptrain.net/repo/shenjackyuanjie/Difficult-Rocket?theme=dark) [![language badge](https://stats.deeptrain.net/repo/shenjackyuanjie/Difficult-Rocket?theme=dark)](https://stats.deeptrain.net/repo/shenjackyuanjie/Difficult-Rocket?theme=dark)
@ -66,7 +66,7 @@
## Required python modules ## Required python modules
- `pyglet` (pre-installed V2.0.5 path:`./libs/pyglet`) - `pyglet` (pre-installed V2.0.8 path:`./libs/pyglet`)
- `xmltodict` (pre-installed V0.12.0 path:`./libs/xmltodict`) - `xmltodict` (pre-installed V0.12.0 path:`./libs/xmltodict`)
- `pyperclip` (pre-installed V1.8.2 path: `./libs/pyperclip`) - `pyperclip` (pre-installed V1.8.2 path: `./libs/pyperclip`)
@ -77,28 +77,30 @@
# DR contributing # DR contributing
# for images # for images
pillow >= 9.5.0 # not for pypy >= 3.10
pillow >= 9.5.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython"
# for sys info # for sys info
psutil >= 5.9.5 psutil >= 5.9.5
# for files # for files
rtoml >= 0.9.0 rtoml >= 0.9.0
tomlkit >= 0.11.7 tomlkit >= 0.11.8
defusedxml >= 0.7.1 defusedxml >= 0.7.1
# for debug # for debug
objprint >= 0.2.2 objprint >= 0.2.2
viztracer >= 0.15.6 viztracer >= 0.15.6; platform_python_implementation != "PyPy"
vizplugins >= 0.1.3 vizplugins >= 0.1.3; platform_python_implementation != "PyPy"
# for compile # for compile
nuitka >= 1.5.6 nuitka >= 1.6.5
ordered-set >= 4.1.0 ordered-set >= 4.1.0
imageio >= 2.27.0 imageio >= 2.31.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython"
wheel >= 0.40.0 wheel >= 0.40.0
setuptools >= 67.6.1 setuptools >= 67.8.0
setuptools-rust >= 1.5.2 setuptools-rust >= 1.6.0
``` ```
## thanks to ## thanks to
@ -108,8 +110,8 @@ setuptools-rust >= 1.5.2
- `tomlkit` / `rtoml` toml parser - `tomlkit` / `rtoml` toml parser
- `xmltodict`: translate data between xml and dict - `xmltodict`: translate data between xml and dict
- `pyperclip`: paste board! - `pyperclip`: paste board!
- `rapier2d`: Phy simulate engine - [rapier2d](https://rapier.rs/) : Phy simulate engine
- `pyo3`: Rust Python Binding - [pyo3](https://pyo3.rs/main) : Rust Python Binding
- Main contributors - Main contributors
- [@Rayawa](https://github.com/Rayawa) : Check mistake in docs & some translates - [@Rayawa](https://github.com/Rayawa) : Check mistake in docs & some translates

View File

@ -2,7 +2,7 @@
# DR game/DR rs 更新日志 # DR game/DR rs 更新日志
- 最新版本号 - 最新版本号
- DR game: 0.2.1.0 - DR game: 0.3.0.0
- DR rs: 0.2.15.0 - DR rs: 0.2.15.0
## DR rs 0.3.0.0 ## DR rs 0.3.0.0

View File

@ -2,7 +2,38 @@
# DR SDK 更新日志 # DR SDK 更新日志
- 最新版本号 - 最新版本号
- DR sdk: 0.8.4.0 - DR sdk: 0.8.5.0
## DR sdk 0.8.5.0
### Changes
- `ModManager`
- `get_mod_module(mod_name: str) -> Optional[ModInfo]`
- 通过 mod 名称获取 mod 的信息
- Get mod information by mod name
- `load_mod(mod_path: Path) -> Optional[ModInfo]`
- 加载指定路径的 mod
- Load the mod at the specified path
- `find_mods_in_path(extra_mods_path: Optional[List[Path]]) -> List[Path]`
- 在指定的路径中查找 mod 并返回 mod 的路径
- Find mods in the specified path and return the path of the mod
- `unload_mod(mod_id: str, game: Game) -> Optional[ModInfo]`
- 卸载指定的 mod 并返回 mod 的信息
- Unload the specified mod and return the mod information
- `reload_mod(mod_id: str, game: Game)`
- 重新加载指定的 mod
- Reload the specified mod
### Command
- `mods`
- `list`
- 列出所有已加载的 mod
- List all loaded mods
- `reload <mod_id>`
- 重新加载指定的 mod
- Reload the specified mod
## DR sdk 0.8.4.1 ## DR sdk 0.8.4.1

View File

@ -6,7 +6,7 @@ build-backend = "pdm.pep517.api"
[project] [project]
name = "difficult-rocket" name = "difficult-rocket"
version = "0.8.4.0" version = "0.8.5.0"
description = "A rocket game" description = "A rocket game"
authors = [ authors = [
{name = "shenjackyuanjie", email = "3695888@qq.com"} {name = "shenjackyuanjie", email = "3695888@qq.com"}

View File

@ -18,7 +18,7 @@ defusedxml >= 0.7.1
objprint >= 0.2.2 objprint >= 0.2.2
# for compile # for compile
nuitka >= 1.6.3 nuitka >= 1.6.5
ordered-set >= 4.1.0 ordered-set >= 4.1.0
imageio >= 2.31.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython" imageio >= 2.31.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython"
wheel >= 0.40.0 wheel >= 0.40.0

View File

@ -21,7 +21,7 @@ viztracer >= 0.15.6; platform_python_implementation != "PyPy"
vizplugins >= 0.1.3; platform_python_implementation != "PyPy" vizplugins >= 0.1.3; platform_python_implementation != "PyPy"
# for compile # for compile
nuitka >= 1.6.3 nuitka >= 1.6.5
ordered-set >= 4.1.0 ordered-set >= 4.1.0
imageio >= 2.31.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython" imageio >= 2.31.0; (platform_python_implementation == "PyPy" and python_version < "3.10") or platform_python_implementation == "CPython"
wheel >= 0.40.0 wheel >= 0.40.0