pub struct PetGachaSettings {
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,
}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 означает, что вишлист-пет выпадает вдвое чаще обычного.
Trait Implementations§
Source§impl Clone for PetGachaSettings
impl Clone for PetGachaSettings
Source§fn clone(&self) -> PetGachaSettings
fn clone(&self) -> PetGachaSettings
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 PetGachaSettings
impl Debug for PetGachaSettings
Source§impl<'de> Deserialize<'de> for PetGachaSettings
impl<'de> Deserialize<'de> for PetGachaSettings
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 PetGachaSettings
impl JsonSchema for PetGachaSettings
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 PetGachaSettings
impl Serialize for PetGachaSettings
Source§impl Tsify for PetGachaSettings
impl Tsify for PetGachaSettings
const DECL: &'static str = "export interface PetGachaSettings {\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{43f}\u{435}\u{442}\u{43e}\u{432} \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{43f}\u{435}\u{442} \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{433}\u{43e}.\n */\n wishlist_weight_multiplier: WeightMultiplier;\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 PetGachaSettings
impl RefUnwindSafe for PetGachaSettings
impl Send for PetGachaSettings
impl Sync for PetGachaSettings
impl Unpin for PetGachaSettings
impl UnwindSafe for PetGachaSettings
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