# wolfrpg-map-parser
**Repository Path**: rootjd/wolfrpg-map-parser
## Basic Information
- **Project Name**: wolfrpg-map-parser
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-09-09
- **Last Updated**: 2025-09-09
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Parser for Wolf RPG Editor map files
====================================
[
](https://github.com/G1org1owo/wolfrpg-map-parser)
[
](https://crates.io/crates/wolfrpg-map-parser)
[
](https://docs.rs/wolfrpg-map-parser)
[
](https://github.com/G1org1owo/wolfrpg-map-parser/blob/main/LICENSE)
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.
## Usage
You can run the standalone directly through Cargo:
```bash
$ cargo run --project wolfrpg-map-parser --bin wolfrpg-map-parser --features="serde"
```
Or you can add the crate and import the needed modules:
```rust
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 ...
}
}
}
```