vbsp 0.9.1

Rust parser for valve bsp files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{Handle, StaticPropLump};
use vbsp_common::{AsPropPlacement, PropPlacement};

impl<'a> AsPropPlacement<'a> for Handle<'a, StaticPropLump> {
    fn as_prop_placement(&self) -> PropPlacement<'a> {
        PropPlacement {
            model: self.model(),
            rotation: self.angles.as_quaternion(),
            scale: 1.0,
            origin: self.origin,
            skin: self.skin,
        }
    }
}