pub struct Spawn {
pub timers: Vec<i64>,
}Expand description
The spawn state of a resource that makes new resources around it (for example a tree that seeds saplings).
Fields§
§timers: Vec<i64>Component: one System::Time per SpawnDescription entry, in resource order.
Implementations§
Source§impl Spawn
impl Spawn
Sourcepub fn new(count: usize) -> Self
pub fn new(count: usize) -> Self
Newly allocated entry clocks start at zero, without RNG.
Original: FUN_1400567f0, FUN_140001bb0.
Sourcepub fn update(
&mut self,
growth: f32,
delta: i64,
entries: &[(f32, f32, f32)],
) -> Vec<(usize, usize)>
pub fn update( &mut self, growth: f32, delta: i64, entries: &[(f32, f32, f32)], ) -> Vec<(usize, usize)>
Entries contain inclusive growth bounds and the CHILD GrowthDescription duration. Out-of-band clocks retain their previous value. Unlike GrowthComponent’s periodic timer, this consumes intervals at equality.
Original: FUN_140056430.
Trait Implementations§
impl Eq for Spawn
impl StructuralPartialEq for Spawn
Auto Trait Implementations§
impl Freeze for Spawn
impl RefUnwindSafe for Spawn
impl Send for Spawn
impl Sync for Spawn
impl Unpin for Spawn
impl UnsafeUnpin for Spawn
impl UnwindSafe for Spawn
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