pub enum TradeSetting {
Keep {
material: usize,
amount: i32,
},
Swap(usize, usize),
Automatic {
index: usize,
amount: i32,
},
Mode(i32),
OrderState(i32),
Order {
good: usize,
on: bool,
},
Held(bool),
}Expand description
What the trade window changes on the post’s TradeComponent.
Variants§
Keep
Storage tab spinner 2000 + i: what to keep at the post.
Original: FUN_140086f80.
Swap(usize, usize)
Purchase tab up 5000 + i / down 6000 + i: two automatic trades change places.
Original: FUN_1400871d0.
Automatic
Purchase tab spinner 7000 + i: the automatic trade’s amount.
Original: FUN_140087120.
Mode(i32)
comboPurchase (0x4e22): when it trades by itself.
Original: FUN_140087090.
OrderState(i32)
comboOrder (0x4e23): the docked merchant’s order state.
Original: FUN_140087350.
Order
Order tab check 8000 + i: a good ordered from the docked merchant.
Original: FUN_1400872a0.
Held(bool)
The window is open or closed.
Original: FUN_140087f40, FUN_140087ed0.
Trait Implementations§
Source§impl Clone for TradeSetting
impl Clone for TradeSetting
Source§fn clone(&self) -> TradeSetting
fn clone(&self) -> TradeSetting
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 moreimpl Copy for TradeSetting
Source§impl Debug for TradeSetting
impl Debug for TradeSetting
Source§impl<'de> Deserialize<'de> for TradeSetting
impl<'de> Deserialize<'de> for TradeSetting
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
impl Eq for TradeSetting
Source§impl PartialEq for TradeSetting
impl PartialEq for TradeSetting
Source§impl Serialize for TradeSetting
impl Serialize for TradeSetting
impl StructuralPartialEq for TradeSetting
Auto Trait Implementations§
impl Freeze for TradeSetting
impl RefUnwindSafe for TradeSetting
impl Send for TradeSetting
impl Sync for TradeSetting
impl Unpin for TradeSetting
impl UnsafeUnpin for TradeSetting
impl UnwindSafe for TradeSetting
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