#[repr(C)]pub struct WeatherFront {
pub header: Header,
pub layer: u32,
pub effect: u32,
pub position: [i64; 3],
pub radius: f32,
pub reserved: u32,
pub remaining: i64,
}Expand description
A front of weather in the server’s world: the current phenomenon of one
of its weather layers, written by HostApi::weather_fronts.
§Examples
use enshwick::abi::{Header, WeatherFront};
let storm = WeatherFront {
header: Header::of::<WeatherFront>(),
layer: 0,
effect: WeatherFront::RAIN,
position: [0; 3],
radius: 900.0,
reserved: 0,
remaining: 300_000_000_000,
};
assert_eq!(storm.effect, WeatherFront::RAIN);Fields§
§header: HeaderSize and version of this struct.
layer: u32The weather layer it belongs to.
effect: u32§position: [i64; 3]Where it is, in 32.32 fixed-point metres.
radius: f32How far it reaches, in metres.
reserved: u32Zero.
remaining: i64How long it has left, in game nanoseconds.
Implementations§
Trait Implementations§
Source§impl Clone for WeatherFront
impl Clone for WeatherFront
impl Copy for WeatherFront
Source§impl Debug for WeatherFront
impl Debug for WeatherFront
impl Headed for WeatherFront
Source§impl PartialEq for WeatherFront
impl PartialEq for WeatherFront
impl StructuralPartialEq for WeatherFront
Auto Trait Implementations§
impl Freeze for WeatherFront
impl RefUnwindSafe for WeatherFront
impl Send for WeatherFront
impl Sync for WeatherFront
impl Unpin for WeatherFront
impl UnsafeUnpin for WeatherFront
impl UnwindSafe for WeatherFront
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