From bef65c48ef963b3b770a3e4adb74ffac49069948 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Wed, 1 Mar 2023 16:39:28 +0800 Subject: [PATCH] fix: macro Debug --- libs/Difficult_Rocket_rs/src/src/types.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/Difficult_Rocket_rs/src/src/types.rs b/libs/Difficult_Rocket_rs/src/src/types.rs index 39e7e31..7c88908 100644 --- a/libs/Difficult_Rocket_rs/src/src/types.rs +++ b/libs/Difficult_Rocket_rs/src/src/types.rs @@ -47,7 +47,7 @@ pub mod sr1 { }.to_string() } - #[derive(Clone)] + #[derive(Debug, Clone)] pub struct SR1PartData { pub x: f64, pub y: f64, @@ -64,7 +64,7 @@ pub mod sr1 { pub connections: Option> } - #[derive(Copy, Clone)] + #[derive(Debug, Copy, Clone)] pub enum SR1PartAttr { Tank { fuel: f64, @@ -99,7 +99,7 @@ pub mod sr1 { } } - #[derive(Copy, Clone)] + #[derive(Debug, Copy, Clone)] pub struct Damage { pub disconnect: i32, // 断裂受力大小 @@ -122,7 +122,7 @@ pub mod sr1 { } } - #[derive(Clone)] + #[derive(Debug, Clone)] pub struct SR1PartType { pub id: String, // 部件 ID @@ -283,7 +283,7 @@ pub mod sr1 { rcs, solar, shape: self.shape.clone(), - attach_points: None, + attach_points: attach_point, lander, } }