pub(crate) fn initialize_lighting(
        &self,
        grid: Grid,
        ambient_color: PackedLight,
    ) -> Box<[PackedLight]> {
        match self {
            LightPhysics::None => Box::new([]),
            LightPhysics::Rays { .. } => vec![ambient_color; grid.volume()].into_boxed_slice(),
        }
    }
/// Generate the lighting data array that a newly created empty [`Space`] should have.
Generate the lighting data array that a newly created empty [`Space`] should have.
Generate the lighting data array that a newly created empty [ ` Space ` ] should have .
pub(crate) fn initialize_lighting(
        &self,
        grid: Grid,
        ambient_color: PackedLight,
    ) -> Box<[PackedLight]> {
        match self {
            LightPhysics::None => Box::new([]),
            LightPhysics::Rays { .. } => vec![ambient_color; grid.volume()].into_boxed_slice(),
        }
    }
pub ( crate ) fn initialize_lighting ( & self , grid : Grid , ambient_color : PackedLight , ) -> Box < [ PackedLight ] > { match self { LightPhysics :: None => Box :: new ( [ ] ) , LightPhysics :: Rays { .. } => vec ! [ ambient_color grid volume ( ) ] . into_boxed_slice ( ) , } }
Generate the lighting data array that a newly created empty [`Space`] should have.
Generate the lighting data array that a newly created empty [ ` Space ` ] should have .
&self
grid
Grid
ambient_color
PackedLight