pub struct CameraWaypoint {
pub anchor: AnchorId,
pub offset: [i32; 3],
}Expand description
One camera waypoint of a Verb::Cutscene (DSL v0.4): an anchor plus
an integer block offset from it, giving the camera’s world position.
Fields§
§anchor: AnchorIdThe anchor the waypoint is relative to.
offset: [i32; 3]Integer [x, y, z] block offset from the anchor (default [0, 0, 0]).
Trait Implementations§
Source§impl Clone for CameraWaypoint
impl Clone for CameraWaypoint
Source§fn clone(&self) -> CameraWaypoint
fn clone(&self) -> CameraWaypoint
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 moreSource§impl Debug for CameraWaypoint
impl Debug for CameraWaypoint
Source§impl<'de> Deserialize<'de> for CameraWaypoint
impl<'de> Deserialize<'de> for CameraWaypoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for CameraWaypoint
impl JsonSchema for CameraWaypoint
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CameraWaypoint
impl PartialEq for CameraWaypoint
Source§impl Serialize for CameraWaypoint
impl Serialize for CameraWaypoint
impl StructuralPartialEq for CameraWaypoint
Auto Trait Implementations§
impl Freeze for CameraWaypoint
impl RefUnwindSafe for CameraWaypoint
impl Send for CameraWaypoint
impl Sync for CameraWaypoint
impl Unpin for CameraWaypoint
impl UnsafeUnpin for CameraWaypoint
impl UnwindSafe for CameraWaypoint
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