mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-04 02:54:08 +02:00
prepare for release
This commit is contained in:
parent
adf79d70a1
commit
472d2106aa
8 changed files with 86 additions and 708 deletions
|
|
@ -1,13 +1,10 @@
|
|||
#[allow(unused_imports)]
|
||||
use std::ops::Deref;
|
||||
|
||||
fn main() -> Result<(), vbsp::BspError> {
|
||||
let mut args = std::env::args();
|
||||
let _ = args.next();
|
||||
let data = std::fs::read(args.next().expect("No demo file provided"))?;
|
||||
let bsp = vbsp::Bsp::read(&data)?;
|
||||
for prop in bsp.entities.iter() {
|
||||
match prop.parse::<vbsp::basic::Entity>() {
|
||||
match prop.parse::<vbsp::GenericEntity>() {
|
||||
Ok(prop) => {
|
||||
println!("{:#?}", prop)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue