pub struct FortressProduction {
pub last_collectable: u64,
pub limit: u64,
pub per_hour: u64,
pub per_hour_next_lvl: u64,
}
Expand description
Information about the producion of a resource in the fortress. Note that experience will not have some of these fields
Fields§
§last_collectable: u64
The amount the production building has already produced, that you can
collect. Note that this value will be out of date by some amount of
time. If you need the exact current amount collectable, look at
last_collectable_updated
limit: u64
The maximum amount of this resource, that this building can store. If
building_collectable == building_limit
the production stops
per_hour: u64
The amount of this resource the corresponding production building produces per hour
per_hour_next_lvl: u64
The amount of this resource the building produces on the next level per hour. If the resource is Experience, this will be 0
Trait Implementations§
Source§impl Clone for FortressProduction
impl Clone for FortressProduction
Source§fn clone(&self) -> FortressProduction
fn clone(&self) -> FortressProduction
Returns a copy of the value. Read more
1.0.0 · 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 FortressProduction
impl Debug for FortressProduction
Source§impl Default for FortressProduction
impl Default for FortressProduction
Source§fn default() -> FortressProduction
fn default() -> FortressProduction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FortressProduction
impl<'de> Deserialize<'de> for FortressProduction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FortressProduction
impl RefUnwindSafe for FortressProduction
impl Send for FortressProduction
impl Sync for FortressProduction
impl Unpin for FortressProduction
impl UnwindSafe for FortressProduction
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