pub struct WaveSetData {
pub name: String,
pub water_height: f32,
pub water_tint: [f32; 4],
pub opacity: f32,
pub max_length: f32,
pub geo_max_len: f32,
pub geo_min_len: f32,
pub geo_amp_over_len: f32,
pub geo_chop: f32,
pub geo_angle_dev: f32,
pub wind_dir: [f32; 3],
}Expand description
Parsed water surface data. C++ ref: plFixedWaterState7 (plFixedWaterState7.h:52-129)
Fields§
§name: String§water_height: f32§water_tint: [f32; 4]§opacity: f32§max_length: f32§geo_max_len: f32GeoState: wave geometry parameters (plFixedWaterState7::GeoState)
geo_min_len: f32§geo_amp_over_len: f32§geo_chop: f32§geo_angle_dev: f32§wind_dir: [f32; 3]Wind direction (normalized 2D, stored as 3 floats in PRP)
Trait Implementations§
Source§impl Clone for WaveSetData
impl Clone for WaveSetData
Source§fn clone(&self) -> WaveSetData
fn clone(&self) -> WaveSetData
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 WaveSetData
impl RefUnwindSafe for WaveSetData
impl Send for WaveSetData
impl Sync for WaveSetData
impl Unpin for WaveSetData
impl UnsafeUnpin for WaveSetData
impl UnwindSafe for WaveSetData
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