pub struct Merchant {
pub name: (Option<String>, String),
pub items: Vec<Option<String>>,
pub values: Vec<i32>,
pub lots: i32,
pub sells: u32,
pub flags: (u32, u32),
}Expand description
A TradeDescription merchant (0x48 bytes): its name (string table, key), the templates it always offers (seeds, livestock), integers the game does not read, its lots before the town’s divisor, the raw-material flags it sells, and more flag masks.
Original: FUN_14005d510.
Fields§
§name: (Option<String>, String)The name: string table and key.
items: Vec<Option<String>>The templates it always offers (seeds, livestock).
values: Vec<i32>Integers the game does not read.
lots: i32Its lots, before the town’s divisor.
sells: u32The raw-material flags it sells.
flags: (u32, u32)More flag masks; not identified yet.
Trait Implementations§
impl Eq for Merchant
impl StructuralPartialEq for Merchant
Auto Trait Implementations§
impl Freeze for Merchant
impl RefUnwindSafe for Merchant
impl Send for Merchant
impl Sync for Merchant
impl Unpin for Merchant
impl UnsafeUnpin for Merchant
impl UnwindSafe for Merchant
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