pub enum WorldEvent {
ZoneLoaded(ZoneId),
ZoneUnloaded(ZoneId),
DayStart {
day: u32,
},
NightStart {
day: u32,
},
WeatherChanged {
from: WeatherType,
to: WeatherType,
},
Lightning {
position: Vec3,
},
SeasonChanged(Season),
NewYear {
year: u32,
},
}Expand description
World-level events dispatched during tick.
Variants§
ZoneLoaded(ZoneId)
ZoneUnloaded(ZoneId)
DayStart
NightStart
WeatherChanged
Lightning
SeasonChanged(Season)
NewYear
Trait Implementations§
Source§impl Clone for WorldEvent
impl Clone for WorldEvent
Source§fn clone(&self) -> WorldEvent
fn clone(&self) -> WorldEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WorldEvent
impl RefUnwindSafe for WorldEvent
impl Send for WorldEvent
impl Sync for WorldEvent
impl Unpin for WorldEvent
impl UnsafeUnpin for WorldEvent
impl UnwindSafe for WorldEvent
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