From 58319f04f239ab4a81b4eb878ad987fe453fef9e Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:20 +0100 Subject: feat(levels): coord system types and swizzling the room is now the right way up! yay! --- stockton-levels/src/q3/effects.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stockton-levels/src/q3/effects.rs') 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> { } -impl HasEffects for Q3BSPFile { +impl HasEffects for Q3BSPFile { type EffectsIter<'a> = std::slice::Iter<'a, Effect>; fn effects_iter<'a>(&'a self) -> Self::EffectsIter<'a> { -- cgit v1.2.3