Struct GroundEffect
pub struct GroundEffect {
pub time: u64,
pub owner: AgentId,
pub effect_id: u32,
pub location: Position,
pub orientation: Position,
pub duration: u32,
pub flags: u8,
pub moving_platform: u8,
pub scale: f32,
pub tracking_id: u32,
}
Expand description
Effect information from an Event
with StateChange::EffectGroundCreate
.
Fields§
§time: u64
Time of registering the effect.
owner: AgentId
Owner of the effect.
effect_id: u32
Id of the effect.
Use to map to a GUID using StateChange::IdToGUID
events.
location: Position
Location of the effect.
orientation: Position
Effect orientation.
duration: u32
Duration of the effect in milliseconds.
flags: u8
Effect flags.
moving_platform: u8
Whether the effect is on a moving platform.
scale: f32
Effect scale.
tracking_id: u32
Trackable id for effect remove.
Trait Implementations§
§impl Clone for GroundEffect
impl Clone for GroundEffect
§fn clone(&self) -> GroundEffect
fn clone(&self) -> GroundEffect
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 GroundEffect
impl Debug for GroundEffect
§impl<'de> Deserialize<'de> for GroundEffect
impl<'de> Deserialize<'de> for GroundEffect
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GroundEffect, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GroundEffect, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Extract for GroundEffect
impl Extract for GroundEffect
§impl Serialize for GroundEffect
impl Serialize for GroundEffect
§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 GroundEffect
impl TryExtract for GroundEffect
§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 GroundEffect
impl RefUnwindSafe for GroundEffect
impl Send for GroundEffect
impl Sync for GroundEffect
impl Unpin for GroundEffect
impl UnwindSafe for GroundEffect
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