pub struct Decal {
pub material: Option<String>,
pub ints: [i32; 5],
pub byte: u8,
pub int6: i32,
pub flag7: bool,
pub floats: [f32; 5],
pub flag13: bool,
pub flag_v2: bool,
pub flag_bytes: [u8; 3],
pub vertices: Vec<[u8; 20]>,
pub indices: Vec<u16>,
}Expand description
A tiled decal (roads, fields, building footprints) drawn over the terrain.
Fields§
§material: Option<String>The material.
ints: [i32; 5]Not identified yet.
byte: u8Not identified yet.
int6: i32Not identified yet.
flag7: boolNot identified yet.
floats: [f32; 5]Not identified yet.
flag13: boolNot identified yet.
flag_v2: boolNot identified yet (from version 2).
flag_bytes: [u8; 3]The three flags’ bytes as written (saves hold some uninitialised non-0/1 bytes).
vertices: Vec<[u8; 20]>20-byte vertices: i16 x4, i16 x4, u8 x4.
indices: Vec<u16>The triangle indices.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decal
impl RefUnwindSafe for Decal
impl Send for Decal
impl Sync for Decal
impl Unpin for Decal
impl UnsafeUnpin for Decal
impl UnwindSafe for Decal
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