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.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/stockton-levels/src/traits/tree.rs b/stockton-levels/src/traits/tree.rs
index 06cfd80..bdbe705 100644
--- a/stockton-levels/src/traits/tree.rs
+++ b/stockton-levels/src/traits/tree.rs
@@ -18,6 +18,7 @@
//! Parses the BSP tree into a usable format
use na::Vector3;
+use super::{HasFaces, HasBrushes, HasVisData};
/// A node in a BSP tree.
/// Either has two children *or* a leaf entry.
@@ -45,6 +46,6 @@ pub struct BSPLeaf {
pub brushes_idx: Box<[u32]>,
}
-pub trait HasBSPTree<'a> {
- fn get_bsp_root(&'a self) -> &'a BSPNode;
+pub trait HasBSPTree: HasFaces + HasBrushes + HasVisData {
+ fn get_bsp_root<'a>(&'a self) -> &'a BSPNode;
} \ No newline at end of file