From 3ca3212f91dfd12b2f36db4ef0985fb240d57860 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Wed, 1 Mar 2023 18:22:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20DR=5Frs=200.2.5.5=20Rcs=20=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E7=9A=84=E6=98=AF=20Tank?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/update_logs.md | 13 +++++++++++++ libs/Difficult_Rocket_rs/src/src/sr1_data.rs | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/src/update_logs.md b/docs/src/update_logs.md index dedf4c4..5f89239 100644 --- a/docs/src/update_logs.md +++ b/docs/src/update_logs.md @@ -22,6 +22,19 @@ - [![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 +## 20230301 DR `0.7.1.4` + DR_rs `0.2.5.4/5` + +### DR_rs V 0.2.5.5 + +- 完成了 `SR1PartType` 和 `RawPartType` 的数据转换方法 + - 修复了 `Rcs` 字段 实际上检测的是 `Tank` 的问题 + - Complete the data conversion method of `SR1PartType` and `RawPartType` + - Fix the problem that the actual detection of `Rcs` field is `Tank` + +### DR_rs V 0.2.5.4 + +- 完善了 `SR1PartType` 和 `RawPartType` 的转换 + ## 20230326 DR `0.7.1.3` + DR_rs `0.2.5.3` + API `0.0.0.1` + 13 ### 内部协议 13 diff --git a/libs/Difficult_Rocket_rs/src/src/sr1_data.rs b/libs/Difficult_Rocket_rs/src/src/sr1_data.rs index abb87fb..b19ff85 100644 --- a/libs/Difficult_Rocket_rs/src/src/sr1_data.rs +++ b/libs/Difficult_Rocket_rs/src/src/sr1_data.rs @@ -225,7 +225,7 @@ pub mod part_list { pub tank: Option, #[serde(rename = "Engine")] pub engine: Option, - #[serde(rename = "Tank")] + #[serde(rename = "Rcs")] pub rcs: Option, #[serde(rename = "Solar")] pub solar: Option, @@ -309,6 +309,7 @@ pub mod part_list { pub fn to_sr_part_list(&self, name: Option) -> SR1PartList { let mut part_list = Vec::new(); for part_data in self.part_types.iter() { + println!("{}", part_data.id.to_string()); part_list.push(part_data.to_sr_part_type()); } SR1PartList { types: part_list, name: name.unwrap_or("".to_string()) }