pub struct LootEditor {Show 13 fields
pub tables: HashMap<u32, LootTable>,
pub catalog: Vec<Item>,
pub selected_table: Option<u32>,
pub next_table_id: u32,
pub rng: LootRng,
pub difficulty_scaler: DifficultyScaler,
pub vendor_pricer: VendorPricer,
pub set_tracker: SetTracker,
pub currencies: Vec<Currency>,
pub pity_systems: HashMap<u32, PitySystem>,
pub last_monte_carlo: Option<MonteCarloResult>,
pub inflation_sim: InflationSimulator,
pub budget_analyzer: LootBudget,
}Fields§
§tables: HashMap<u32, LootTable>§catalog: Vec<Item>§selected_table: Option<u32>§next_table_id: u32§rng: LootRng§difficulty_scaler: DifficultyScaler§vendor_pricer: VendorPricer§set_tracker: SetTracker§currencies: Vec<Currency>§pity_systems: HashMap<u32, PitySystem>§last_monte_carlo: Option<MonteCarloResult>§inflation_sim: InflationSimulator§budget_analyzer: LootBudgetImplementations§
Source§impl LootEditor
impl LootEditor
pub fn new() -> Self
pub fn add_table(&mut self, table: LootTable)
pub fn roll_table(&mut self, table_id: u32) -> Vec<DropResult>
Auto Trait Implementations§
impl Freeze for LootEditor
impl RefUnwindSafe for LootEditor
impl Send for LootEditor
impl Sync for LootEditor
impl Unpin for LootEditor
impl UnsafeUnpin for LootEditor
impl UnwindSafe for LootEditor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.