Struct MissileLaunch
pub struct MissileLaunch {
pub time: u64,
pub source: AgentId,
pub target: AgentId,
pub target_location: Position,
pub current_location: Position,
pub skill_id: u32,
pub motion: u8,
pub range: i16,
pub flags: MissileFlags,
pub speed: i16,
pub tracking_id: u32,
}
Expand description
Missile created.
Fields§
§time: u64
Time of registering the missile.
source: AgentId
Agent creating the missile.
target: AgentId
Target of the missile, if set and in range.
target_location: Position
Target location.
current_location: Position
Current location.
skill_id: u32
Associated skill id.
motion: u8
Missile motion type.
range: i16
Range or radius depending on the missile’s motion.
flags: MissileFlags
Missile flags on launch.
speed: i16
Missile speed.
tracking_id: u32
Trackable id to identify missile in other events.
Trait Implementations§
§impl Clone for MissileLaunch
impl Clone for MissileLaunch
§fn clone(&self) -> MissileLaunch
fn clone(&self) -> MissileLaunch
Returns a copy 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 more§impl Debug for MissileLaunch
impl Debug for MissileLaunch
§impl<'de> Deserialize<'de> for MissileLaunch
impl<'de> Deserialize<'de> for MissileLaunch
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MissileLaunch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MissileLaunch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Extract for MissileLaunch
impl Extract for MissileLaunch
§impl Serialize for MissileLaunch
impl Serialize for MissileLaunch
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl TryExtract for MissileLaunch
impl TryExtract for MissileLaunch
§fn can_extract(event: &Event) -> bool
fn can_extract(event: &Event) -> bool
Checks whether
Self
can be extracted from the event.§fn try_extract(event: &Event) -> Option<Self>
fn try_extract(event: &Event) -> Option<Self>
Attempts to extract
Self
from the combat event.Auto Trait Implementations§
impl Freeze for MissileLaunch
impl RefUnwindSafe for MissileLaunch
impl Send for MissileLaunch
impl Sync for MissileLaunch
impl Unpin for MissileLaunch
impl UnwindSafe for MissileLaunch
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