aboutsummaryrefslogtreecommitdiff
path: root/stockton-levels/src/q3/effects.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/effects.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/effects.rs')
-rw-r--r--stockton-levels/src/q3/effects.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/stockton-levels/src/q3/effects.rs b/stockton-levels/src/q3/effects.rs
index 0fddfb7..77ad1ed 100644
--- a/stockton-levels/src/q3/effects.rs
+++ b/stockton-levels/src/q3/effects.rs
@@ -21,6 +21,7 @@ use crate::helpers::slice_to_u32;
use crate::types::{Result, ParseError};
use crate::traits::effects::*;
use super::Q3BSPFile;
+use crate::coords::CoordSystem;
/// The size of one effect definition
const EFFECT_SIZE: usize = 64 + 4 + 4;
@@ -50,7 +51,7 @@ pub fn from_data(data: &[u8], n_brushes: u32) -> Result<Box<[Effect]>> {
}
-impl HasEffects for Q3BSPFile {
+impl<T: CoordSystem> HasEffects<T> for Q3BSPFile<T> {
type EffectsIter<'a> = std::slice::Iter<'a, Effect>;
fn effects_iter<'a>(&'a self) -> Self::EffectsIter<'a> {