pub struct ItemBasedSteering {
boosting: bool,
boost_time: i32,
}Expand description
Runtime state for vanilla ItemBasedSteering.
Fields§
§boosting: bool§boost_time: i32Implementations§
Source§impl ItemBasedSteering
impl ItemBasedSteering
Sourcepub const fn tick_boost(&mut self, boost_time_total: i32)
pub const fn tick_boost(&mut self, boost_time_total: i32)
Mirrors vanilla ItemBasedSteering.tickBoost.
Sourcepub fn boost_factor(&self, boost_time_total: i32) -> f32
pub fn boost_factor(&self, boost_time_total: i32) -> f32
Mirrors vanilla ItemBasedSteering.boostFactor.
Sourcepub const fn is_boosting(&self) -> bool
pub const fn is_boosting(&self) -> bool
Returns whether a boost is currently active.
Sourcepub const fn boost_time(&self) -> i32
pub const fn boost_time(&self) -> i32
Returns vanilla ItemBasedSteering.boostTime.
Trait Implementations§
Source§impl Debug for ItemBasedSteering
impl Debug for ItemBasedSteering
Source§impl Default for ItemBasedSteering
impl Default for ItemBasedSteering
Source§fn default() -> ItemBasedSteering
fn default() -> ItemBasedSteering
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ItemBasedSteering
impl RefUnwindSafe for ItemBasedSteering
impl Send for ItemBasedSteering
impl Sync for ItemBasedSteering
impl Unpin for ItemBasedSteering
impl UnsafeUnpin for ItemBasedSteering
impl UnwindSafe for ItemBasedSteering
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>