pub struct ParticleRotationFlag(pub i32);Expand description
Particle rotation flags (PAR_.rotationFlags, v18+)
Bit flags. Combine with |, test with ParticleRotationFlag::contains.
Tuple Fields§
§0: i32Implementations§
Source§impl ParticleRotationFlag
impl ParticleRotationFlag
pub const NONE: Self
Sourcepub const RELATIVE: Self
pub const RELATIVE: Self
Relative rotation; the SC2 upgrade sets it from rotationRandomEnable (v≤18)
Sourcepub const ALWAYS_SET: Self
pub const ALWAYS_SET: Self
Always set
Sourcepub const UNKNOWN_6: Self
pub const UNKNOWN_6: Self
Force-set by the SC2 version upgrade for all v≤20 emitters (role TBD)
Sourcepub const UNKNOWN_7: Self
pub const UNKNOWN_7: Self
Set by the SC2 upgrade for remapped Billboard model particles (role TBD)
pub const fn contains(self, other: Self) -> bool
pub const fn is_empty(self) -> bool
Trait Implementations§
Source§impl BitAnd for ParticleRotationFlag
impl BitAnd for ParticleRotationFlag
Source§impl BitOr for ParticleRotationFlag
impl BitOr for ParticleRotationFlag
Source§impl Clone for ParticleRotationFlag
impl Clone for ParticleRotationFlag
Source§fn clone(&self) -> ParticleRotationFlag
fn clone(&self) -> ParticleRotationFlag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParticleRotationFlag
Source§impl Debug for ParticleRotationFlag
impl Debug for ParticleRotationFlag
Source§impl Default for ParticleRotationFlag
impl Default for ParticleRotationFlag
Source§fn default() -> ParticleRotationFlag
fn default() -> ParticleRotationFlag
Returns the “default value” for a type. Read more
impl Eq for ParticleRotationFlag
Source§impl Hash for ParticleRotationFlag
impl Hash for ParticleRotationFlag
Source§impl Not for ParticleRotationFlag
impl Not for ParticleRotationFlag
Source§impl PartialEq for ParticleRotationFlag
impl PartialEq for ParticleRotationFlag
impl StructuralPartialEq for ParticleRotationFlag
Auto Trait Implementations§
impl Freeze for ParticleRotationFlag
impl RefUnwindSafe for ParticleRotationFlag
impl Send for ParticleRotationFlag
impl Sync for ParticleRotationFlag
impl Unpin for ParticleRotationFlag
impl UnsafeUnpin for ParticleRotationFlag
impl UnwindSafe for ParticleRotationFlag
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