pub struct ItemScalingData {
pub bonuses: IntMap<i32, Vec<ItemBonusFlat>>,
pub curves: IntMap<i32, CurveFlat>,
pub curve_points: IntMap<i32, Vec<CurvePointFlat>>,
pub rand_prop_points: IntMap<i32, RandPropPointsFlat>,
pub item_scaling_configs: IntMap<i32, ItemScalingConfigFlat>,
pub item_offset_curves: IntMap<i32, ItemOffsetCurveFlat>,
pub item_squish_eras: IntMap<i32, ItemSquishEraFlat>,
pub combat_ratings: IntMap<i32, CombatRatingsFlat>,
pub hp_per_sta: IntMap<i32, HpPerStaFlat>,
pub spell_scaling: IntMap<i32, SpellScalingFlat>,
pub combat_ratings_mult_by_ilvl: IntMap<i32, CombatRatingsMultByIlvlFlat>,
pub gem_properties: IntMap<i32, GemPropertiesFlat>,
}Fields§
§bonuses: IntMap<i32, Vec<ItemBonusFlat>>Grouped by parent_item_bonus_list_id.
curves: IntMap<i32, CurveFlat>§curve_points: IntMap<i32, Vec<CurvePointFlat>>Grouped by curve_id, sorted by order_index.
rand_prop_points: IntMap<i32, RandPropPointsFlat>Keyed by item level.
item_scaling_configs: IntMap<i32, ItemScalingConfigFlat>§item_offset_curves: IntMap<i32, ItemOffsetCurveFlat>§item_squish_eras: IntMap<i32, ItemSquishEraFlat>§combat_ratings: IntMap<i32, CombatRatingsFlat>GameTable rows keyed by character level.
hp_per_sta: IntMap<i32, HpPerStaFlat>GameTable rows keyed by character level.
spell_scaling: IntMap<i32, SpellScalingFlat>GameTable rows keyed by character level.
combat_ratings_mult_by_ilvl: IntMap<i32, CombatRatingsMultByIlvlFlat>GameTable rows keyed by item level.
gem_properties: IntMap<i32, GemPropertiesFlat>Keyed by GemProperties.ID (referenced from ItemDataFlat::gem_properties).
Implementations§
Source§impl ItemScalingData
impl ItemScalingData
pub fn from_flat( item_bonuses: Vec<ItemBonusFlat>, curves: Vec<CurveFlat>, curve_points: Vec<CurvePointFlat>, rand_prop_points: Vec<RandPropPointsFlat>, item_scaling_configs: Vec<ItemScalingConfigFlat>, item_offset_curves: Vec<ItemOffsetCurveFlat>, item_squish_eras: Vec<ItemSquishEraFlat>, combat_ratings: Vec<CombatRatingsFlat>, hp_per_sta: Vec<HpPerStaFlat>, spell_scaling: Vec<SpellScalingFlat>, combat_ratings_mult_by_ilvl: Vec<CombatRatingsMultByIlvlFlat>, gem_properties: Vec<GemPropertiesFlat>, ) -> Self
Trait Implementations§
Source§impl Clone for ItemScalingData
impl Clone for ItemScalingData
Source§fn clone(&self) -> ItemScalingData
fn clone(&self) -> ItemScalingData
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 Debug for ItemScalingData
impl Debug for ItemScalingData
Source§impl Default for ItemScalingData
impl Default for ItemScalingData
Source§fn default() -> ItemScalingData
fn default() -> ItemScalingData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ItemScalingData
impl<'de> Deserialize<'de> for ItemScalingData
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<ItemScalingData> for JsValuewhere
ItemScalingData: Serialize,
impl From<ItemScalingData> for JsValuewhere
ItemScalingData: Serialize,
Source§fn from(value: ItemScalingData) -> Self
fn from(value: ItemScalingData) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ItemScalingDatawhere
Self: DeserializeOwned,
impl FromWasmAbi for ItemScalingDatawhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &ItemScalingDatawhere
ItemScalingData: Serialize,
impl IntoWasmAbi for &ItemScalingDatawhere
ItemScalingData: Serialize,
Source§impl IntoWasmAbi for ItemScalingDatawhere
ItemScalingData: Serialize,
impl IntoWasmAbi for ItemScalingDatawhere
ItemScalingData: Serialize,
Source§impl JsonSchema for ItemScalingData
impl JsonSchema for ItemScalingData
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 ItemScalingDatawhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for ItemScalingDatawhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for ItemScalingDatawhere
ItemScalingData: Serialize,
impl OptionIntoWasmAbi for ItemScalingDatawhere
ItemScalingData: Serialize,
Source§impl RefFromWasmAbi for ItemScalingDatawhere
Self: DeserializeOwned,
impl RefFromWasmAbi for ItemScalingDatawhere
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<ItemScalingData>
type Anchor = SelfOwner<ItemScalingData>
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 ItemScalingData
impl Serialize for ItemScalingData
Source§impl Tsify for ItemScalingData
impl Tsify for ItemScalingData
const DECL: &'static str = "export interface ItemScalingData {\n /**\n * Grouped by `parent_item_bonus_list_id`.\n */\n bonuses: IntMap<number, ItemBonusFlat[]>;\n curves: IntMap<number, CurveFlat>;\n /**\n * Grouped by `curve_id`, sorted by `order_index`.\n */\n curve_points: IntMap<number, CurvePointFlat[]>;\n /**\n * Keyed by item level.\n */\n rand_prop_points: IntMap<number, RandPropPointsFlat>;\n item_scaling_configs: IntMap<number, ItemScalingConfigFlat>;\n item_offset_curves: IntMap<number, ItemOffsetCurveFlat>;\n item_squish_eras: IntMap<number, ItemSquishEraFlat>;\n /**\n * `GameTable` rows keyed by character level.\n */\n combat_ratings?: IntMap<number, CombatRatingsFlat>;\n /**\n * `GameTable` rows keyed by character level.\n */\n hp_per_sta?: IntMap<number, HpPerStaFlat>;\n /**\n * `GameTable` rows keyed by character level.\n */\n spell_scaling?: IntMap<number, SpellScalingFlat>;\n /**\n * `GameTable` rows keyed by item level.\n */\n combat_ratings_mult_by_ilvl?: IntMap<number, CombatRatingsMultByIlvlFlat>;\n /**\n * Keyed by `GemProperties.ID` (referenced from `ItemDataFlat::gem_properties`).\n */\n gem_properties?: IntMap<number, GemPropertiesFlat>;\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 ItemScalingDatawhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for ItemScalingDatawhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for ItemScalingDatawhere
ItemScalingData: Serialize,
impl VectorIntoWasmAbi for ItemScalingDatawhere
ItemScalingData: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for ItemScalingData
impl WasmDescribe for ItemScalingData
Auto Trait Implementations§
impl Freeze for ItemScalingData
impl RefUnwindSafe for ItemScalingData
impl Send for ItemScalingData
impl Sync for ItemScalingData
impl Unpin for ItemScalingData
impl UnsafeUnpin for ItemScalingData
impl UnwindSafe for ItemScalingData
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.