#[repr(C, packed(1))]pub struct ShopGoodInfo {
pub id: u32,
pub name: PaddedString<MAX_NAME_LENGTH>,
pub stock: u32,
pub max_stock: u32,
pub cooldown: f32,
pub cooldown_remaining: f32,
}Expand description
State for a single item offered for sale at a shop.
Fields§
§id: u32Game-internal item ID.
name: PaddedString<MAX_NAME_LENGTH>Display name.
stock: u32Amount of item in stock.
max_stock: u32Maximum units that can be stocked.
cooldown: f32Restock cooldown, in seconds.
cooldown_remaining: f32Time remaining before the next restock, in seconds.
Auto Trait Implementations§
impl Freeze for ShopGoodInfo
impl RefUnwindSafe for ShopGoodInfo
impl Send for ShopGoodInfo
impl Sync for ShopGoodInfo
impl Unpin for ShopGoodInfo
impl UnsafeUnpin for ShopGoodInfo
impl UnwindSafe for ShopGoodInfo
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