pub struct InventoryEditor {Show 20 fields
pub database: ItemDatabase,
pub active_tab: EditorTab,
pub item_editor: ItemEditorState,
pub browser: BrowserState,
pub recipe_editor: RecipeEditorState,
pub loot_table_editor: LootTableEditorState,
pub affix_editor: AffixEditorState,
pub generation_params: ItemGenerationParams,
pub last_generated_instance: Option<ItemInstance>,
pub window_size: Vec2,
pub panel_split: f32,
pub status_message: String,
pub status_timer: f32,
pub bulk_edit_field: String,
pub bulk_edit_value: String,
pub preview_item_id: Option<u64>,
pub clipboard_item: Option<ItemDefinition>,
pub search_history: VecDeque<String>,
pub tag_registry: HashMap<String, Vec<u64>>,
pub recently_modified: VecDeque<u64>,
}Fields§
§database: ItemDatabase§active_tab: EditorTab§item_editor: ItemEditorState§browser: BrowserState§recipe_editor: RecipeEditorState§loot_table_editor: LootTableEditorState§affix_editor: AffixEditorState§generation_params: ItemGenerationParams§last_generated_instance: Option<ItemInstance>§window_size: Vec2§panel_split: f32§status_message: String§status_timer: f32§bulk_edit_field: String§bulk_edit_value: String§preview_item_id: Option<u64>§clipboard_item: Option<ItemDefinition>§search_history: VecDeque<String>§tag_registry: HashMap<String, Vec<u64>>§recently_modified: VecDeque<u64>Implementations§
Source§impl InventoryEditor
impl InventoryEditor
pub fn new() -> Self
pub fn set_status(&mut self, msg: impl Into<String>)
pub fn tick(&mut self, dt: f32)
pub fn open_item_by_id(&mut self, id: u64)
pub fn save_current_item(&mut self) -> bool
pub fn create_new_item(&mut self, category: ItemCategory)
pub fn delete_selected_items(&mut self)
pub fn duplicate_item(&mut self, id: u64)
pub fn generate_random_item(&mut self)
pub fn copy_item(&mut self)
pub fn paste_item(&mut self)
pub fn bulk_update_selected(&mut self, field: &str, value_str: &str) -> usize
pub fn export_to_csv(&self) -> String
pub fn add_tag_to_item(&mut self, item_id: u64, tag: String)
pub fn items_with_tag(&self, tag: &str) -> Vec<u64>
pub fn search_with_history(&mut self, query: String)
pub fn get_item_tooltip(&self, id: u64) -> Option<ItemTooltip>
pub fn layout(&self) -> EditorLayout
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InventoryEditor
impl RefUnwindSafe for InventoryEditor
impl Send for InventoryEditor
impl Sync for InventoryEditor
impl Unpin for InventoryEditor
impl UnsafeUnpin for InventoryEditor
impl UnwindSafe for InventoryEditor
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.