essences/
character_settings.rs

1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3use tsify_next::Tsify;
4
5use crate::items::ItemType;
6
7#[derive(PartialEq, Eq, Serialize, Deserialize, Debug, Clone, JsonSchema, Tsify)]
8pub struct CharacterSettings {
9    pub auto_sell_enabled: bool,
10    pub dont_show_case_upgrade_popup_today: bool,
11    pub gear_override_enabled_item_types: Vec<ItemType>,
12}
13
14impl Default for CharacterSettings {
15    fn default() -> Self {
16        Self {
17            auto_sell_enabled: true,
18            dont_show_case_upgrade_popup_today: false,
19            gear_override_enabled_item_types: Vec::new(),
20        }
21    }
22}