mappy
A parser for Quake .map files and their descendent formats.
| Format | Description |
|---|---|
Quake .map |
Standard and Valve 220 texture coordinate variants, including Quake II surface flags |
Valve .vmf |
Full fidelity, including displacements, I/O connections, visgroups, cameras, and cordons |
Usage
[]
= "1"
Parse a .map file:
use ;
let map: Map = include_str!.parse?;
for entity in &map.entities
Parse a .vmf file:
use ;
let vmf: Vmf = include_str!.parse?;
for entity in &vmf.entities
Convert entities to typed game objects with [FromEntity]:
use ;
Features
| Feature | Description |
|---|---|
serde |
Derive Serialize/Deserialize for all public types |
License
MIT OR Apache-2.0