pub enum BspFormat {
BSP2,
BSP29,
BSP30,
BSP38,
}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.
Implementations§
Trait Implementations§
Source§impl BspValue for BspFormat
impl BspValue for BspFormat
fn bsp_parse(reader: &mut BspByteReader<'_>) -> BspResult<Self>
fn bsp_struct_size(_ctx: &BspParseContext) -> usize
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