pub struct Scene<'a> {
pub sectors: &'a [Sector],
pub walls: &'a [Wall],
pub sprites: &'a [SpriteDraw],
pub tiles: &'a TileSet,
pub luts: &'a ShadeLuts,
pub sky_offsets: &'a [i16],
pub sky_bits: i32,
pub visibility: i32,
pub clock: i32,
pub voxels: &'a [Option<Voxel>],
pub ror: &'a [Ror],
}Fields§
§sectors: &'a [Sector]§walls: &'a [Wall]§sprites: &'a [SpriteDraw]§tiles: &'a TileSet§luts: &'a ShadeLuts§sky_offsets: &'a [i16]§sky_bits: i32§visibility: i32Global visibility (map header value; larger = darker with distance).
clock: i32Game clock in 120 Hz ticks, used for tile animation.
voxels: &'a [Option<Voxel>]Voxel models by id.
ror: &'a [Ror]See-through floor/ceiling links per sector (may be empty).
Auto Trait Implementations§
impl<'a> Freeze for Scene<'a>
impl<'a> RefUnwindSafe for Scene<'a>
impl<'a> Send for Scene<'a>
impl<'a> Sync for Scene<'a>
impl<'a> Unpin for Scene<'a>
impl<'a> UnsafeUnpin for Scene<'a>
impl<'a> UnwindSafe for Scene<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more