pub struct TradeDescription {
pub boat: Option<String>,
pub merchants: Vec<Merchant>,
pub rows: Vec<TradeRow>,
pub sprites: Option<String>,
pub strings: Option<String>,
pub categories: Vec<(u32, String, String)>,
pub value_68: f32,
pub value_6c: i32,
}Expand description
A TradeDescription: the trading post’s boat, merchants and trade window.
Original: FUN_14005d150, FUN_14005d400.
Fields§
§boat: Option<String>The trader boat template.
merchants: Vec<Merchant>The merchants that can come.
rows: Vec<TradeRow>The rows of the trade table, by population.
sprites: Option<String>The trade window’s sprite sheet.
strings: Option<String>The trade window’s string table.
categories: Vec<(u32, String, String)>The trade window’s categories: flags and two string keys each.
value_68: f32Not identified yet (0.33 in the game data).
value_6c: i32Not identified yet (3 in the game data).
Trait Implementations§
Source§impl Clone for TradeDescription
impl Clone for TradeDescription
Source§fn clone(&self) -> TradeDescription
fn clone(&self) -> TradeDescription
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 TradeDescription
impl Debug for TradeDescription
Source§impl Default for TradeDescription
impl Default for TradeDescription
Source§fn default() -> TradeDescription
fn default() -> TradeDescription
Returns the “default value” for a type. Read more
Source§impl PartialEq for TradeDescription
impl PartialEq for TradeDescription
impl StructuralPartialEq for TradeDescription
Auto Trait Implementations§
impl Freeze for TradeDescription
impl RefUnwindSafe for TradeDescription
impl Send for TradeDescription
impl Sync for TradeDescription
impl Unpin for TradeDescription
impl UnsafeUnpin for TradeDescription
impl UnwindSafe for TradeDescription
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