1
0
Fork 0
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%
Find a file
2020-06-26 19:50:06 +02:00
benches move benchmark into benches folder 2020-06-22 18:57:52 +02:00
src cleanup 2020-06-26 19:28:28 +02:00
.gitignore Initial Commit 2016-12-18 07:00:41 +00:00
base.bench valve bsp wip 2020-06-25 00:25:48 +02:00
Cargo.toml some more data implemented 2020-06-26 00:05:48 +02:00
koth_bagel_rc2a.bsp valve bsp wip 2020-06-25 00:25:48 +02:00
LICENSE update readme 2020-06-26 19:50:06 +02:00
README.md update readme 2020-06-26 19:50:06 +02:00
test.bsp Improve speed, add lightmaps and light volumes, allow parsing entity section 2019-04-09 16:50:48 +02:00

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.