pub struct World {
pub key_values: IndexMap<String, String>,
pub solids: Vec<Solid>,
pub hidden: Vec<Solid>,
pub groups: Vec<Group>,
pub extra: Extras,
}Expand description
Represents the world block in a VMF file.
Fields§
§key_values: IndexMap<String, String>The key-value pairs associated with the world.
solids: Vec<Solid>The list of solids that make up the world geometry.
The list of hidden solids in the world.
groups: Vec<Group>The list of groups present in the world.
extra: ExtrasBlocks this struct does not model. Unknown keys land in key_values.
Implementations§
Trait Implementations§
Source§impl FromBlock for World
impl FromBlock for World
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.impl StructuralPartialEq for World
Source§impl VmfSerializable for World
impl VmfSerializable for World
Auto Trait Implementations§
impl Freeze for World
impl RefUnwindSafe for World
impl Send for World
impl Sync for World
impl Unpin for World
impl UnsafeUnpin for World
impl UnwindSafe for World
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