pub trait IInventoryRootMethods: IInventoryRoot {
// Provided methods
fn set_item_info(self, item: impl Into<UnitItem>) { ... }
fn set_select_item(self, unit: impl Into<Unit>, item_no: impl Into<i32>) { ... }
fn get_game_object_unit(self) -> GameObject { ... }
fn get_game_object_pool(self) -> GameObject { ... }
fn get_item_info(self) -> GameObject { ... }
fn menu_open(self) { ... }
fn menu_close(self) { ... }
fn is_menu_close(self) -> bool { ... }
fn ctor(self) { ... }
}Provided Methods§
Sourcefn set_item_info(self, item: impl Into<UnitItem>)
fn set_item_info(self, item: impl Into<UnitItem>)
SetItemInfo(crate::app::unititem::UnitItem) overload
Sourcefn set_select_item(self, unit: impl Into<Unit>, item_no: impl Into<i32>)
fn set_select_item(self, unit: impl Into<Unit>, item_no: impl Into<i32>)
SetSelectItem(crate::app::unit::Unit, i32) overload
Sourcefn get_game_object_unit(self) -> GameObject
fn get_game_object_unit(self) -> GameObject
GetGameObjectUnit() overload
Sourcefn get_game_object_pool(self) -> GameObject
fn get_game_object_pool(self) -> GameObject
GetGameObjectPool() overload
Sourcefn get_item_info(self) -> GameObject
fn get_item_info(self) -> GameObject
GetItemInfo() overload
MenuOpen() overload
MenuClose() overload
IsMenuClose() overload
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<__T: IInventoryRoot> IInventoryRootMethods for __T
Available on crate feature
app-inventoryroot only.