aboutsummaryrefslogtreecommitdiff
path: root/stockton-levels/src/traits/faces.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stockton-levels/src/traits/faces.rs')
-rw-r--r--stockton-levels/src/traits/faces.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/stockton-levels/src/traits/faces.rs b/stockton-levels/src/traits/faces.rs
index cb97877..50d2b7d 100644
--- a/stockton-levels/src/traits/faces.rs
+++ b/stockton-levels/src/traits/faces.rs
@@ -19,6 +19,7 @@ use std::ops::Range;
use na::{Vector2, Vector3};
use super::{HasEffects, HasTextures, HasLightMaps, HasMeshVerts};
+use crate::coords::CoordSystem;
#[derive(Debug, Clone, Copy, PartialEq)]
#[repr(i32)]
@@ -47,7 +48,7 @@ pub struct Face {
pub size: Vector2<u32>,
}
-pub trait HasFaces: HasTextures + HasEffects + HasLightMaps + HasMeshVerts {
+pub trait HasFaces<S: CoordSystem>: HasTextures + HasEffects<S> + HasLightMaps + HasMeshVerts<S> {
type FacesIter<'a>: Iterator<Item = &'a Face>;
fn faces_iter<'a>(&'a self) -> Self::FacesIter<'a>;