Skip to main content

IInventoryRootMethods

Trait IInventoryRootMethods 

Source
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§

Source

fn set_item_info(self, item: impl Into<UnitItem>)

SetItemInfo(crate::app::unititem::UnitItem) overload

Source

fn set_select_item(self, unit: impl Into<Unit>, item_no: impl Into<i32>)

SetSelectItem(crate::app::unit::Unit, i32) overload

Source

fn get_game_object_unit(self) -> GameObject

GetGameObjectUnit() overload

Source

fn get_game_object_pool(self) -> GameObject

GetGameObjectPool() overload

Source

fn get_item_info(self) -> GameObject

GetItemInfo() overload

Source

fn menu_open(self)

MenuOpen() overload

Source

fn menu_close(self)

MenuClose() overload

Source

fn is_menu_close(self) -> bool

IsMenuClose() overload

Source

fn ctor(self)

.ctor() 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§

Source§

impl<__T: IInventoryRoot> IInventoryRootMethods for __T

Available on crate feature app-inventoryroot only.