pub struct StockWarnings {
pub count: [i32; 21],
pub previous: [i32; 21],
pub limits: [i32; 21],
pub cooldown: [i64; 21],
pub capacity: [(i32, i32, i64); 2],
}Expand description
The stock manager’s warning state (Game: slots, capacity records).
Fields§
§count: [i32; 21]The count of each slot.
Original: FUN_14008f3a0.
previous: [i32; 21]The count of each slot at the last check.
limits: [i32; 21]The production limit of each stock slot (the Town Hall changes them).
cooldown: [i64; 21]Warning cooldown.
capacity: [(i32, i32, i64); 2]records: produced goods and logs/stone/iron, (used, capacity, cooldown).
Implementations§
Source§impl StockWarnings
impl StockWarnings
Sourcepub fn recompute(&mut self, storages: &[Storage], materials: &[RawMaterial])
pub fn recompute(&mut self, storages: &[Storage], materials: &[RawMaterial])
Shift counts to previous, recount, and total used/capacity by kind.
Original: FUN_14008f3a0.
Trait Implementations§
Source§impl Clone for StockWarnings
impl Clone for StockWarnings
Source§fn clone(&self) -> StockWarnings
fn clone(&self) -> StockWarnings
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 StockWarnings
impl Debug for StockWarnings
Auto Trait Implementations§
impl Freeze for StockWarnings
impl RefUnwindSafe for StockWarnings
impl Send for StockWarnings
impl Sync for StockWarnings
impl Unpin for StockWarnings
impl UnsafeUnpin for StockWarnings
impl UnwindSafe for StockWarnings
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