1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
use std::collections::{ hash_map, HashMap };

use crate::{ Store, Loader, Cache };

use crate::def::rs3::ItemDefinition;

/// Loads all item definitions from the current cache.
#[derive(Clone, Eq, PartialEq, Debug, Default)]
pub struct ItemLoader {
    itms: HashMap<u32, ItemDefinition>
}

impl_rs3_loader!(ItemLoader, ItemDefinition, itms, archive_id: 19);