362 lines
7.9 KiB
Markdown
362 lines
7.9 KiB
Markdown
# DR game/DR rs 0.2.x 更新日志
|
|
|
|
## 20231101 DR rs 0.2.23.0
|
|
|
|
### Dependency
|
|
|
|
- Update `DR rs` dependency
|
|
- `quick-xml`: `0.30.0` -> `0.31.0`
|
|
- `serde`: `1.0.186` -> `1.0.190`
|
|
- `xml-rs`: `0.8.16` -> `0.8.19`
|
|
|
|
## 20230825 DR rs 0.2.22.0
|
|
|
|
### Remove
|
|
|
|
- 删除了 `map_ptype_textures` 函数
|
|
- 直接通过 `SR1PartType_rs` 实例获取贴图路径
|
|
- Delete `map_ptype_textures`
|
|
- Get the texture path directly through the `SR1PartType_rs` instance
|
|
|
|
### Changes
|
|
|
|
- 为 `types.rs` 添加了一些注释
|
|
- 感谢 `sssssssboom` 的帮助
|
|
- Add some comments to `types.rs`
|
|
- Thanks to `sssssssboom` for the help
|
|
- 正在设计 DR 的数据结构
|
|
- Designing DR's data structure
|
|
|
|
## 20230812 DR game 0.3.3.0
|
|
|
|
### Changes
|
|
|
|
- 将 `sr1_ship` 渲染器使用的 Camera 改成 `CenterGroupCamera`
|
|
- 删除了之前的 Camera 相关代码
|
|
- 将用于渲染到材质的代码部分改为使用 `glScissor` 和 `glViewport`
|
|
- 优化了一点性能 ( 毕竟是OpenGL )
|
|
|
|
## 20230809 DR game 0.3.2.1
|
|
|
|
### Fix
|
|
|
|
- 因为把部件加载图片的数据源改成从 `SR1PartType_rs` 里取
|
|
- 所以修改了 `SR1Textures` 的加载逻辑
|
|
- 可以自动忽略文件名最后的 `.png`
|
|
|
|
## 20230808 DR rs 0.2.21.0
|
|
|
|
### Add
|
|
|
|
- 在 `__init__.py` 里添加了
|
|
- `sprite`
|
|
- `type`
|
|
- 的导出 (实际上就是 typing)
|
|
- `SR1PartType_rs`
|
|
- 添加了 `type` getter
|
|
|
|
摸鱼真开心
|
|
|
|
## 20230724 DR rs 0.2.20.2
|
|
|
|
### Fix
|
|
|
|
- [#49](https://github.com/shenjackyuanjie/Difficult-Rocket/issues/49)
|
|
- missing field `touchingGround`
|
|
- SR1 says: `touchingGround` field is NOT Required
|
|
- make them happy
|
|
- SR1 说: `touchingGround` 字段也是可选的
|
|
- 让他们开心
|
|
- 我就看看我能发多少个 issue
|
|
|
|
## 20230724 DR rs 0.2.20.1
|
|
|
|
### Fix
|
|
|
|
- [#48](https://github.com/shenjackyuanjie/Difficult-Rocket/issues/48)
|
|
- `missing field version`
|
|
- SR1 says: `version` field is NOT Required
|
|
- make them happy
|
|
- SR1 说: `version` 字段也是可选的
|
|
- 让他们开心
|
|
- 我谢谢您啊 Jundroo
|
|
- 我就看看我能发多少个 issue
|
|
|
|
## 20230724 DR rs 0.2.20.0
|
|
|
|
### Fix
|
|
|
|
- [#47](https://github.com/shenjackyuanjie/Difficult-Rocket/issues/47)
|
|
- `editorAngle field is Option<i32>`
|
|
- SR1 says: `editorAngle` field is Optional
|
|
- make them happy
|
|
- SR1 说: `editorAngle` 字段是可选的
|
|
- 让他们开心
|
|
|
|
## 20230721 DR rs 0.2.19.0
|
|
|
|
### Add
|
|
|
|
- `PySR1Ship`
|
|
- `as_list`
|
|
|
|
## 20230721 DR game 0.3.2.0
|
|
|
|
### BUG Fix
|
|
|
|
- [#46](https://github.com/shenjackyuanjie/Difficult-Rocket/issues/46)
|
|
- 渲染偏移 bug
|
|
|
|
## 20230721 DR rs 0.2.18.0
|
|
|
|
### Add
|
|
|
|
- 导出了 export
|
|
- `PySR1PartData`
|
|
- `PySaveStatus`
|
|
- `map_ptype_textures(part_type: str) -> str`
|
|
|
|
## 20230721 DR rs 0.2.17.0
|
|
|
|
### BreakingChanges
|
|
|
|
- `SR1Ship_rs`
|
|
- `__init__`
|
|
- 将 `part_list` 参数从传入 `PartList.xml` 路径 改为直接传入 `SR1PartList_rs` 实例
|
|
- Change the `part_list` parameter from passing in the `PartList.xml` path to directly passing in the `SR1PartList_rs` instance
|
|
|
|
## 20230721 DR rs 0.2.16.0
|
|
|
|
### Dependencies
|
|
|
|
in [#45](https://github.com/shenjackyuanjie/Difficult-Rocket/pull/45)
|
|
|
|
- `pyo3`
|
|
- `0.19.0` -> `0.19.1`
|
|
- `xml-rs`
|
|
- `0.8.14` -> `0.8.16`
|
|
- `serde`
|
|
- `1.0.164` -> `1.0.173`
|
|
|
|
## DR game 0.3.1.2 / 0.3.1.3
|
|
|
|
- 加回了显示 delta 的那根线
|
|
- Add back the line that displays delta
|
|
|
|
## DR rs 0.2.15.2
|
|
|
|
### Add
|
|
|
|
- `SR1PartData_rs`
|
|
- `get_id -> IdType`
|
|
- `get_x -> f64`
|
|
- `get_y -> f64`
|
|
- `get_activate -> bool`
|
|
- `get_angle_v -> f64`
|
|
- `get_explode -> bool`
|
|
|
|
## DR rs 0.2.15.1
|
|
|
|
### Changes
|
|
|
|
- `types.rs` & `python.rs` 利用可用的 Clippy 改进了代码
|
|
- `types.rs` & `python.rs` improved the code with available Clippy
|
|
|
|
## DR game 0.3.1.1
|
|
|
|
### Fix
|
|
|
|
- `sr_tr` 加载语言文件的路径并没有跟随目录名称改变
|
|
- `sr_tr` does not follow the directory name change when loading the language file path
|
|
|
|
## DR game 0.3.1.0
|
|
|
|
- 使用 `Difficult_Rocket.api.camera.Camera` 类
|
|
- Use `Difficult_Rocket.api.camera.Camera` class
|
|
|
|
## DR game 0.3.0.0
|
|
|
|
有一些修改(忘记记录了
|
|
|
|
## DR rs 0.3.0.0
|
|
|
|
### 修改
|
|
|
|
- 适配了 `DR sdk` 的关于 mods 的修改
|
|
- Adapted the modification of mods about `DR sdk`
|
|
- `RustConsole`
|
|
- 现在输入体验更好了
|
|
- Now the input experience is better
|
|
|
|
## DR rs 0.2.15.0
|
|
|
|
### 修改
|
|
|
|
- 现在支持新的 mods reload 和 unload 了
|
|
- 适配了 `DR sdk` 的关于 mods 的修改
|
|
- Now support new mods reload and unload
|
|
- Adapted the modification of mods about `DR sdk`
|
|
|
|
### 添加
|
|
|
|
- `IdType = i64`
|
|
- 统一的 id 类型
|
|
- Unified id type
|
|
- `PySR1Ship`
|
|
- `get_connection -> Vec<(i32, i32, IdType, IdType)>`
|
|
- 获取飞船的连接信息
|
|
- Get the connection information of the ship
|
|
|
|
## DR rs 0.2.14.0
|
|
|
|
### 删除
|
|
|
|
- 删除了多个 xml 测试读取函数
|
|
- Remove multiple xml test read functions
|
|
|
|
### 改进
|
|
|
|
- 改进了 xml writer 的 `SR1Ship` 写入
|
|
- Improve the xml writer's `SR1Ship` write
|
|
|
|
## DR game 0.2.1.0
|
|
|
|
### 修改
|
|
|
|
- 将 `sr1_ship` 中的 `Camera_rs` 改为 `Difficult_Rocket.utils.camera.Camera`
|
|
- Change `Camera_rs` in `sr1_ship` to `Difficult_Rocket.utils.camera.Camera`
|
|
- 添加了部件的连接线(都是彩色哒)
|
|
- Add the connection line of the part (all are colored)
|
|
|
|
## DR rs 0.2.13.0
|
|
|
|
### 删除
|
|
|
|
- 删除了 `render.rs`
|
|
- 没必要拿 rust 写这玩意(
|
|
- 用 `DR game` 的 `camera` 代替
|
|
- Delete `render.rs`
|
|
- No need to write this thing with rust (
|
|
- Use `DR game`'s `camera` instead
|
|
|
|
### 添加
|
|
|
|
- 添加了 基于 `quick-xml::writer::Writer` 的 xml `SR1Ship` 写入
|
|
- 折磨啊啊啊啊啊啊啊啊
|
|
- Add xml `SR1Ship` write based on `quick-xml::writer::Writer`
|
|
- Torture ah ah ah ah ah ah ah ah
|
|
|
|
## DR rs 0.2.12.0
|
|
|
|
### 添加
|
|
|
|
- 添加了 xml 的读取测试
|
|
- Add xml read test
|
|
|
|
## DR game 0.1.2.0
|
|
|
|
### 修改
|
|
|
|
- 现在渲染飞船的时候不会再显示那个白色框了
|
|
- 改为一个彩色的框
|
|
- Now, the ship will not be displayed in the white box
|
|
- Change to a colored box
|
|
|
|
## DR rs 0.2.11.0
|
|
|
|
### 添加
|
|
|
|
- `Python::data::PySR1Ship`
|
|
- `get_part_box(&self, part_id: i64) -> Option<(f64, f64), (f64, f64)>`
|
|
- 用于获取对应 id 的实际碰撞箱
|
|
|
|
## DR game 0.2.0.0
|
|
|
|
### 适配
|
|
|
|
- 适配了 `DR_sdk` `0.8.3.0` 的修改
|
|
|
|
## DR game 0.1.1.0
|
|
|
|
### 添加
|
|
|
|
- `types.py`
|
|
- 从 `DR.api.types.SR1` 中移动过来
|
|
|
|
### 新功能
|
|
|
|
- `console.py`
|
|
- 基于 `PyConsole`
|
|
- 用于替换 `DR sdk` 的默认控制台方法
|
|
|
|
## DR rs 0.2.10.1
|
|
|
|
### `types.rs`
|
|
|
|
- 兼容了 `Option<Vec<Step>>` 的 `sr1_data.rs`
|
|
- `Vec<Step>` -> `Option<Vec<Step>>`
|
|
|
|
### Bug 修复
|
|
|
|
- [#24](https://github.com/shenjackyuanjie/Difficult-Rocket/issues/24) `无法解析 带 staging 不带 steps的飞船`
|
|
|
|
## DR rs 0.2.10.0
|
|
|
|
### `python::PySR1PartType`
|
|
|
|
- 添加可从 Python 端获取的部件信息
|
|
- `get_descriptiton -> String`
|
|
- 部件描述 (Part description)
|
|
- `get_sprite -> String`
|
|
- 部件贴图 (Part sprite)
|
|
- `get_width -> u32`
|
|
- 部件宽度 (Part width)
|
|
- `get_height -> u32`
|
|
- 部件高度 (Part height)
|
|
- `get_friction`
|
|
- 部件摩擦系数 (Part friction)
|
|
- `get_hidden`
|
|
- 部件是否隐藏 (Part hidden)
|
|
|
|
## DR rs 0.2.9.3
|
|
|
|
### `sr1_data`
|
|
|
|
- `inflation`
|
|
- `Option<bool>` -> `Option<f64>`
|
|
|
|
### Bug 修复
|
|
|
|
- [#21](https://github.com/shenjackyuanjie/Difficult-Rocket/issues/21) `field: "missing field Activate"`
|
|
|
|
## DR rs 0.2.9.2
|
|
|
|
### Bug 修复
|
|
|
|
- [#20](https://github.com/shenjackyuanjie/Difficult-Rocket/issues/20) `<DisconnectedParts/>`
|
|
|
|
## DR rs 0.2.9.1
|
|
|
|
### 实现
|
|
|
|
- `types::sr1::get_max_box`
|
|
- 部分实现
|
|
- `types::math::Rotatable`
|
|
- 添加了 mut 版方法
|
|
|
|
## DR rs 0.2.9.0
|
|
|
|
### 新功能
|
|
|
|
- `python::console::PyConsole`
|
|
- 一个基于 `std::thread` 的多线程控制台
|
|
- GIL 我谢谢你
|
|
- 用于替换 `DR sdk` 的默认控制台方法
|
|
- A multi-thread console based on `std::thread`
|
|
- Used to replace the default console method of `DR sdk`
|
|
|
|
### Bug 修复
|
|
|
|
- [#19](https://github.com/shenjackyuanjie/Difficult-Rocket/issues/19) `BorrowMutError`
|
|
|