pub struct Config {
pub switches: BTreeMap<u32, String>,
pub variables: BTreeMap<u32, String>,
pub common_events: BTreeMap<u32, String>,
pub actors: BTreeMap<u32, String>,
pub skills: BTreeMap<u32, String>,
pub items: BTreeMap<u32, String>,
pub states: BTreeMap<u32, String>,
pub troops: BTreeMap<u32, String>,
pub armors: BTreeMap<u32, String>,
pub classes: BTreeMap<u32, String>,
}
Expand description
Config
Fields§
§switches: BTreeMap<u32, String>
Switches
variables: BTreeMap<u32, String>
Variables
common_events: BTreeMap<u32, String>
Common Events
actors: BTreeMap<u32, String>
Actors
skills: BTreeMap<u32, String>
Skills
items: BTreeMap<u32, String>
Items
states: BTreeMap<u32, String>
States
troops: BTreeMap<u32, String>
Troops
armors: BTreeMap<u32, String>
Armors
classes: BTreeMap<u32, String>
Classes
Implementations§
Source§impl Config
impl Config
Sourcepub fn get_switch_name(&self, id: u32) -> String
pub fn get_switch_name(&self, id: u32) -> String
Get a switch name
Sourcepub fn get_variable_name(&self, id: u32) -> String
pub fn get_variable_name(&self, id: u32) -> String
Get a variable name
Sourcepub fn get_common_event_name(&self, id: u32) -> String
pub fn get_common_event_name(&self, id: u32) -> String
Get a common event name
Sourcepub fn get_actor_name(&self, id: u32) -> String
pub fn get_actor_name(&self, id: u32) -> String
Get an actor name
Sourcepub fn get_skill_name(&self, id: u32) -> String
pub fn get_skill_name(&self, id: u32) -> String
Get a skill name
Sourcepub fn get_item_name(&self, id: u32) -> String
pub fn get_item_name(&self, id: u32) -> String
Get an item name
Sourcepub fn get_state_name(&self, id: u32) -> String
pub fn get_state_name(&self, id: u32) -> String
Get a state name
Sourcepub fn get_troop_name(&self, id: u32) -> String
pub fn get_troop_name(&self, id: u32) -> String
Get a troop name
Sourcepub fn get_armor_name(&self, id: u32) -> String
pub fn get_armor_name(&self, id: u32) -> String
Get an armor name
Sourcepub fn get_class_name(&self, id: u32) -> String
pub fn get_class_name(&self, id: u32) -> String
Get a class name
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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