1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-03 18:54:05 +02:00

game lump/static props

This commit is contained in:
Robin Appelman 2022-03-03 00:37:09 +01:00
commit 15c1c4e6eb
9 changed files with 423 additions and 50 deletions

8
src/handle/game.rs Normal file
View file

@ -0,0 +1,8 @@
use super::Handle;
use crate::data::*;
impl Handle<'_, StaticPropLump> {
pub fn model(&self) -> &str {
self.bsp.static_props.dict.name[self.prop_type as usize].as_str()
}
}

View file

@ -1,5 +1,6 @@
mod displacement;
mod face;
mod game;
use crate::data::*;
use crate::Bsp;