pub struct RandPropPointsFlat {Show 35 fields
pub id: i32,
pub damage_replace_stat_f: f64,
pub damage_secondary_f: f64,
pub damage_replace_stat: i32,
pub damage_secondary: i32,
pub epic_f_0: f64,
pub epic_f_1: f64,
pub epic_f_2: f64,
pub epic_f_3: f64,
pub epic_f_4: f64,
pub superior_f_0: f64,
pub superior_f_1: f64,
pub superior_f_2: f64,
pub superior_f_3: f64,
pub superior_f_4: f64,
pub good_f_0: f64,
pub good_f_1: f64,
pub good_f_2: f64,
pub good_f_3: f64,
pub good_f_4: f64,
pub epic_0: i32,
pub epic_1: i32,
pub epic_2: i32,
pub epic_3: i32,
pub epic_4: i32,
pub superior_0: i32,
pub superior_1: i32,
pub superior_2: i32,
pub superior_3: i32,
pub superior_4: i32,
pub good_0: i32,
pub good_1: i32,
pub good_2: i32,
pub good_3: i32,
pub good_4: i32,
}Expand description
Flat stat budgets per item level and quality from WoW’s RandPropPoints DBC table.
Fields§
§id: i32§damage_replace_stat_f: f64§damage_secondary_f: f64§damage_replace_stat: i32§damage_secondary: i32§epic_f_0: f64§epic_f_1: f64§epic_f_2: f64§epic_f_3: f64§epic_f_4: f64§superior_f_0: f64§superior_f_1: f64§superior_f_2: f64§superior_f_3: f64§superior_f_4: f64§good_f_0: f64§good_f_1: f64§good_f_2: f64§good_f_3: f64§good_f_4: f64§epic_0: i32§epic_1: i32§epic_2: i32§epic_3: i32§epic_4: i32§superior_0: i32§superior_1: i32§superior_2: i32§superior_3: i32§superior_4: i32§good_0: i32§good_1: i32§good_2: i32§good_3: i32§good_4: i32Implementations§
Source§impl RandPropPointsFlat
impl RandPropPointsFlat
Sourcepub const fn budget(
&self,
bucket: RandPropPointsBucket,
slot_index: usize,
) -> f64
pub const fn budget( &self, bucket: RandPropPointsBucket, slot_index: usize, ) -> f64
Read a floating-point stat budget from a quality bucket and slot group.
Trait Implementations§
Source§impl Clone for RandPropPointsFlat
impl Clone for RandPropPointsFlat
Source§fn clone(&self) -> RandPropPointsFlat
fn clone(&self) -> RandPropPointsFlat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CopyInsert for RandPropPointsFlat
impl CopyInsert for RandPropPointsFlat
Source§impl Debug for RandPropPointsFlat
impl Debug for RandPropPointsFlat
Source§impl Default for RandPropPointsFlat
impl Default for RandPropPointsFlat
Source§fn default() -> RandPropPointsFlat
fn default() -> RandPropPointsFlat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RandPropPointsFlat
impl<'de> Deserialize<'de> for RandPropPointsFlat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<RandPropPointsFlat> for JsValuewhere
RandPropPointsFlat: Serialize,
impl From<RandPropPointsFlat> for JsValuewhere
RandPropPointsFlat: Serialize,
Source§fn from(value: RandPropPointsFlat) -> Self
fn from(value: RandPropPointsFlat) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for RandPropPointsFlatwhere
Self: DeserializeOwned,
impl FromWasmAbi for RandPropPointsFlatwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &RandPropPointsFlatwhere
RandPropPointsFlat: Serialize,
impl IntoWasmAbi for &RandPropPointsFlatwhere
RandPropPointsFlat: Serialize,
Source§impl IntoWasmAbi for RandPropPointsFlatwhere
RandPropPointsFlat: Serialize,
impl IntoWasmAbi for RandPropPointsFlatwhere
RandPropPointsFlat: Serialize,
Source§impl JsonSchema for RandPropPointsFlat
impl JsonSchema for RandPropPointsFlat
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl OptionFromWasmAbi for RandPropPointsFlatwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for RandPropPointsFlatwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for RandPropPointsFlatwhere
RandPropPointsFlat: Serialize,
impl OptionIntoWasmAbi for RandPropPointsFlatwhere
RandPropPointsFlat: Serialize,
Source§impl RefFromWasmAbi for RandPropPointsFlatwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for RandPropPointsFlatwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<RandPropPointsFlat>
type Anchor = SelfOwner<RandPropPointsFlat>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for RandPropPointsFlat
impl Serialize for RandPropPointsFlat
Source§impl Tsify for RandPropPointsFlat
impl Tsify for RandPropPointsFlat
const DECL: &'static str = "/**\n * Flat stat budgets per item level and quality from `WoW`\\\'s `RandPropPoints` DBC table.\n */\nexport interface RandPropPointsFlat {\n id: number;\n damage_replace_stat_f: number;\n damage_secondary_f: number;\n damage_replace_stat: number;\n damage_secondary: number;\n epic_f_0: number;\n epic_f_1: number;\n epic_f_2: number;\n epic_f_3: number;\n epic_f_4: number;\n superior_f_0: number;\n superior_f_1: number;\n superior_f_2: number;\n superior_f_3: number;\n superior_f_4: number;\n good_f_0: number;\n good_f_1: number;\n good_f_2: number;\n good_f_3: number;\n good_f_4: number;\n epic_0: number;\n epic_1: number;\n epic_2: number;\n epic_3: number;\n epic_4: number;\n superior_0: number;\n superior_1: number;\n superior_2: number;\n superior_3: number;\n superior_4: number;\n good_0: number;\n good_1: number;\n good_2: number;\n good_3: number;\n good_4: number;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for RandPropPointsFlatwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for RandPropPointsFlatwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for RandPropPointsFlatwhere
RandPropPointsFlat: Serialize,
impl VectorIntoWasmAbi for RandPropPointsFlatwhere
RandPropPointsFlat: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for RandPropPointsFlat
impl WasmDescribe for RandPropPointsFlat
Auto Trait Implementations§
impl Freeze for RandPropPointsFlat
impl RefUnwindSafe for RandPropPointsFlat
impl Send for RandPropPointsFlat
impl Sync for RandPropPointsFlat
impl Unpin for RandPropPointsFlat
impl UnsafeUnpin for RandPropPointsFlat
impl UnwindSafe for RandPropPointsFlat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.