pub struct GroundEffect {
pub time: u64,
pub source: 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: u64Time of registering the effect.
source: AgentIdSource of the effect.
effect_id: u32Id of the effect.
Use to map to a GUID using StateChange::IdToGUID events.
location: PositionLocation of the effect.
orientation: PositionEffect orientation.
duration: u32Duration of the effect in milliseconds.
flags: u8Effect flags.
moving_platform: u8Whether the effect is on a moving platform.
scale: f32Effect scale.
tracking_id: u32Trackable id for effect remove.
Trait Implementations§
Source§impl Clone for GroundEffect
impl Clone for GroundEffect
Source§fn clone(&self) -> GroundEffect
fn clone(&self) -> GroundEffect
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 GroundEffect
impl Debug for GroundEffect
Source§impl<'de> Deserialize<'de> for GroundEffect
impl<'de> Deserialize<'de> for GroundEffect
Source§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
Source§impl Extract for GroundEffect
impl Extract for GroundEffect
Source§impl Serialize for GroundEffect
impl Serialize for GroundEffect
Source§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
Source§impl TryExtract for GroundEffect
impl TryExtract for GroundEffect
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