pub struct LuaSurfaceSetMultiCommandParams {
pub command: Command,
pub force: LuaAny,
pub unit_count: u32,
pub unit_search_distance: u32,
}Expand description
Give a command to multiple units. This will automatically select suitable units for the task.
Fields§
§command: Command§force: LuaAnyForce of the units this command is to be given to. If not specified, uses the enemy force.
unit_count: u32Number of units to give the command to.
unit_search_distance: u32Radius to search for units. The search area is centered on the destination of the command. If not specified uses default value of 150.
Trait Implementations§
Source§impl Clone for LuaSurfaceSetMultiCommandParams
impl Clone for LuaSurfaceSetMultiCommandParams
Source§fn clone(&self) -> LuaSurfaceSetMultiCommandParams
fn clone(&self) -> LuaSurfaceSetMultiCommandParams
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 Default for LuaSurfaceSetMultiCommandParams
impl Default for LuaSurfaceSetMultiCommandParams
Source§fn default() -> LuaSurfaceSetMultiCommandParams
fn default() -> LuaSurfaceSetMultiCommandParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaSurfaceSetMultiCommandParams
impl RefUnwindSafe for LuaSurfaceSetMultiCommandParams
impl Send for LuaSurfaceSetMultiCommandParams
impl Sync for LuaSurfaceSetMultiCommandParams
impl Unpin for LuaSurfaceSetMultiCommandParams
impl UnsafeUnpin for LuaSurfaceSetMultiCommandParams
impl UnwindSafe for LuaSurfaceSetMultiCommandParams
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