好活!

This commit is contained in:
shenjack 2023-08-27 01:52:45 +08:00
parent 0a4de29d5a
commit acc9ae7080
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<PartTypes xmlns="https://raw.githubusercontent.com/wengh/SRxsd/master/SR/partlist.xsd">
<PartTypes xmlns="http://shenjack.top:81/files/DR/xsd/partlist.xsd">
<PartType id="pod-1" name="Command Pod Mk1" description="This is your ship's brain. Be careful with it." sprite="Pod.png" type="pod" mass="1.0" width="4" height="3" hidden="true">
<Damage disconnect="1500" explode="1500" explosionPower="5" explosionSize="10" />
<Shape>

View File

@ -1244,6 +1244,8 @@ pub mod dr {
pub shape_data: ShapeData,
}
/// 为了保证能使用到 所有类型的 碰撞体
/// 写了这么长一个玩意
pub enum ShapeData {
// rapier2d_f64::geometry::ColliderBuilder
/// 球
@ -1324,8 +1326,10 @@ pub mod dr {
pub trait DRPartTypeAttrTrait {
fn name() -> String;
// fn get_all_attr() -> HashMap<String, >;
}
/// 用于描述一个零件的属性
pub struct DRPartType<T>
where
T: DRPartTypeAttrTrait,