pub struct LightFlag(pub i32);Expand description
Light flags (LITE.flags)
Bit flags. Combine with |, test with LightFlag::contains.
Tuple Fields§
§0: i32Implementations§
Source§impl LightFlag
impl LightFlag
pub const NONE: Self
Sourcepub const AMBIENT_OCCLUSION: Self
pub const AMBIENT_OCCLUSION: Self
AO influence
Sourcepub const LIGHT_OPAQUE: Self
pub const LIGHT_OPAQUE: Self
Lights opaque objects
Sourcepub const LIGHT_TRANSPARENT: Self
pub const LIGHT_TRANSPARENT: Self
Lights transparent objects
Sourcepub const TEAM_COLOR: Self
pub const TEAM_COLOR: Self
Uses team color
pub const fn contains(self, other: Self) -> bool
pub const fn is_empty(self) -> bool
Trait Implementations§
impl Copy for LightFlag
impl Eq for LightFlag
impl StructuralPartialEq for LightFlag
Auto Trait Implementations§
impl Freeze for LightFlag
impl RefUnwindSafe for LightFlag
impl Send for LightFlag
impl Sync for LightFlag
impl Unpin for LightFlag
impl UnsafeUnpin for LightFlag
impl UnwindSafe for LightFlag
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