pub struct WorldCell {
pub elevation: f32,
pub temperature: f32,
pub moisture: f32,
pub biome: BiomeId,
pub river_id: Option<u32>,
pub road_id: Option<u32>,
pub settlement_id: Option<u32>,
}Expand description
A single cell on the world map.
Fields§
§elevation: f32§temperature: f32§moisture: f32§biome: BiomeId§river_id: Option<u32>§road_id: Option<u32>§settlement_id: Option<u32>Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorldCell
impl RefUnwindSafe for WorldCell
impl Send for WorldCell
impl Sync for WorldCell
impl Unpin for WorldCell
impl UnsafeUnpin for WorldCell
impl UnwindSafe for WorldCell
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