pub struct LootEntry {
pub item_id: u32,
pub max_count: u32,
}Expand description
A single loot-drop entry.
Each entry defines what item can be looted from a unit and the maximum quantity.
§.inf format
loot=item_id,max_countFields§
§item_id: u32Item type ID to drop.
max_count: u32Maximum number of items (at least 1).
Implementations§
Trait Implementations§
impl Copy for LootEntry
Source§impl<'de> Deserialize<'de> for LootEntry
impl<'de> Deserialize<'de> for LootEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LootEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LootEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LootEntry
impl Serialize for LootEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LootEntry
Auto Trait Implementations§
impl Forget for LootEntry
impl Freeze for LootEntry
impl Move for LootEntry
impl RefUnwindSafe for LootEntry
impl Send for LootEntry
impl Sync for LootEntry
impl Unpin for LootEntry
impl UnsafeUnpin for LootEntry
impl UnwindSafe for LootEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more