[][src]Struct stockton_bsp::BSPFile

pub struct BSPFile {
    pub directory: Header,
    pub entities: EntitiesLump,
    pub textures: TexturesLump,
    pub planes: PlanesLump,
    pub light_vols: LightVolsLump,
    pub brushes: BrushesLump,
    pub vertices: VerticesLump,
    pub meshverts: MeshVertsLump,
    pub light_maps: LightMapsLump,
    pub effects: EffectsLump,
    pub faces: FaceLump,
    pub tree: BSPTree,
    pub visdata: VisDataLump,
    pub models: ModelsLump,
    pub advertisements: Option<AdvertisementsLump>,
}

Represents a parsed BSP file.

Fields

directory: Headerentities: EntitiesLumptextures: TexturesLumpplanes: PlanesLumplight_vols: LightVolsLumpbrushes: BrushesLumpvertices: VerticesLumpmeshverts: MeshVertsLumplight_maps: LightMapsLumpeffects: EffectsLumpfaces: FaceLumptree: BSPTreevisdata: VisDataLumpmodels: ModelsLumpadvertisements: Option<AdvertisementsLump>

Only present for Quake live maps (IBSP47)

Implementations

impl BSPFile[src]

pub fn from_buffer(buf: Box<[u8]>) -> Result<BSPFile>[src]

Try to parse the given buffer as a BSP file

Trait Implementations

impl Clone for BSPFile[src]

impl Debug for BSPFile[src]

Auto Trait Implementations

impl RefUnwindSafe for BSPFile

impl Send for BSPFile

impl Sync for BSPFile

impl Unpin for BSPFile

impl UnwindSafe for BSPFile

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,