aboutsummaryrefslogtreecommitdiff
path: root/stockton-levels/src/traits/light_vols.rs
blob: 2014fad694258820f7ca7a1ff38e043ee4bf18f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::types::Rgb;

#[derive(Debug, Clone, Copy)]
pub struct LightVol {
    pub ambient: Rgb,
    pub directional: Rgb,
    pub dir: [u8; 2],
}

pub trait HasLightVols {
    type LightVolsIter<'a>: Iterator<Item = &'a LightVol>;

    fn lightvols_iter(&self) -> Self::LightVolsIter<'_>;
    fn get_lightvol(&self, index: u32) -> &LightVol;
}