Skip to main content

IUnitItemListMethods

Trait IUnitItemListMethods 

Source
pub trait IUnitItemListMethods: IUnitItemList {
Show 36 methods // Provided methods fn ctor(self) { ... } fn clear(self) { ... } fn copy_from(self, from: impl Into<UnitItemList>) { ... } fn get_empty_index(self) -> i32 { ... } fn add(self, item: impl Into<ItemData>) -> i32 { ... } fn add_2(self, unit_item: impl Into<UnitItem>) -> i32 { ... } fn move(self, from: impl Into<i32>, to: impl Into<i32>) { ... } fn close_up(self) { ... } fn equip(self, index: impl Into<i32>) { ... } fn take_off(self, index: impl Into<i32>) -> bool { ... } fn put_off(self, index: impl Into<i32>, closeup: impl Into<bool>) -> bool { ... } fn put_off_all(self) { ... } fn is_equipped(self) -> bool { ... } fn get_equipped(self) -> UnitItem { ... } fn get_equipped_2(self, index: impl Into<i32>) -> UnitItem { ... } fn get_index_equipped(self) -> i32 { ... } fn get_index_enchantable(self, item: impl Into<ItemData>) -> i32 { ... } fn has_enchanted(self) -> bool { ... } fn get_hold(self, unit: impl Into<Unit>) -> UnitItem { ... } fn get_index_hold(self, unit: impl Into<Unit>) -> i32 { ... } fn has_rod( self, unit: impl Into<Unit>, can_use_check: impl Into<bool>, ) -> bool { ... } fn has_heal_rod( self, unit: impl Into<Unit>, can_use_check: impl Into<bool>, ) -> bool { ... } fn has_heal_rod_for_oneself( self, unit: impl Into<Unit>, can_use_check: impl Into<bool>, ) -> bool { ... } fn has_support_rod( self, unit: impl Into<Unit>, can_use_check: impl Into<bool>, is_oneself: impl Into<bool>, ) -> bool { ... } fn has_interference_rod( self, unit: impl Into<Unit>, can_us_check: impl Into<bool>, ) -> bool { ... } fn has_critical_weapon( self, unit: impl Into<Unit>, can_use_check: impl Into<bool>, ) -> bool { ... } fn has_efficacy_weapon( self, unit: impl Into<Unit>, target: impl Into<Unit>, can_use_check: impl Into<bool>, ) -> bool { ... } fn has_drop_item(self) -> bool { ... } fn has_item(self, item: impl Into<ItemData>) -> bool { ... } fn find_item(self, item: impl Into<ItemData>) -> i32 { ... } fn put_engage_item( self, god_unit: impl Into<GodUnit>, engaged: impl Into<bool>, ) { ... } fn get_item_count(self, item: impl Into<ItemData>) -> i32 { ... } fn serialize(self, stream: impl Into<Stream_2>) { ... } fn deserialize(self, stream: impl Into<Stream_2>) { ... } fn get_item(self, index: impl Into<i32>) -> UnitItem { ... } fn get_count(self) -> i32 { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn clear(self)

Clear() overload

Source

fn copy_from(self, from: impl Into<UnitItemList>)

CopyFrom(crate::app::unititemlist::UnitItemList) overload

Source

fn get_empty_index(self) -> i32

GetEmptyIndex() overload

Source

fn add(self, item: impl Into<ItemData>) -> i32

Add(crate::app::itemdata::ItemData) overload

Source

fn add_2(self, unit_item: impl Into<UnitItem>) -> i32

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

Source

fn move(self, from: impl Into<i32>, to: impl Into<i32>)

Move(i32, i32) overload

Source

fn close_up(self)

CloseUp() overload

Source

fn equip(self, index: impl Into<i32>)

Equip(i32) overload

Source

fn take_off(self, index: impl Into<i32>) -> bool

TakeOff(i32) overload

Source

fn put_off(self, index: impl Into<i32>, closeup: impl Into<bool>) -> bool

PutOff(i32, bool) overload

Source

fn put_off_all(self)

PutOffAll() overload

Source

fn is_equipped(self) -> bool

IsEquipped() overload

Source

fn get_equipped(self) -> UnitItem

GetEquipped() overload

Source

fn get_equipped_2(self, index: impl Into<i32>) -> UnitItem

GetEquipped(i32) overload

Source

fn get_index_equipped(self) -> i32

GetIndexEquipped() overload

Source

fn get_index_enchantable(self, item: impl Into<ItemData>) -> i32

GetIndexEnchantable(crate::app::itemdata::ItemData) overload

Source

fn has_enchanted(self) -> bool

HasEnchanted() overload

Source

fn get_hold(self, unit: impl Into<Unit>) -> UnitItem

GetHold(crate::app::unit::Unit) overload

Source

fn get_index_hold(self, unit: impl Into<Unit>) -> i32

GetIndexHold(crate::app::unit::Unit) overload

Source

fn has_rod(self, unit: impl Into<Unit>, can_use_check: impl Into<bool>) -> bool

HasRod(crate::app::unit::Unit, bool) overload

Source

fn has_heal_rod( self, unit: impl Into<Unit>, can_use_check: impl Into<bool>, ) -> bool

HasHealRod(crate::app::unit::Unit, bool) overload

Source

fn has_heal_rod_for_oneself( self, unit: impl Into<Unit>, can_use_check: impl Into<bool>, ) -> bool

HasHealRodForOneself(crate::app::unit::Unit, bool) overload

Source

fn has_support_rod( self, unit: impl Into<Unit>, can_use_check: impl Into<bool>, is_oneself: impl Into<bool>, ) -> bool

HasSupportRod(crate::app::unit::Unit, bool, bool) overload

Source

fn has_interference_rod( self, unit: impl Into<Unit>, can_us_check: impl Into<bool>, ) -> bool

HasInterferenceRod(crate::app::unit::Unit, bool) overload

Source

fn has_critical_weapon( self, unit: impl Into<Unit>, can_use_check: impl Into<bool>, ) -> bool

HasCriticalWeapon(crate::app::unit::Unit, bool) overload

Source

fn has_efficacy_weapon( self, unit: impl Into<Unit>, target: impl Into<Unit>, can_use_check: impl Into<bool>, ) -> bool

HasEfficacyWeapon(crate::app::unit::Unit, crate::app::unit::Unit, bool) overload

Source

fn has_drop_item(self) -> bool

HasDropItem() overload

Source

fn has_item(self, item: impl Into<ItemData>) -> bool

HasItem(crate::app::itemdata::ItemData) overload

Source

fn find_item(self, item: impl Into<ItemData>) -> i32

FindItem(crate::app::itemdata::ItemData) overload

Source

fn put_engage_item(self, god_unit: impl Into<GodUnit>, engaged: impl Into<bool>)

PutEngageItem(crate::app::godunit::GodUnit, bool) overload

Source

fn get_item_count(self, item: impl Into<ItemData>) -> i32

GetItemCount(crate::app::itemdata::ItemData) overload

Source

fn serialize(self, stream: impl Into<Stream_2>)

Serialize(crate::app::stream_2::Stream_2) overload

Source

fn deserialize(self, stream: impl Into<Stream_2>)

Deserialize(crate::app::stream_2::Stream_2) overload

Source

fn get_item(self, index: impl Into<i32>) -> UnitItem

get_Item(i32) overload

Source

fn get_count(self) -> i32

get_Count() 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: IUnitItemList> IUnitItemListMethods for __T

Available on crate feature app-unititemlist only.