aboutsummaryrefslogtreecommitdiff
path: root/stockton-levels/src/q3/brushes.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:20 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:20 +0100
commit58319f04f239ab4a81b4eb878ad987fe453fef9e (patch)
treeb3245686b548b3d5f51bd61be609c1bee239d155 /stockton-levels/src/q3/brushes.rs
parentac3870a05701933d85c4a8b440d3c7dbc4959d33 (diff)
feat(levels): coord system types and swizzling
the room is now the right way up! yay!
Diffstat (limited to 'stockton-levels/src/q3/brushes.rs')
-rw-r--r--stockton-levels/src/q3/brushes.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/stockton-levels/src/q3/brushes.rs b/stockton-levels/src/q3/brushes.rs
index f8a979d..f82e57a 100644
--- a/stockton-levels/src/q3/brushes.rs
+++ b/stockton-levels/src/q3/brushes.rs
@@ -26,6 +26,7 @@ const SIDE_SIZE: usize = 4 * 2;
use crate::helpers::slice_to_i32;
use crate::types::{ParseError, Result};
use crate::traits::brushes::*;
+use crate::coords::CoordSystem;
use super::Q3BSPFile;
/// Parse the brushes & brushsides lump from a bsp file.
@@ -104,7 +105,7 @@ fn get_sides(
}
-impl HasBrushes for Q3BSPFile {
+impl<T: CoordSystem> HasBrushes<T> for Q3BSPFile<T> {
type BrushesIter<'a> = std::slice::Iter<'a, Brush>;
fn brushes_iter<'a>(&'a self) -> Self::BrushesIter<'a> {