aboutsummaryrefslogtreecommitdiff
path: root/stockton-levels/src/traits/brushes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stockton-levels/src/traits/brushes.rs')
-rw-r--r--stockton-levels/src/traits/brushes.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/stockton-levels/src/traits/brushes.rs b/stockton-levels/src/traits/brushes.rs
index 6131824..30ab420 100644
--- a/stockton-levels/src/traits/brushes.rs
+++ b/stockton-levels/src/traits/brushes.rs
@@ -18,6 +18,7 @@
//! Parses the brushes & brushsides lumps from a bsp file
use super::HasPlanes;
+use crate::coords::CoordSystem;
/// One brush record. Used for collision detection.
/// "Each brush describes a convex volume as defined by its surrounding surfaces."
@@ -35,7 +36,7 @@ pub struct BrushSide {
pub is_opposing: bool,
}
-pub trait HasBrushes: HasPlanes {
+pub trait HasBrushes<S: CoordSystem>: HasPlanes<S> {
type BrushesIter<'a>: Iterator<Item = &'a Brush>;
fn brushes_iter<'a>(&'a self) -> Self::BrushesIter<'a>;