Struct veloren_common::comp::agent::Target
source · pub struct Target {
pub target: Entity,
pub hostile: bool,
pub selected_at: f64,
pub aggro_on: bool,
pub last_known_pos: Option<Vec3<f32>>,
}
Fields§
§target: Entity
§hostile: bool
Whether the target is hostile
selected_at: f64
The time at which the target was selected
aggro_on: bool
Whether the target has come close enough to trigger aggro.
last_known_pos: Option<Vec3<f32>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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