pub struct GameSettings {Show 35 fields
pub character_power_calculate_script: String,
pub item_power_calculate_script: String,
pub loyalty_decrease_script: String,
pub item_price_calculation_expression: String,
pub item_experience_calculation_expression: String,
pub required_attributes: Vec<AttributeId>,
pub resist_task_id: Uuid,
pub hp_attribute_id: Uuid,
pub time_skip_ticket_currency_id: CurrencyId,
pub chest_upgrade_skip_ticket_skips_sec: u64,
pub chest_upgrade_skip_currency_id: CurrencyId,
pub chest_upgrade_skip_currency_skips_sec: u64,
pub get_default_loop_task_id: String,
pub fast_equip_abilities_script: String,
pub fast_equip_pets_script: String,
pub ability_gacha: AbilityGachaSettings,
pub item_case_currency_id: CurrencyId,
pub initial_class_id: Uuid,
pub chat_message_ttl_secs: u64,
pub currency_ids_to_show: Vec<CurrencyId>,
pub pet_gacha: PetGachaSettings,
pub auto_chest_pause_duration_ticks: u64,
pub arena_fight_template_id: FightTemplateId,
pub vassal_fight_id: FightTemplateId,
pub fight_progress_tick: u64,
pub db_power_update_frequency: u64,
pub deleted_user_username: String,
pub diamond_currency_id: CurrencyId,
pub username_change_cooldown_sec: u64,
pub username_min_length: usize,
pub username_max_length: usize,
pub dungeons_keys_reset_amount: i64,
pub daily_currency_resets: Vec<DailyCurrencyReset>,
pub default_shop_tab: ShopTab,
pub chest_item_choose_script: String,
}Fields§
§character_power_calculate_script: String§item_power_calculate_script: String§loyalty_decrease_script: String§item_price_calculation_expression: String§item_experience_calculation_expression: String§required_attributes: Vec<AttributeId>§resist_task_id: Uuid§hp_attribute_id: Uuid§time_skip_ticket_currency_id: CurrencyId§chest_upgrade_skip_ticket_skips_sec: u64§chest_upgrade_skip_currency_id: CurrencyId§chest_upgrade_skip_currency_skips_sec: u64§get_default_loop_task_id: String§fast_equip_abilities_script: String§fast_equip_pets_script: String§ability_gacha: AbilityGachaSettings§item_case_currency_id: CurrencyId§initial_class_id: Uuid§chat_message_ttl_secs: u64§currency_ids_to_show: Vec<CurrencyId>§pet_gacha: PetGachaSettings§auto_chest_pause_duration_ticks: u64§arena_fight_template_id: FightTemplateId§vassal_fight_id: FightTemplateId§fight_progress_tick: u64§db_power_update_frequency: u64§deleted_user_username: String§diamond_currency_id: CurrencyId§username_change_cooldown_sec: u64§username_min_length: usize§username_max_length: usize§dungeons_keys_reset_amount: i64§daily_currency_resets: Vec<DailyCurrencyReset>§default_shop_tab: ShopTab§chest_item_choose_script: StringImplementations§
Source§impl GameSettings
impl GameSettings
pub fn get_daily_currency_reset_amount( &self, currency_id: CurrencyId, ) -> Result<i64>
Trait Implementations§
Source§impl Clone for GameSettings
impl Clone for GameSettings
Source§fn clone(&self) -> GameSettings
fn clone(&self) -> GameSettings
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 GameSettings
impl Debug for GameSettings
Source§impl<'de> Deserialize<'de> for GameSettings
impl<'de> Deserialize<'de> for GameSettings
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 GameSettings
impl JsonSchema for GameSettings
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 GameSettings
impl Serialize for GameSettings
Source§impl Tsify for GameSettings
impl Tsify for GameSettings
const DECL: &'static str = "export interface GameSettings {\n character_power_calculate_script: string;\n item_power_calculate_script: string;\n loyalty_decrease_script: string;\n item_price_calculation_expression: string;\n item_experience_calculation_expression: string;\n required_attributes: AttributeId[];\n resist_task_id: Uuid;\n hp_attribute_id: Uuid;\n time_skip_ticket_currency_id: CurrencyId;\n chest_upgrade_skip_ticket_skips_sec: number;\n chest_upgrade_skip_currency_id: CurrencyId;\n chest_upgrade_skip_currency_skips_sec: number;\n get_default_loop_task_id: string;\n fast_equip_abilities_script: string;\n fast_equip_pets_script: string;\n ability_gacha: AbilityGachaSettings;\n item_case_currency_id: CurrencyId;\n initial_class_id: Uuid;\n chat_message_ttl_secs: number;\n currency_ids_to_show: CurrencyId[];\n pet_gacha: PetGachaSettings;\n auto_chest_pause_duration_ticks: number;\n arena_fight_template_id: FightTemplateId;\n vassal_fight_id: FightTemplateId;\n fight_progress_tick: number;\n db_power_update_frequency: number;\n deleted_user_username: string;\n diamond_currency_id: CurrencyId;\n username_change_cooldown_sec: number;\n username_min_length: number;\n username_max_length: number;\n dungeons_keys_reset_amount: number;\n daily_currency_resets: DailyCurrencyReset[];\n default_shop_tab: ShopTab;\n chest_item_choose_script: string;\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 GameSettings
impl RefUnwindSafe for GameSettings
impl Send for GameSettings
impl Sync for GameSettings
impl Unpin for GameSettings
impl UnwindSafe for GameSettings
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