mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Restore collision data for airships, and add the test that would have caught this.
This commit is contained in:
parent
4147665cbb
commit
3cbf84ddb1
@ -33,8 +33,8 @@ impl Body {
|
|||||||
|
|
||||||
pub fn manifest_entry(&self) -> &'static str {
|
pub fn manifest_entry(&self) -> &'static str {
|
||||||
match self {
|
match self {
|
||||||
Body::DefaultAirship => "Human_Airship",
|
Body::DefaultAirship => "airship_human.structure",
|
||||||
Body::AirBalloon => "Air_Balloon",
|
Body::AirBalloon => "air_balloon.structure",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -176,4 +176,17 @@ pub mod figuredata {
|
|||||||
// like a hard problem if they're not the same manifest)
|
// like a hard problem if they're not the same manifest)
|
||||||
pub static ref VOXEL_COLLIDER_MANIFEST: AssetHandle<ShipSpec> = AssetExt::load_expect("server.manifests.ship_manifest");
|
pub static ref VOXEL_COLLIDER_MANIFEST: AssetHandle<ShipSpec> = AssetExt::load_expect("server.manifests.ship_manifest");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_ship_manifest_entries() {
|
||||||
|
for body in super::ALL_BODIES {
|
||||||
|
assert!(
|
||||||
|
VOXEL_COLLIDER_MANIFEST
|
||||||
|
.read()
|
||||||
|
.colliders
|
||||||
|
.get(body.manifest_entry())
|
||||||
|
.is_some()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user