Enum CameraType
pub enum CameraType {
FirstPerson,
ThirdPersonBack,
ThirdPersonFront,
}Expand description
CameraType: where the camera sits for the local player. key.togglePerspective (F5) cycles
it first person, third person behind, third person in front.
Variants§
Implementations§
§impl CameraType
impl CameraType
pub fn is_first_person(self) -> bool
pub fn is_first_person(self) -> bool
CameraType.isFirstPerson.
pub fn is_mirrored(self) -> bool
pub fn is_mirrored(self) -> bool
CameraType.isMirrored: third person in front.
pub fn cycle(self) -> CameraType
pub fn cycle(self) -> CameraType
CameraType.cycle (F5).
Trait Implementations§
§impl Clone for CameraType
impl Clone for CameraType
§fn clone(&self) -> CameraType
fn clone(&self) -> CameraType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CameraType
§impl Debug for CameraType
impl Debug for CameraType
§impl Default for CameraType
impl Default for CameraType
§fn default() -> CameraType
fn default() -> CameraType
Returns the “default value” for a type. Read more
impl Eq for CameraType
§impl PartialEq for CameraType
impl PartialEq for CameraType
impl StructuralPartialEq for CameraType
Auto Trait Implementations§
impl Freeze for CameraType
impl RefUnwindSafe for CameraType
impl Send for CameraType
impl Sync for CameraType
impl Unpin for CameraType
impl UnsafeUnpin for CameraType
impl UnwindSafe for CameraType
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