pub struct AbilityEditor {Show 17 fields
pub database: AbilityDatabase,
pub active_tab: AbilityEditorTab,
pub ability_editor: AbilityEditorState,
pub status_editor: StatusEffectEditorState,
pub talent_tree_editor: TalentTreeEditorState,
pub formula_tester: FormulaTesterState,
pub browser: AbilityBrowserState,
pub window_size: Vec2,
pub panel_split: f32,
pub status_message: String,
pub status_timer: f32,
pub clipboard_ability: Option<AbilityDefinition>,
pub search_history: VecDeque<String>,
pub cooldown_manager: CooldownManager,
pub resource_states: HashMap<ResourceType, ResourceState>,
pub recently_viewed: VecDeque<u64>,
pub timeline_target_effects: Vec<u64>,
}Fields§
§database: AbilityDatabase§active_tab: AbilityEditorTab§ability_editor: AbilityEditorState§status_editor: StatusEffectEditorState§talent_tree_editor: TalentTreeEditorState§formula_tester: FormulaTesterState§browser: AbilityBrowserState§window_size: Vec2§panel_split: f32§status_message: String§status_timer: f32§clipboard_ability: Option<AbilityDefinition>§search_history: VecDeque<String>§cooldown_manager: CooldownManager§resource_states: HashMap<ResourceType, ResourceState>§recently_viewed: VecDeque<u64>§timeline_target_effects: Vec<u64>Implementations§
Source§impl AbilityEditor
impl AbilityEditor
pub fn new() -> Self
pub fn set_status(&mut self, msg: impl Into<String>)
pub fn tick(&mut self, dt: f32)
pub fn create_new_ability(&mut self, ability_type: AbilityType)
pub fn open_ability_by_id(&mut self, id: u64)
pub fn save_current_ability(&mut self) -> bool
pub fn delete_selected_abilities(&mut self)
pub fn duplicate_ability(&mut self, id: u64)
pub fn copy_ability(&mut self)
pub fn paste_ability(&mut self)
pub fn apply_modifier_to_current(&mut self, modifier_id: u64)
pub fn run_formula_test_now(&mut self)
pub fn update_status_timeline(&mut self)
pub fn layout(&self) -> AbilityEditorLayout
pub fn get_ability_tooltip(&self, id: u64) -> Option<AbilityTooltip>
pub fn search_with_history(&mut self, query: String)
pub fn export_abilities_json(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AbilityEditor
impl RefUnwindSafe for AbilityEditor
impl Send for AbilityEditor
impl Sync for AbilityEditor
impl Unpin for AbilityEditor
impl UnsafeUnpin for AbilityEditor
impl UnwindSafe for AbilityEditor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.