pub struct Placed {Show 15 fields
pub template: usize,
pub bucket: usize,
pub cell: (i32, i32),
pub footprint: (i32, i32),
pub position: [f32; 3],
pub yaw: f32,
pub variant: usize,
pub mesh: usize,
pub growth: f32,
pub growth_state: Option<Growth>,
pub spawn_state: Option<Spawn>,
pub alive: bool,
pub removal_requested: bool,
pub animation: Option<Playback>,
pub scale: [f32; 4],
}Expand description
A placed entity.
Fields§
§template: usizeIndex into the template table.
bucket: usizeEntity: actual registration bucket, which can differ from its own template.
cell: (i32, i32)Map cell.
footprint: (i32, i32)MapComponent, after rotation; profile yards have variable dimensions.
position: [f32; 3]Map position (cells from the terrain centre) and ground height.
yaw: f32The heading, in degrees.
variant: usizeThe model variant.
mesh: usizeThe mesh.
growth: f32How grown the resource is (1.0 by default).
growth_state: Option<Growth>The growth component, if any.
spawn_state: Option<Spawn>The spawn component, if any.
alive: boolWhether it is still in the world.
removal_requested: boolNaturalResourceComponent flag 0x200000.
Original: FUN_14012bc50.
animation: Option<Playback>The animation it plays, if any.
scale: [f32; 4]Mesh instance scale (MeshInstance).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Placed
Auto Trait Implementations§
impl Freeze for Placed
impl RefUnwindSafe for Placed
impl Send for Placed
impl Sync for Placed
impl Unpin for Placed
impl UnsafeUnpin for Placed
impl UnwindSafe for Placed
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