| Crates.io | wolfrpg-map-parser |
| lib.rs | wolfrpg-map-parser |
| version | 0.5.4 |
| created_at | 2025-01-06 23:52:27.699385+00 |
| updated_at | 2025-08-10 22:09:26.380179+00 |
| description | Parser for Wolf RPG Editor map files |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1506358 |
| size | 370,941 |
The aim of this crate is to allow users to easily parse Wolf RPG Editor map (.mps) files and expose a complete
interface to enable interaction with each component of a map, from the tiles to the events.
This package includes both a library crate that parses the map into a tree of rust structs and a binary crate that outputs the result in JSON format.
You can run the standalone directly through Cargo:
$ cargo run --project wolfrpg-map-parser --bin wolfrpg-map-parser --features="serde" <filepath>
Or you can add the crate and import the needed modules:
use wolfrpg_map_parser::Map;
fn main() {
match fs::read("filepath.mps") {
Ok(bytes) => {
let map: Map = Map::parse(&bytes);
// Data manipulation ...
}
Err(_) => {
// Error handling ...
}
}
}