pub struct TargetGeometryOverlay {
pub spell_id: u32,
pub effect_index: u8,
pub name: &'static str,
pub reason: &'static str,
pub range: Option<f64>,
pub radius: Option<f64>,
pub cone_half_angle: Option<f64>,
pub face_explicit_target: bool,
}Expand description
Spell-specific metric data that is absent from spell-effect selectors.
Fields§
§spell_id: u32§effect_index: u8§name: &'static str§reason: &'static str§range: Option<f64>§radius: Option<f64>§cone_half_angle: Option<f64>§face_explicit_target: boolImplementations§
Source§impl TargetGeometryOverlay
impl TargetGeometryOverlay
pub const fn new( coordinate: TargetEffectCoordinate, metadata: TargetOverlayMetadata, ) -> Self
pub const fn dimensions(self, range: f64, radius: f64) -> Self
pub const fn cone(self, range: f64, half_angle: f64) -> Self
pub const fn facing_explicit_target(self) -> Self
Trait Implementations§
Source§impl Clone for TargetGeometryOverlay
impl Clone for TargetGeometryOverlay
Source§fn clone(&self) -> TargetGeometryOverlay
fn clone(&self) -> TargetGeometryOverlay
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetGeometryOverlay
impl Debug for TargetGeometryOverlay
Source§impl Default for TargetGeometryOverlay
impl Default for TargetGeometryOverlay
Source§fn default() -> TargetGeometryOverlay
fn default() -> TargetGeometryOverlay
Returns the “default value” for a type. Read more
Source§impl PartialEq for TargetGeometryOverlay
impl PartialEq for TargetGeometryOverlay
impl Collect for TargetGeometryOverlay
impl Copy for TargetGeometryOverlay
impl StructuralPartialEq for TargetGeometryOverlay
Auto Trait Implementations§
impl Freeze for TargetGeometryOverlay
impl RefUnwindSafe for TargetGeometryOverlay
impl Send for TargetGeometryOverlay
impl Sync for TargetGeometryOverlay
impl Unpin for TargetGeometryOverlay
impl UnsafeUnpin for TargetGeometryOverlay
impl UnwindSafe for TargetGeometryOverlay
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more