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§
Sourcefn copy_from(self, from: impl Into<UnitItemList>)
fn copy_from(self, from: impl Into<UnitItemList>)
CopyFrom(crate::app::unititemlist::UnitItemList) overload
Sourcefn get_empty_index(self) -> i32
fn get_empty_index(self) -> i32
GetEmptyIndex() overload
Sourcefn add_2(self, unit_item: impl Into<UnitItem>) -> i32
fn add_2(self, unit_item: impl Into<UnitItem>) -> i32
Add(crate::app::unititem::UnitItem) overload
Sourcefn put_off(self, index: impl Into<i32>, closeup: impl Into<bool>) -> bool
fn put_off(self, index: impl Into<i32>, closeup: impl Into<bool>) -> bool
PutOff(i32, bool) overload
Sourcefn put_off_all(self)
fn put_off_all(self)
PutOffAll() overload
Sourcefn is_equipped(self) -> bool
fn is_equipped(self) -> bool
IsEquipped() overload
Sourcefn get_equipped(self) -> UnitItem
fn get_equipped(self) -> UnitItem
GetEquipped() overload
Sourcefn get_equipped_2(self, index: impl Into<i32>) -> UnitItem
fn get_equipped_2(self, index: impl Into<i32>) -> UnitItem
GetEquipped(i32) overload
Sourcefn get_index_equipped(self) -> i32
fn get_index_equipped(self) -> i32
GetIndexEquipped() overload
Sourcefn get_index_enchantable(self, item: impl Into<ItemData>) -> i32
fn get_index_enchantable(self, item: impl Into<ItemData>) -> i32
GetIndexEnchantable(crate::app::itemdata::ItemData) overload
Sourcefn has_enchanted(self) -> bool
fn has_enchanted(self) -> bool
HasEnchanted() overload
Sourcefn get_index_hold(self, unit: impl Into<Unit>) -> i32
fn get_index_hold(self, unit: impl Into<Unit>) -> i32
GetIndexHold(crate::app::unit::Unit) overload
Sourcefn has_rod(self, unit: impl Into<Unit>, can_use_check: impl Into<bool>) -> bool
fn has_rod(self, unit: impl Into<Unit>, can_use_check: impl Into<bool>) -> bool
HasRod(crate::app::unit::Unit, bool) overload
Sourcefn has_heal_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
HasHealRod(crate::app::unit::Unit, bool) overload
Sourcefn has_heal_rod_for_oneself(
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
HasHealRodForOneself(crate::app::unit::Unit, bool) overload
Sourcefn has_support_rod(
self,
unit: impl Into<Unit>,
can_use_check: impl Into<bool>,
is_oneself: 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
HasSupportRod(crate::app::unit::Unit, bool, bool) overload
Sourcefn has_interference_rod(
self,
unit: impl Into<Unit>,
can_us_check: impl Into<bool>,
) -> bool
fn has_interference_rod( self, unit: impl Into<Unit>, can_us_check: impl Into<bool>, ) -> bool
HasInterferenceRod(crate::app::unit::Unit, bool) overload
Sourcefn has_critical_weapon(
self,
unit: impl Into<Unit>,
can_use_check: impl Into<bool>,
) -> bool
fn has_critical_weapon( self, unit: impl Into<Unit>, can_use_check: impl Into<bool>, ) -> bool
HasCriticalWeapon(crate::app::unit::Unit, bool) overload
Sourcefn has_efficacy_weapon(
self,
unit: impl Into<Unit>,
target: 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
HasEfficacyWeapon(crate::app::unit::Unit, crate::app::unit::Unit, bool) overload
Sourcefn has_drop_item(self) -> bool
fn has_drop_item(self) -> bool
HasDropItem() overload
Sourcefn has_item(self, item: impl Into<ItemData>) -> bool
fn has_item(self, item: impl Into<ItemData>) -> bool
HasItem(crate::app::itemdata::ItemData) overload
Sourcefn find_item(self, item: impl Into<ItemData>) -> i32
fn find_item(self, item: impl Into<ItemData>) -> i32
FindItem(crate::app::itemdata::ItemData) overload
Sourcefn put_engage_item(self, god_unit: impl Into<GodUnit>, engaged: impl Into<bool>)
fn put_engage_item(self, god_unit: impl Into<GodUnit>, engaged: impl Into<bool>)
PutEngageItem(crate::app::godunit::GodUnit, bool) overload
Sourcefn get_item_count(self, item: impl Into<ItemData>) -> i32
fn get_item_count(self, item: impl Into<ItemData>) -> i32
GetItemCount(crate::app::itemdata::ItemData) overload
Sourcefn serialize(self, stream: impl Into<Stream_2>)
fn serialize(self, stream: impl Into<Stream_2>)
Serialize(crate::app::stream_2::Stream_2) overload
Sourcefn deserialize(self, stream: impl Into<Stream_2>)
fn deserialize(self, stream: impl Into<Stream_2>)
Deserialize(crate::app::stream_2::Stream_2) 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: IUnitItemList> IUnitItemListMethods for __T
app-unititemlist only.