Struct veloren_common::comp::inventory::trade_pricing::TRADE_PRICING
source · struct TRADE_PRICING {
__private_field: (),
}
Fields§
§__private_field: ()
Methods from Deref<Target = TradePricing>§
const COIN_ITEM: &'static str = "common.items.utility.coins"
const CRAFTING_FACTOR: f32 = 0.949999988f32
const INVEST_FACTOR: f32 = 0.330000013f32
fn price_lookup( &self, requested_name: &ItemDefinitionIdOwned ) -> Option<&MaterialUse>
fn calculate_material_cost(&self, r: &RememberedRecipe) -> Option<MaterialUse>
fn calculate_material_cost_sum(&self, r: &RememberedRecipe) -> Option<f32>
fn sort_by_price(&self, recipes: &mut [RememberedRecipe]) -> bool
fn random_items_impl( &self, stockmap: &mut HashMap<Good, f32>, number: u32, selling: bool, always_coin: bool, limit: u32 ) -> Vec<(ItemDefinitionIdOwned, u32)>
fn get_materials_impl(&self, item: &ItemDefinitionId<'_>) -> Option<MaterialUse>
Trait Implementations§
source§impl Deref for TRADE_PRICING
impl Deref for TRADE_PRICING
§type Target = TradePricing
type Target = TradePricing
The resulting type after dereferencing.
source§fn deref(&self) -> &TradePricing
fn deref(&self) -> &TradePricing
Dereferences the value.
impl LazyStatic for TRADE_PRICING
Auto Trait Implementations§
impl RefUnwindSafe for TRADE_PRICING
impl Send for TRADE_PRICING
impl Sync for TRADE_PRICING
impl Unpin for TRADE_PRICING
impl UnwindSafe for TRADE_PRICING
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