pub struct Instance {
pub file: usize,
pub parent: Option<(usize, EntId)>,
pub transform: Transform,
}Expand description
One func_instance on the assembled map, nested ones included
Fields§
§file: usizeIndex into VmfSystem::files of the VMF this instance places
parent: Option<(usize, EntId)>Who placed this one: the parent instance (index into VmfSystem::instances) and the func_instance’s id in the parent’s file.
None for the root map
transform: TransformFrom the space of file to world space, through every parent
Trait Implementations§
impl Copy for Instance
impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl UnwindSafe for Instance
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