pub struct Camera {
pub position: String,
pub look: String,
pub extra: Extras,
}Expand description
Represents a single camera in a VMF file.
Fields§
§position: StringThe position of the camera in the VMF coordinate system.
look: StringThe point at which the camera is looking, in the VMF coordinate system.
extra: ExtrasKeys and blocks this struct does not model.
Trait Implementations§
Source§impl FromBlock for Camera
impl FromBlock for Camera
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 Camera
Auto Trait Implementations§
impl Freeze for Camera
impl RefUnwindSafe for Camera
impl Send for Camera
impl Sync for Camera
impl Unpin for Camera
impl UnsafeUnpin for Camera
impl UnwindSafe for Camera
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