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
2023-12-15 20:45:56 +01:00
.github/workflows check msrv 2023-11-11 22:03:39 +01:00
benches update benches 2020-06-26 20:30:04 +02:00
derive work around circular derive dependency 2023-11-12 14:30:16 +01:00
examples texture info handling 2022-12-07 22:03:32 +01:00
fuzz flake update 2023-12-09 16:31:34 +01:00
src fix texture transforms 2023-12-15 20:45:56 +01:00
.envrc add flake 2022-12-05 16:51:22 +01:00
.gitignore nix ci 2023-06-08 19:31:12 +02:00
Cargo.lock texture work 2023-12-09 20:25:33 +01:00
Cargo.toml texture work 2023-12-09 20:25:33 +01:00
flake.lock flake update 2023-12-09 16:31:34 +01:00
flake.nix flake update 2023-12-09 16:31:34 +01: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 fix readme typo 2021-02-21 15:03:39 +01: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

fn main() -> Result<(), vbsp::BspError> {
    let data = std::fs::read("maps/cp_steel.bsp")?;
    let bsp = vbsp::Bsp::read(&data)?;
    println!("{:?}", bsp);

    Ok(())
}

Credits

This project is adapted from the quake bsp parser and wouldn't be possible without information from the source engine wiki.