pub struct LuaSurfaceFindNearestEnemyParams {
pub force: LuaAny,
pub max_distance: f64,
pub position: MapPosition,
}Expand description
Find the enemy military target (military entity) closest to the given position.
Fields§
§force: LuaAnyThe force the result will be an enemy of. Uses the player force if not specified.
max_distance: f64Radius of the circular search area.
position: MapPositionCenter of the search area.
Trait Implementations§
Source§impl Clone for LuaSurfaceFindNearestEnemyParams
impl Clone for LuaSurfaceFindNearestEnemyParams
Source§fn clone(&self) -> LuaSurfaceFindNearestEnemyParams
fn clone(&self) -> LuaSurfaceFindNearestEnemyParams
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 LuaSurfaceFindNearestEnemyParams
impl Default for LuaSurfaceFindNearestEnemyParams
Source§fn default() -> LuaSurfaceFindNearestEnemyParams
fn default() -> LuaSurfaceFindNearestEnemyParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaSurfaceFindNearestEnemyParams
impl RefUnwindSafe for LuaSurfaceFindNearestEnemyParams
impl Send for LuaSurfaceFindNearestEnemyParams
impl Sync for LuaSurfaceFindNearestEnemyParams
impl Unpin for LuaSurfaceFindNearestEnemyParams
impl UnsafeUnpin for LuaSurfaceFindNearestEnemyParams
impl UnwindSafe for LuaSurfaceFindNearestEnemyParams
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