pub struct ParticleParameters {Show 18 fields
pub pos: v3f,
pub vel: v3f,
pub acc: v3f,
pub expiration_time: f32,
pub size: f32,
pub collision_detection: bool,
pub texture: String,
pub vertical: bool,
pub collision_removal: bool,
pub animation: TileAnimationParams,
pub glow: u8,
pub object_collision: bool,
pub node_param0: Option<u16>,
pub node_param2: Option<u8>,
pub node_tile: Option<u8>,
pub drag: Option<v3f>,
pub jitter: Option<RangedParameter<v3f>>,
pub bounce: Option<RangedParameter<f32>>,
}
Expand description
This is the send format used by SendSpawnParticle See ParticleParameters::serialize
Fields§
§pos: v3f
§vel: v3f
§acc: v3f
§expiration_time: f32
§size: f32
§collision_detection: bool
§texture: String
§vertical: bool
§collision_removal: bool
§animation: TileAnimationParams
§glow: u8
§object_collision: bool
§node_param0: Option<u16>
§node_param2: Option<u8>
§node_tile: Option<u8>
§drag: Option<v3f>
§jitter: Option<RangedParameter<v3f>>
§bounce: Option<RangedParameter<f32>>
Trait Implementations§
Source§impl Clone for ParticleParameters
impl Clone for ParticleParameters
Source§fn clone(&self) -> ParticleParameters
fn clone(&self) -> ParticleParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParticleParameters
impl Debug for ParticleParameters
Source§impl Deserialize for ParticleParameters
impl Deserialize for ParticleParameters
Source§type Output = ParticleParameters
type Output = ParticleParameters
Output should be Self, except for wrapper types.
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>
Source§impl PartialEq for ParticleParameters
impl PartialEq for ParticleParameters
Source§impl Serialize for ParticleParameters
impl Serialize for ParticleParameters
type Input = ParticleParameters
fn serialize<S: Serializer>(value: &Self::Input, ser: &mut S) -> SerializeResult
impl StructuralPartialEq for ParticleParameters
Auto Trait Implementations§
impl Freeze for ParticleParameters
impl RefUnwindSafe for ParticleParameters
impl Send for ParticleParameters
impl Sync for ParticleParameters
impl Unpin for ParticleParameters
impl UnwindSafe for ParticleParameters
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