Skip to main content

IUnitInfoWeaponModelPoolMethods

Trait IUnitInfoWeaponModelPoolMethods 

Source
pub trait IUnitInfoWeaponModelPoolMethods: IUnitInfoWeaponModelPool {
Show 14 methods // Provided methods fn get_and_load_weapon( self, unit: impl Into<Unit>, equipped: impl Into<UnitItem>, asset_type: impl Into<AssetType>, ) -> CharacterAsset { ... } fn get_and_load_weapon_shop( self, equipped: impl Into<UnitItem>, asset_type: impl Into<AssetType>, ) -> CharacterAsset { ... } fn add_left(self, unit: impl Into<Unit>, equipped: impl Into<UnitItem>) { ... } fn add_right(self, unit: impl Into<Unit>, equipped: impl Into<UnitItem>) { ... } fn try_get_left(self, equipped: impl Into<UnitItem>) -> GameObject { ... } fn try_get_right(self, equipped: impl Into<UnitItem>) -> GameObject { ... } fn try_active_left(self, equipped: impl Into<UnitItem>) { ... } fn try_active_right(self, equipped: impl Into<UnitItem>) { ... } fn set_shop_weapon(self, equipped: impl Into<UnitItem>) { ... } fn load_async(self, callback: impl Into<Action>) { ... } fn wait_loaded(self) -> IEnumerator { ... } fn is_loaded(self) -> bool { ... } fn delete(self) { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn get_and_load_weapon( self, unit: impl Into<Unit>, equipped: impl Into<UnitItem>, asset_type: impl Into<AssetType>, ) -> CharacterAsset

GetAndLoadWeapon(crate::app::unit::Unit, crate::app::unititem::UnitItem, crate::combat::assettype::AssetType) overload

Source

fn get_and_load_weapon_shop( self, equipped: impl Into<UnitItem>, asset_type: impl Into<AssetType>, ) -> CharacterAsset

GetAndLoadWeaponShop(crate::app::unititem::UnitItem, crate::combat::assettype::AssetType) overload

Source

fn add_left(self, unit: impl Into<Unit>, equipped: impl Into<UnitItem>)

AddLeft(crate::app::unit::Unit, crate::app::unititem::UnitItem) overload

Source

fn add_right(self, unit: impl Into<Unit>, equipped: impl Into<UnitItem>)

AddRight(crate::app::unit::Unit, crate::app::unititem::UnitItem) overload

Source

fn try_get_left(self, equipped: impl Into<UnitItem>) -> GameObject

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

Source

fn try_get_right(self, equipped: impl Into<UnitItem>) -> GameObject

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

Source

fn try_active_left(self, equipped: impl Into<UnitItem>)

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

Source

fn try_active_right(self, equipped: impl Into<UnitItem>)

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

Source

fn set_shop_weapon(self, equipped: impl Into<UnitItem>)

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

Source

fn load_async(self, callback: impl Into<Action>)

LoadAsync(crate::system::action::Action) overload

Source

fn wait_loaded(self) -> IEnumerator

WaitLoaded() overload

Source

fn is_loaded(self) -> bool

IsLoaded() overload

Source

fn delete(self)

Delete() 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: IUnitInfoWeaponModelPool> IUnitInfoWeaponModelPoolMethods for __T

Available on crate feature app-unitinfoweaponmodelpool only.