pub enum SellMenuState {
SelectItem {
cursor: usize,
},
Quantity {
item_index: usize,
quantity: u8,
max_quantity: u8,
},
Confirm {
item_index: usize,
quantity: u8,
max_quantity: u8,
selected: ConfirmChoice,
},
Result {
dialogue: SellResult,
return_to_list: bool,
},
}Expand description
Phases inside the Sell flow.
Variants§
SelectItem
Cursor over the player’s bag (saleable items).
Quantity
Choosing quantity (1‥max_quantity).
Confirm
Yes/No confirmation before committing.
Result
Result of the sell attempt.
Fields
§
dialogue: SellResultTrait Implementations§
Source§impl Clone for SellMenuState
impl Clone for SellMenuState
Source§fn clone(&self) -> SellMenuState
fn clone(&self) -> SellMenuState
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 SellMenuState
impl Debug for SellMenuState
impl Eq for SellMenuState
Source§impl PartialEq for SellMenuState
impl PartialEq for SellMenuState
impl StructuralPartialEq for SellMenuState
Auto Trait Implementations§
impl Freeze for SellMenuState
impl RefUnwindSafe for SellMenuState
impl Send for SellMenuState
impl Sync for SellMenuState
impl Unpin for SellMenuState
impl UnsafeUnpin for SellMenuState
impl UnwindSafe for SellMenuState
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