pub struct LootTablesFile {
pub tables: Vec<LootTable>,
pub loot_tables: HashMap<String, LootTableInline>,
}Expand description
Loot tables file (content/loot_tables.json).
Supports two formats:
- Array format:
{ "tables": [ { "id": "...", "entries": [...] } ] } - Object format:
{ "loot_tables": { "table_id": { "entries": [...] } } }
Fields§
§tables: Vec<LootTable>§loot_tables: HashMap<String, LootTableInline>Trait Implementations§
Source§impl Clone for LootTablesFile
impl Clone for LootTablesFile
Source§fn clone(&self) -> LootTablesFile
fn clone(&self) -> LootTablesFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LootTablesFile
impl Debug for LootTablesFile
Source§impl Default for LootTablesFile
impl Default for LootTablesFile
Source§fn default() -> LootTablesFile
fn default() -> LootTablesFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LootTablesFile
impl<'de> Deserialize<'de> for LootTablesFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LootTablesFile
impl RefUnwindSafe for LootTablesFile
impl Send for LootTablesFile
impl Sync for LootTablesFile
impl Unpin for LootTablesFile
impl UnsafeUnpin for LootTablesFile
impl UnwindSafe for LootTablesFile
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