A RS2 cache library written in Rust, based on the OpenRS2 implementation.
It should be noted: RS2 also includes Old School Runescape.
Add the following to your Cargo.toml
file:
toml
[dependencies]
rs2-cache = "0.1.0"
```rust use rs2cache::Cache;
fn main() -> Result<(), osrscache::Error> { let cache = Cache::open("./cache")?;
let index_id = 2; // Config index
let archive_id = 10; // Item definitions archive
let file_id = 1042; // Blue Partyhat file
let buffer = cache.read(index_id, archive_id, file_id)?;
Ok(())
} ```
If you have suggestions for features, or want to add for example a new loader for the cache, feel free to make a pull request. For bigger features it is advised to open an issue in order to discuss it beforehand.