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§
Source§impl Clone for MissileLaunch
impl Clone for MissileLaunch
Source§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 moreSource§impl Debug for MissileLaunch
impl Debug for MissileLaunch
Source§impl<'de> Deserialize<'de> for MissileLaunch
impl<'de> Deserialize<'de> for MissileLaunch
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
Source§impl Extract for MissileLaunch
impl Extract for MissileLaunch
Source§impl Serialize for MissileLaunch
impl Serialize for MissileLaunch
Source§impl TryExtract for MissileLaunch
impl TryExtract for MissileLaunch
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