pub struct LuaSegmentedUnitCloneParams {
pub force: ForceID,
pub position: MapPosition,
pub surface: LuaSurface,
pub territory: LuaTerritory,
}Expand description
Clones this unit.
Fields§
§force: ForceIDThe new unit’s force.
position: MapPositionThe destination position of the head segment. The rest of the body nodes will be copied relative to this.
surface: LuaSurfaceThe destination surface. If different from this unit’s surface, then the clone will not copy the original unit’s territory.
territory: LuaTerritoryThe territory that the clone should guard. Must be on the same surface as the destination surface.
Trait Implementations§
Source§impl Clone for LuaSegmentedUnitCloneParams
impl Clone for LuaSegmentedUnitCloneParams
Source§fn clone(&self) -> LuaSegmentedUnitCloneParams
fn clone(&self) -> LuaSegmentedUnitCloneParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LuaSegmentedUnitCloneParams
impl Debug for LuaSegmentedUnitCloneParams
Source§impl Default for LuaSegmentedUnitCloneParams
impl Default for LuaSegmentedUnitCloneParams
Source§fn default() -> LuaSegmentedUnitCloneParams
fn default() -> LuaSegmentedUnitCloneParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaSegmentedUnitCloneParams
impl RefUnwindSafe for LuaSegmentedUnitCloneParams
impl Send for LuaSegmentedUnitCloneParams
impl Sync for LuaSegmentedUnitCloneParams
impl Unpin for LuaSegmentedUnitCloneParams
impl UnsafeUnpin for LuaSegmentedUnitCloneParams
impl UnwindSafe for LuaSegmentedUnitCloneParams
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