#[repr(C, packed(1))]pub struct UpgradeInfo {
pub id: u32,
pub name: PaddedString<MAX_NAME_LENGTH>,
pub current_level: u32,
pub max_level: u32,
pub upgrade_progress: u32,
pub button_art: PaddedString<MAX_BUTTON_ART_LENGTH>,
}Expand description
State for a single upgrade or research entry available to a player.
Fields§
§id: u32Game-internal upgrade ID.
name: PaddedString<MAX_NAME_LENGTH>Display name.
current_level: u32Currently researched level.
max_level: u32Maximum level this upgrade supports.
upgrade_progress: u32Progress towards the next level, as a percentage e.g. 25 -> 25%.
Path to the upgrade’s button icon.
Auto Trait Implementations§
impl Freeze for UpgradeInfo
impl RefUnwindSafe for UpgradeInfo
impl Send for UpgradeInfo
impl Sync for UpgradeInfo
impl Unpin for UpgradeInfo
impl UnsafeUnpin for UpgradeInfo
impl UnwindSafe for UpgradeInfo
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