[−][src]Module rscache::ldr::osrs
OSRS specific loaders.
Example
use rscache::OsrsCache; use rscache::ldr::osrs::ItemLoader; let cache = OsrsCache::new("./data/cache")?; let item_ldr = ItemLoader::new(&cache)?; if let Some(def) = item_ldr.load(1042) { assert_eq!("Blue partyhat", def.name); assert!(!def.stackable); assert!(!def.members_only); }
Errors
Every loader returns a CacheError
with an inner error.
Structs
ItemLoader | Loads all item definitions from the current cache. |
NpcLoader | Loads all npc definitions from the current cache. |
ObjectLoader | Loads all object definitions from the current cache. |