pub struct IBspValue(pub i32);Expand description
A signed variable integer parsed from a BSP. i32 when parsing BSP2, i16 when parsing BSP29.
In almost all cases, BSP38 and BSP30 do not have increased limits, and so they still use 16-bit indices.
Tuple Fields§
§0: i32Trait Implementations§
Source§impl BspVariableValue for IBspValue
impl BspVariableValue for IBspValue
Source§type Bsp29 = i16
type Bsp29 = i16
The type of this field for BSP v29 (Quake 1). See Quake Wiki.
Source§type Bsp2 = i32
type Bsp2 = i32
The type of this field for BSP2 (BSP v29 with increased limits, originally for RemakeQuake). See Quake Wiki.
Source§type Bsp30 = i16
type Bsp30 = i16
The type of this field for BSP30 (GoldSrc). See Valve Developer Community.
Source§impl From<IBspValue> for VisDataRef
impl From<IBspValue> for VisDataRef
Source§impl Ord for IBspValue
impl Ord for IBspValue
Source§impl PartialOrd for IBspValue
impl PartialOrd for IBspValue
impl Copy for IBspValue
impl Eq for IBspValue
impl StructuralPartialEq for IBspValue
Auto Trait Implementations§
impl Freeze for IBspValue
impl RefUnwindSafe for IBspValue
impl Send for IBspValue
impl Sync for IBspValue
impl Unpin for IBspValue
impl UnwindSafe for IBspValue
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
Source§impl<T> BspValue for Twhere
T: BspVariableValue,
impl<T> BspValue for Twhere
T: BspVariableValue,
Source§fn bsp_parse(reader: &mut BspByteReader<'_>) -> Result<T, BspParseError>
fn bsp_parse(reader: &mut BspByteReader<'_>) -> Result<T, BspParseError>
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.