mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 10:44:07 +02:00
No description
- Rust 99.1%
- Nix 0.9%
| benches | ||
| src | ||
| .gitignore | ||
| Cargo.toml | ||
| koth_bagel_rc2a.bsp | ||
| LICENSE | ||
| README.md | ||
| test.bsp | ||
VBSP
Rust parser for valve bsp files.
Currently only supports the tf2 version of bsp files, but adding other sourcemod variants should be fairly straight forward.
Example usage
extern crate bsp;
use std::fs::File;
fn main() -> std::io::Result<()> {
let data = std::fs::read("maps/cp_steel.bsp")?;
let bsp = bsp::Bsp::read(&data)?;
println!("{:?}", bsp);
Ok(())
}
Credits
This project is adapter from the quake bsp parser and wouldn't be possible without information from the source engine wiki.