pub enum BspFormat {
BSP2,
BSP29,
BSP30,
BSP38,
BSP38Qbism,
}Expand description
The format of a BSP file. This is determined by the magic number made up of the first 4 bytes of the file, and governs how the rest of the file attempts to parse.
Variants§
BSP2
Modern BSP format with expanded limits
BSP29
Original quake format, in most cases, you should use BSP2 over this.
BSP30
GoldSrc format. For the sake of BspVariableValue, this is usually the same as BSP38,
but differs in some cases (e.g. each model having up to 4 hulls).
BSP38
Quake 2 format.
BSP38Qbism
Quake 2 format with expanded limits, similar to what BSP2 is to BSP29.
Implementations§
Trait Implementations§
Source§impl BspValue for BspFormat
impl BspValue for BspFormat
Source§fn bsp_parse(reader: &mut BspByteReader<'_>) -> BspResult<Self>
fn bsp_parse(reader: &mut BspByteReader<'_>) -> BspResult<Self>
Parse this value, advancing the byte reader.
Source§fn bsp_struct_size(_ctx: &BspParseContext) -> usize
fn bsp_struct_size(_ctx: &BspParseContext) -> usize
How big this value is in the BSP file in bytes. If it is a variable size, return
unimplemented!(), as calling this on variable-sized values would be a bug.impl Copy for BspFormat
impl Eq for BspFormat
impl StructuralPartialEq for BspFormat
Auto Trait Implementations§
impl Freeze for BspFormat
impl RefUnwindSafe for BspFormat
impl Send for BspFormat
impl Sync for BspFormat
impl Unpin for BspFormat
impl UnwindSafe for BspFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more