pub struct DecalDescription {
pub alpha: f32,
pub materials: Vec<Option<String>>,
pub scale: f32,
pub rects: Vec<[f32; 4]>,
pub tiled: bool,
pub flag: bool,
}Expand description
DecalDescription: the terrain decal a DecalComponent puts over its entity’s map rectangle
(Template\X.rsc:decal).
Original: FUN_140120e50.
Fields§
§alpha: f32The alpha until the entity is built.
materials: Vec<Option<String>>Materials; the component’s picks one.
scale: f32The texture’s size in rectangle units.
rects: Vec<[f32; 4]>A texture rectangle (u0, v0, u1, v1) per model variant.
tiled: boolTiled (the road atlas by the rectangle’s edges) instead of one picture.
flag: boolNot identified yet.
Trait Implementations§
Source§impl Clone for DecalDescription
impl Clone for DecalDescription
Source§fn clone(&self) -> DecalDescription
fn clone(&self) -> DecalDescription
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 moreSource§impl Debug for DecalDescription
impl Debug for DecalDescription
Source§impl PartialEq for DecalDescription
impl PartialEq for DecalDescription
impl StructuralPartialEq for DecalDescription
Auto Trait Implementations§
impl Freeze for DecalDescription
impl RefUnwindSafe for DecalDescription
impl Send for DecalDescription
impl Sync for DecalDescription
impl Unpin for DecalDescription
impl UnsafeUnpin for DecalDescription
impl UnwindSafe for DecalDescription
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