pub struct VersionInfo {
pub editor_version: i32,
pub editor_build: i32,
pub map_version: i32,
pub format_version: i32,
pub prefab: bool,
pub extra: Extras,
}Expand description
Represents the version info of a VMF file.
Fields§
§editor_version: i32The editor version.
editor_build: i32The editor build number.
map_version: i32The map version.
format_version: i32The format version.
prefab: boolWhether the VMF is a prefab.
extra: ExtrasKeys and blocks this struct does not model.
Trait Implementations§
Source§impl Clone for VersionInfo
impl Clone for VersionInfo
Source§impl Debug for VersionInfo
impl Debug for VersionInfo
Source§impl Default for VersionInfo
impl Default for VersionInfo
Source§impl From<VersionInfo> for VmfBlock
impl From<VersionInfo> for VmfBlock
Source§fn from(val: VersionInfo) -> Self
fn from(val: VersionInfo) -> Self
Converts to this type from the input type.
Source§impl FromBlock for VersionInfo
impl FromBlock for VersionInfo
Source§fn from_block(block: VmfBlock, ctx: &mut ParseCtx) -> Self
fn from_block(block: VmfBlock, ctx: &mut ParseCtx) -> Self
Parses
block, substituting defaults and logging warnings for missing or invalid values.Source§impl PartialEq for VersionInfo
impl PartialEq for VersionInfo
impl StructuralPartialEq for VersionInfo
Source§impl TryFrom<VmfBlock> for VersionInfo
impl TryFrom<VmfBlock> for VersionInfo
Source§impl VmfSerializable for VersionInfo
impl VmfSerializable for VersionInfo
Auto Trait Implementations§
impl Freeze for VersionInfo
impl RefUnwindSafe for VersionInfo
impl Send for VersionInfo
impl Sync for VersionInfo
impl Unpin for VersionInfo
impl UnsafeUnpin for VersionInfo
impl UnwindSafe for VersionInfo
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