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: u64
Time of registering the effect.
source: AgentId
Source 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§
Source§impl Clone for GroundEffect
impl Clone for GroundEffect
Source§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 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<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 GroundEffect
impl Extract for GroundEffect
Source§impl Serialize for GroundEffect
impl Serialize for GroundEffect
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