Struct veloren_common::comp::beam::Beam
source · pub struct Beam {
pub attack: Attack,
pub end_radius: f32,
pub range: f32,
pub duration: Secs,
pub tick_dur: Secs,
pub specifier: FrontendSpecifier,
pub bezier: QuadraticBezier3<f32>,
pub hit_entities: Vec<Entity>,
pub hit_durations: HashMap<Entity, u32>,
}
Fields§
§attack: Attack
§end_radius: f32
§range: f32
§duration: Secs
§tick_dur: Secs
§specifier: FrontendSpecifier
§bezier: QuadraticBezier3<f32>
§hit_entities: Vec<Entity>
§hit_durations: HashMap<Entity, u32>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Beam
impl<'de> Deserialize<'de> for Beam
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Beam
impl Send for Beam
impl Sync for Beam
impl Unpin for Beam
impl UnwindSafe for Beam
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
§impl<C, M> ConvertSaveload<M> for C
impl<C, M> ConvertSaveload<M> for C
§type Error = Infallible
type Error = Infallible
Error may occur during serialization or deserialization of component
§fn convert_into<F>(
&self,
_: F
) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
fn convert_into<F>( &self, _: F ) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
Convert this data type into serializable form (
Data
) using
entity to marker mapping function§fn convert_from<F>(
data: <C as ConvertSaveload<M>>::Data,
_: F
) -> Result<C, <C as ConvertSaveload<M>>::Error>
fn convert_from<F>( data: <C as ConvertSaveload<M>>::Data, _: F ) -> Result<C, <C as ConvertSaveload<M>>::Error>
Convert this data from a deserializable form (
Data
) using
entity to marker mapping function