pub struct AbilityGachaSettings {
pub currency_id: CurrencyId,
pub roll_price_in_diamonds: PositiveI64,
pub small_roll_cost: PositiveI64,
pub big_roll_cost: PositiveI64,
pub big_roll_bonus_drops: u8,
pub wishlist_slots: u8,
pub wishlist_weight_multiplier: WeightMultiplier,
pub slot_upgrade_currency_id: CurrencyId,
pub slot_max_level: PositiveI64,
pub slot_level_costs: Vec<PositiveI64>,
pub slot_level_bonus_levels: Vec<i64>,
}Fields§
§currency_id: CurrencyId§roll_price_in_diamonds: PositiveI64§small_roll_cost: PositiveI64Стоимость маленькой крутки в gacha-билетах. Она же — количество дропов и очки прогресса (тикеты = поинты = дропы).
big_roll_cost: PositiveI64Стоимость большой крутки в gacha-билетах (она же — очки прогресса).
big_roll_bonus_drops: u8Бонусные дропы в большой крутке сверх стоимости. Итого дропов = cost + bonus.
wishlist_slots: u8Максимальное число слотов вишлиста.
wishlist_weight_multiplier: WeightMultiplierМножитель веса для способностей из вишлиста при розыгрыше.
Значение 2.0 означает, что вишлист-абилка выпадает вдвое чаще обычной.
slot_upgrade_currency_id: CurrencyIdВалюта для прокачки уровней слотов способностей (Stardust).
slot_max_level: PositiveI64Максимальный уровень слота способности.
slot_level_costs: Vec<PositiveI64>Стоимость повышения слота до каждого уровня.
Индекс 0 соответствует прокачке на уровень 1.
slot_level_bonus_levels: Vec<i64>Бонус к AbilityLevel по уровню слота.
Индекс = уровень слота, значение = дополнительный уровень способности.
Trait Implementations§
Source§impl Clone for AbilityGachaSettings
impl Clone for AbilityGachaSettings
Source§fn clone(&self) -> AbilityGachaSettings
fn clone(&self) -> AbilityGachaSettings
Returns a copy 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 AbilityGachaSettings
impl Debug for AbilityGachaSettings
Source§impl<'de> Deserialize<'de> for AbilityGachaSettings
impl<'de> Deserialize<'de> for AbilityGachaSettings
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 JsonSchema for AbilityGachaSettings
impl JsonSchema for AbilityGachaSettings
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for AbilityGachaSettings
impl Serialize for AbilityGachaSettings
Source§impl Tsify for AbilityGachaSettings
impl Tsify for AbilityGachaSettings
const DECL: &'static str = "export interface AbilityGachaSettings {\n currency_id: CurrencyId;\n roll_price_in_diamonds: PositiveI64;\n /**\n * \u{421}\u{442}\u{43e}\u{438}\u{43c}\u{43e}\u{441}\u{442}\u{44c} \u{43c}\u{430}\u{43b}\u{435}\u{43d}\u{44c}\u{43a}\u{43e}\u{439} \u{43a}\u{440}\u{443}\u{442}\u{43a}\u{438} \u{432} gacha-\u{431}\u{438}\u{43b}\u{435}\u{442}\u{430}\u{445}.\n * \u{41e}\u{43d}\u{430} \u{436}\u{435} \u{2014} \u{43a}\u{43e}\u{43b}\u{438}\u{447}\u{435}\u{441}\u{442}\u{432}\u{43e} \u{434}\u{440}\u{43e}\u{43f}\u{43e}\u{432} \u{438} \u{43e}\u{447}\u{43a}\u{438} \u{43f}\u{440}\u{43e}\u{433}\u{440}\u{435}\u{441}\u{441}\u{430} (\u{442}\u{438}\u{43a}\u{435}\u{442}\u{44b} = \u{43f}\u{43e}\u{438}\u{43d}\u{442}\u{44b} = \u{434}\u{440}\u{43e}\u{43f}\u{44b}).\n */\n small_roll_cost: PositiveI64;\n /**\n * \u{421}\u{442}\u{43e}\u{438}\u{43c}\u{43e}\u{441}\u{442}\u{44c} \u{431}\u{43e}\u{43b}\u{44c}\u{448}\u{43e}\u{439} \u{43a}\u{440}\u{443}\u{442}\u{43a}\u{438} \u{432} gacha-\u{431}\u{438}\u{43b}\u{435}\u{442}\u{430}\u{445} (\u{43e}\u{43d}\u{430} \u{436}\u{435} \u{2014} \u{43e}\u{447}\u{43a}\u{438} \u{43f}\u{440}\u{43e}\u{433}\u{440}\u{435}\u{441}\u{441}\u{430}).\n */\n big_roll_cost: PositiveI64;\n /**\n * \u{411}\u{43e}\u{43d}\u{443}\u{441}\u{43d}\u{44b}\u{435} \u{434}\u{440}\u{43e}\u{43f}\u{44b} \u{432} \u{431}\u{43e}\u{43b}\u{44c}\u{448}\u{43e}\u{439} \u{43a}\u{440}\u{443}\u{442}\u{43a}\u{435} \u{441}\u{432}\u{435}\u{440}\u{445} \u{441}\u{442}\u{43e}\u{438}\u{43c}\u{43e}\u{441}\u{442}\u{438}. \u{418}\u{442}\u{43e}\u{433}\u{43e} \u{434}\u{440}\u{43e}\u{43f}\u{43e}\u{432} = cost + bonus.\n */\n big_roll_bonus_drops: number;\n /**\n * \u{41c}\u{430}\u{43a}\u{441}\u{438}\u{43c}\u{430}\u{43b}\u{44c}\u{43d}\u{43e}\u{435} \u{447}\u{438}\u{441}\u{43b}\u{43e} \u{441}\u{43b}\u{43e}\u{442}\u{43e}\u{432} \u{432}\u{438}\u{448}\u{43b}\u{438}\u{441}\u{442}\u{430}.\n */\n wishlist_slots: number;\n /**\n * \u{41c}\u{43d}\u{43e}\u{436}\u{438}\u{442}\u{435}\u{43b}\u{44c} \u{432}\u{435}\u{441}\u{430} \u{434}\u{43b}\u{44f} \u{441}\u{43f}\u{43e}\u{441}\u{43e}\u{431}\u{43d}\u{43e}\u{441}\u{442}\u{435}\u{439} \u{438}\u{437} \u{432}\u{438}\u{448}\u{43b}\u{438}\u{441}\u{442}\u{430} \u{43f}\u{440}\u{438} \u{440}\u{43e}\u{437}\u{44b}\u{433}\u{440}\u{44b}\u{448}\u{435}.\n * \u{417}\u{43d}\u{430}\u{447}\u{435}\u{43d}\u{438}\u{435} `2.0` \u{43e}\u{437}\u{43d}\u{430}\u{447}\u{430}\u{435}\u{442}, \u{447}\u{442}\u{43e} \u{432}\u{438}\u{448}\u{43b}\u{438}\u{441}\u{442}-\u{430}\u{431}\u{438}\u{43b}\u{43a}\u{430} \u{432}\u{44b}\u{43f}\u{430}\u{434}\u{430}\u{435}\u{442} \u{432}\u{434}\u{432}\u{43e}\u{435} \u{447}\u{430}\u{449}\u{435} \u{43e}\u{431}\u{44b}\u{447}\u{43d}\u{43e}\u{439}.\n */\n wishlist_weight_multiplier: WeightMultiplier;\n /**\n * \u{412}\u{430}\u{43b}\u{44e}\u{442}\u{430} \u{434}\u{43b}\u{44f} \u{43f}\u{440}\u{43e}\u{43a}\u{430}\u{447}\u{43a}\u{438} \u{443}\u{440}\u{43e}\u{432}\u{43d}\u{435}\u{439} \u{441}\u{43b}\u{43e}\u{442}\u{43e}\u{432} \u{441}\u{43f}\u{43e}\u{441}\u{43e}\u{431}\u{43d}\u{43e}\u{441}\u{442}\u{435}\u{439} (Stardust).\n */\n slot_upgrade_currency_id: CurrencyId;\n /**\n * \u{41c}\u{430}\u{43a}\u{441}\u{438}\u{43c}\u{430}\u{43b}\u{44c}\u{43d}\u{44b}\u{439} \u{443}\u{440}\u{43e}\u{432}\u{435}\u{43d}\u{44c} \u{441}\u{43b}\u{43e}\u{442}\u{430} \u{441}\u{43f}\u{43e}\u{441}\u{43e}\u{431}\u{43d}\u{43e}\u{441}\u{442}\u{438}.\n */\n slot_max_level: PositiveI64;\n /**\n * \u{421}\u{442}\u{43e}\u{438}\u{43c}\u{43e}\u{441}\u{442}\u{44c} \u{43f}\u{43e}\u{432}\u{44b}\u{448}\u{435}\u{43d}\u{438}\u{44f} \u{441}\u{43b}\u{43e}\u{442}\u{430} \u{434}\u{43e} \u{43a}\u{430}\u{436}\u{434}\u{43e}\u{433}\u{43e} \u{443}\u{440}\u{43e}\u{432}\u{43d}\u{44f}.\n * \u{418}\u{43d}\u{434}\u{435}\u{43a}\u{441} `0` \u{441}\u{43e}\u{43e}\u{442}\u{432}\u{435}\u{442}\u{441}\u{442}\u{432}\u{443}\u{435}\u{442} \u{43f}\u{440}\u{43e}\u{43a}\u{430}\u{447}\u{43a}\u{435} \u{43d}\u{430} \u{443}\u{440}\u{43e}\u{432}\u{435}\u{43d}\u{44c} `1`.\n */\n slot_level_costs: PositiveI64[];\n /**\n * \u{411}\u{43e}\u{43d}\u{443}\u{441} \u{43a} `AbilityLevel` \u{43f}\u{43e} \u{443}\u{440}\u{43e}\u{432}\u{43d}\u{44e} \u{441}\u{43b}\u{43e}\u{442}\u{430}.\n * \u{418}\u{43d}\u{434}\u{435}\u{43a}\u{441} = \u{443}\u{440}\u{43e}\u{432}\u{435}\u{43d}\u{44c} \u{441}\u{43b}\u{43e}\u{442}\u{430}, \u{437}\u{43d}\u{430}\u{447}\u{435}\u{43d}\u{438}\u{435} = \u{434}\u{43e}\u{43f}\u{43e}\u{43b}\u{43d}\u{438}\u{442}\u{435}\u{43b}\u{44c}\u{43d}\u{44b}\u{439} \u{443}\u{440}\u{43e}\u{432}\u{435}\u{43d}\u{44c} \u{441}\u{43f}\u{43e}\u{441}\u{43e}\u{431}\u{43d}\u{43e}\u{441}\u{442}\u{438}.\n */\n slot_level_bonus_levels: 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>
Auto Trait Implementations§
impl Freeze for AbilityGachaSettings
impl RefUnwindSafe for AbilityGachaSettings
impl Send for AbilityGachaSettings
impl Sync for AbilityGachaSettings
impl Unpin for AbilityGachaSettings
impl UnwindSafe for AbilityGachaSettings
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