pub struct FactorySpawnUnit {
pub factory_hex: Hex,
pub body: UnitBody,
pub name: String,
pub out: Option<Vec<Hex>>,
}Expand description
The spawning of a unit from a factory
Fields§
§factory_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 FactorySpawnUnit
impl RefUnwindSafe for FactorySpawnUnit
impl Send for FactorySpawnUnit
impl Sync for FactorySpawnUnit
impl Unpin for FactorySpawnUnit
impl UnwindSafe for FactorySpawnUnit
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