pub struct UnitSpawnUnit {
pub unit_hex: Hex,
pub body: UnitBody,
pub name: String,
pub out: Option<Vec<Hex>>,
}Expand description
The spawning of a unit from a unit
Fields§
§unit_hex: Hex§body: UnitBody§name: String§out: Option<Vec<Hex>>If out hexes are not provided the engine will choose the first empty one in a clockwise direction If out hexes are provided, sucessfully spawned units will be outputed to the first empty hex
Auto Trait Implementations§
impl Freeze for UnitSpawnUnit
impl RefUnwindSafe for UnitSpawnUnit
impl Send for UnitSpawnUnit
impl Sync for UnitSpawnUnit
impl Unpin for UnitSpawnUnit
impl UnwindSafe for UnitSpawnUnit
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