pub fn bsp<R: Read + Seek>(reader: R) -> Result<Level>Expand description
Parse a Half-Life BSP level file.
§Arguments
§Returns
A fully parsed bsp::Level struct with geometry, entities, textures, and more.
§Errors
Returns an io::Error if the BSP is malformed or the stream cannot be read.
§Example
use std::fs::File;
let file = File::open("c1a0.bsp").expect("file opening");
let level = goldsrc_rs::bsp(file).expect("map parsing");