pub struct LuaSurfaceFindNearestEnemyEntityWithOwnerParams {
pub force: LuaAny,
pub max_distance: f64,
pub position: MapPosition,
}Expand description
Find the enemy entity-with-owner 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 LuaSurfaceFindNearestEnemyEntityWithOwnerParams
impl Clone for LuaSurfaceFindNearestEnemyEntityWithOwnerParams
Source§fn clone(&self) -> LuaSurfaceFindNearestEnemyEntityWithOwnerParams
fn clone(&self) -> LuaSurfaceFindNearestEnemyEntityWithOwnerParams
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 LuaSurfaceFindNearestEnemyEntityWithOwnerParams
impl Default for LuaSurfaceFindNearestEnemyEntityWithOwnerParams
Source§fn default() -> LuaSurfaceFindNearestEnemyEntityWithOwnerParams
fn default() -> LuaSurfaceFindNearestEnemyEntityWithOwnerParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaSurfaceFindNearestEnemyEntityWithOwnerParams
impl RefUnwindSafe for LuaSurfaceFindNearestEnemyEntityWithOwnerParams
impl Send for LuaSurfaceFindNearestEnemyEntityWithOwnerParams
impl Sync for LuaSurfaceFindNearestEnemyEntityWithOwnerParams
impl Unpin for LuaSurfaceFindNearestEnemyEntityWithOwnerParams
impl UnsafeUnpin for LuaSurfaceFindNearestEnemyEntityWithOwnerParams
impl UnwindSafe for LuaSurfaceFindNearestEnemyEntityWithOwnerParams
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