pub struct ClearWork {
pub resources: BTreeMap<usize, usize>,
pub cells: BTreeMap<i32, usize>,
pub filter: Option<String>,
pub clear_resources: bool,
pub clear_cells: bool,
pub clear_piles: bool,
}Expand description
ClearArea state: claimed resources (entity → citizen), claimed cells, template filter,
resources / cells / piles.
Fields§
§resources: BTreeMap<usize, usize>The claimed resources: entity → citizen.
cells: BTreeMap<i32, usize>The claimed cells: cell → citizen.
filter: Option<String>Only resources of this template are cleared, when set.
clear_resources: boolWhether natural resources are cleared.
clear_cells: boolWhether cells are cleared.
clear_piles: boolWhether piles are cleared.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClearWork
impl RefUnwindSafe for ClearWork
impl Send for ClearWork
impl Sync for ClearWork
impl Unpin for ClearWork
impl UnsafeUnpin for ClearWork
impl UnwindSafe for ClearWork
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