Skip to main content

ITradeRootMethods

Trait ITradeRootMethods 

Source
pub trait ITradeRootMethods: ITradeRoot {
    // Provided methods
    fn set_item_info(self, item: impl Into<UnitItem>) { ... }
    fn setup(self, from_unit: impl Into<Unit>, to_unit: impl Into<Unit>) { ... }
    fn set_select_item(self, item: impl Into<UnitItem>) { ... }
    fn set_select_item_2(self, unit: impl Into<Unit>, item_no: impl Into<i32>) { ... }
    fn get_game_object_left(self) -> GameObject { ... }
    fn get_game_object_right(self) -> GameObject { ... }
    fn get_item_info(self) -> GameObject { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

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

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

Source

fn setup(self, from_unit: impl Into<Unit>, to_unit: impl Into<Unit>)

Setup(crate::app::unit::Unit, crate::app::unit::Unit) overload

Source

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

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

Source

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

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

Source

fn get_game_object_left(self) -> GameObject

GetGameObjectLeft() overload

Source

fn get_game_object_right(self) -> GameObject

GetGameObjectRight() overload

Source

fn get_item_info(self) -> GameObject

GetItemInfo() 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: ITradeRoot> ITradeRootMethods for __T

Available on crate feature app-traderoot only.