5 releases (3 breaking)
new 0.4.0 | Jan 28, 2025 |
---|---|
0.3.1 | Jan 28, 2025 |
0.3.0 | Jan 28, 2025 |
0.2.0 | Jun 26, 2024 |
0.1.0 | Jun 25, 2024 |
#1943 in Parser implementations
195 downloads per month
Used in quake_bspinfo
19KB
486 lines
bspparser
Parse Quake .bsp files
Usage
let file = &mut fs::File::open("tests/files/povdmm4.bsp")?;
let bsp = BspFile::parse(file)?;
println!("{:?}", bsp.entities);
[
{
"wad": "gfx/base.wad",
"worldtype": "2",
"sounds": "6",
"message": "The Abandoned Base",
"classname": "worldspawn"
},
{
"classname": "light_fluoro",
"origin": "264 -32 88"
}
// ...
]
Dependencies
~1.5MB
~22K SLoC