pub struct PlacementRules {
pub mask: u32,
pub masks: Vec<u32>,
pub mask_chars: String,
pub footprint: String,
pub width: i32,
pub height: i32,
pub cell_type: u8,
}Expand description
The CreatePlacedDescription and MapDescription values placement reads.
Fields§
§mask: u32Allowed cell types (bit per type) when no per-character table applies.
masks: Vec<u32>Per-character masks: '0' + k selects masks[k].
mask_chars: StringThe string that chooses a mask for each cell.
footprint: StringMapDescription: # own type, _ ground, . untouched.
width: i32Not identified yet.
height: i32Not identified yet.
cell_type: u8MapDescription.
Trait Implementations§
Source§impl Clone for PlacementRules
impl Clone for PlacementRules
Source§fn clone(&self) -> PlacementRules
fn clone(&self) -> PlacementRules
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlacementRules
impl Debug for PlacementRules
Source§impl<'de> Deserialize<'de> for PlacementRules
impl<'de> Deserialize<'de> for PlacementRules
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PlacementRules
impl RefUnwindSafe for PlacementRules
impl Send for PlacementRules
impl Sync for PlacementRules
impl Unpin for PlacementRules
impl UnsafeUnpin for PlacementRules
impl UnwindSafe for PlacementRules
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