aboutsummaryrefslogtreecommitdiff
path: root/stockton-levels/src/parts/visdata.rs
blob: aa2ec3dc8ec912c943d8fc6d9e56ba616451de60 (plain)
1
2
3
4
5
6
7
8
use super::faces::FaceRef;
use std::iter::Iterator;
use stockton_types::components::{CameraSettings, Transform};

pub trait HasVisData<'a> {
    type Faces: Iterator<Item = FaceRef>;
    fn get_visible(&'a self, transform: &Transform, settings: &CameraSettings) -> Self::Faces;
}