pub struct LuaSurfaceCreateUnitGroupParams {
pub force: LuaAny,
pub position: MapPosition,
}Expand description
Create a new unit group at a given position.
Fields§
§force: LuaAnyForce of the new unit group. Defaults to "enemy".
position: MapPositionInitial position of the new unit group.
Trait Implementations§
Source§impl Clone for LuaSurfaceCreateUnitGroupParams
impl Clone for LuaSurfaceCreateUnitGroupParams
Source§fn clone(&self) -> LuaSurfaceCreateUnitGroupParams
fn clone(&self) -> LuaSurfaceCreateUnitGroupParams
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 LuaSurfaceCreateUnitGroupParams
impl Default for LuaSurfaceCreateUnitGroupParams
Source§fn default() -> LuaSurfaceCreateUnitGroupParams
fn default() -> LuaSurfaceCreateUnitGroupParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaSurfaceCreateUnitGroupParams
impl RefUnwindSafe for LuaSurfaceCreateUnitGroupParams
impl Send for LuaSurfaceCreateUnitGroupParams
impl Sync for LuaSurfaceCreateUnitGroupParams
impl Unpin for LuaSurfaceCreateUnitGroupParams
impl UnsafeUnpin for LuaSurfaceCreateUnitGroupParams
impl UnwindSafe for LuaSurfaceCreateUnitGroupParams
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