aboutsummaryrefslogtreecommitdiff
path: root/stockton-levels/src/traits/tree.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stockton-levels/src/traits/tree.rs')
-rw-r--r--stockton-levels/src/traits/tree.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/stockton-levels/src/traits/tree.rs b/stockton-levels/src/traits/tree.rs
index bdbe705..c56576a 100644
--- a/stockton-levels/src/traits/tree.rs
+++ b/stockton-levels/src/traits/tree.rs
@@ -19,6 +19,7 @@
use na::Vector3;
use super::{HasFaces, HasBrushes, HasVisData};
+use crate::coords::CoordSystem;
/// A node in a BSP tree.
/// Either has two children *or* a leaf entry.
@@ -46,6 +47,6 @@ pub struct BSPLeaf {
pub brushes_idx: Box<[u32]>,
}
-pub trait HasBSPTree: HasFaces + HasBrushes + HasVisData {
+pub trait HasBSPTree<S: CoordSystem>: HasFaces<S> + HasBrushes<S> + HasVisData {
fn get_bsp_root<'a>(&'a self) -> &'a BSPNode;
} \ No newline at end of file