pub struct RoadWork {
pub builder: Option<usize>,
pub material: Option<usize>,
pub cell: i32,
pub ty: u8,
pub old_kind: u8,
pub old_built: u8,
pub old_type: u8,
}Expand description
BuildRoad’s state: its builder, the material a cell takes (stone roads), the cell, the cell type it becomes, the cell’s road kind, byte and type before (restored when the plan is taken back).
Fields§
§builder: Option<usize>The builder, if any.
material: Option<usize>The raw material the cell takes (stone roads).
cell: i32The cell.
ty: u8The cell type it becomes.
old_kind: u8The cell’s road kind before.
old_built: u8The cell’s built byte before.
old_type: u8The cell’s type before.
Trait Implementations§
impl Eq for RoadWork
impl StructuralPartialEq for RoadWork
Auto Trait Implementations§
impl Freeze for RoadWork
impl RefUnwindSafe for RoadWork
impl Send for RoadWork
impl Sync for RoadWork
impl Unpin for RoadWork
impl UnsafeUnpin for RoadWork
impl UnwindSafe for RoadWork
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