pub struct SkyRotationSystem { /* private fields */ }Expand description
Advances the world’s celestial-sphere rotation on the fixed timestep.
Publishes the tick’s SkyOrientation and writes it onto the
SkyRotation entity’s Transform, so the renderer, the lights and the
transform hierarchy all read one rotation. Frozen while a world-pausing
screen is open, like the rest of the simulation.
Implementations§
Source§impl SkyRotationSystem
impl SkyRotationSystem
Sourcepub fn new(rotation: &SkyRotation) -> Self
pub fn new(rotation: &SkyRotation) -> Self
The system for a world’s authored rotation.
Trait Implementations§
Source§impl Debug for SkyRotationSystem
impl Debug for SkyRotationSystem
Source§impl System for SkyRotationSystem
impl System for SkyRotationSystem
Source§fn init(&mut self, ctx: &mut PipelineContext<'_>)
fn init(&mut self, ctx: &mut PipelineContext<'_>)
Run once at
World::start, before the first step.Source§fn step(&mut self, ctx: &mut PipelineContext<'_>) -> StepResult
fn step(&mut self, ctx: &mut PipelineContext<'_>) -> StepResult
Run once per tick.
Source§fn access(&self) -> Access
fn access(&self) -> Access
The data
step may touch, consulted once when the schedule is built
(after init, so a data-dependent system can compute it from its
compiled state). The default claims everything: an undeclared system is
ordered against all others and never runs concurrently, which is always
safe. Declaring narrower access is what admits a system to shared waves
and to debug-build access validation.Auto Trait Implementations§
impl Freeze for SkyRotationSystem
impl RefUnwindSafe for SkyRotationSystem
impl Send for SkyRotationSystem
impl Sync for SkyRotationSystem
impl Unpin for SkyRotationSystem
impl UnsafeUnpin for SkyRotationSystem
impl UnwindSafe for SkyRotationSystem
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