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/entities.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stockton-levels/src/q3/entities.rs') diff --git a/stockton-levels/src/q3/entities.rs b/stockton-levels/src/q3/entities.rs index 9284fe4..4382ef2 100644 --- a/stockton-levels/src/q3/entities.rs +++ b/stockton-levels/src/q3/entities.rs @@ -21,6 +21,7 @@ use std::collections::HashMap; use crate::types::{Result, ParseError}; use crate::traits::entities::*; use super::Q3BSPFile; +use crate::coords::CoordSystem; const QUOTE: u8 = b'"'; const END_BRACKET: u8 = b'}'; @@ -99,7 +100,7 @@ pub fn from_data(data: &[u8]) -> Result> { Ok(entities.into_boxed_slice()) } -impl HasEntities for Q3BSPFile { +impl HasEntities for Q3BSPFile { type EntitiesIter<'a> = std::slice::Iter<'a, Entity>; fn entities_iter<'a>(&'a self) -> Self::EntitiesIter<'a> { -- cgit v1.2.3