pub struct WorldDropSchedule {
pub zone_id: u64,
pub zone_name: String,
pub loot_table_id: u64,
pub boss_loot_table_id: Option<u64>,
pub respawn_time_minutes: f32,
pub is_boss_zone: bool,
pub min_player_level: u32,
pub max_player_level: u32,
pub guaranteed_drops: Vec<(u64, f32)>,
}Fields§
§zone_id: u64§zone_name: String§loot_table_id: u64§boss_loot_table_id: Option<u64>§respawn_time_minutes: f32§is_boss_zone: bool§min_player_level: u32§max_player_level: u32§guaranteed_drops: Vec<(u64, f32)>Implementations§
Source§impl WorldDropSchedule
impl WorldDropSchedule
pub fn should_reward(&self, player_level: u32) -> bool
pub fn get_loot_table<'a>( &self, is_boss: bool, loot_tables: &'a HashMap<u64, LootTable>, ) -> Option<&'a LootTable>
pub fn zone_difficulty(&self) -> u32
pub fn is_level_appropriate(&self, level: u32) -> bool
Trait Implementations§
Source§impl Clone for WorldDropSchedule
impl Clone for WorldDropSchedule
Auto Trait Implementations§
impl Freeze for WorldDropSchedule
impl RefUnwindSafe for WorldDropSchedule
impl Send for WorldDropSchedule
impl Sync for WorldDropSchedule
impl Unpin for WorldDropSchedule
impl UnsafeUnpin for WorldDropSchedule
impl UnwindSafe for WorldDropSchedule
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.