pub struct Destroy {
pub time: i64,
pub damaged: bool,
pub refund: bool,
pub count: i32,
pub target: i32,
pub rebuild: Option<usize>,
pub damaged_look: bool,
}Expand description
The demolition state of a building: the damage time left, whether it is damaged, whether its materials come back, the demolition work done and needed, and what to put in its place.
Fields§
§time: i64The damage time left.
damaged: boolWhether it is damaged.
refund: boolWhether its materials come back.
count: i32The demolition work done.
target: i32The demolition work needed.
rebuild: Option<usize>The template to put in its place, if any.
damaged_look: boolThe model shows the description’s damaged material set (set by the damage with time left and by every collapse).
Implementations§
Trait Implementations§
impl Eq for Destroy
impl StructuralPartialEq for Destroy
Auto Trait Implementations§
impl Freeze for Destroy
impl RefUnwindSafe for Destroy
impl Send for Destroy
impl Sync for Destroy
impl Unpin for Destroy
impl UnsafeUnpin for Destroy
impl UnwindSafe for Destroy
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