好活!
This commit is contained in:
parent
0a4de29d5a
commit
acc9ae7080
@ -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>
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user