pub struct RemoteController {
pub movement_speed: f64,
pub name: &'static str,
}Expand description
Minimal RemoteControllerPrototype for data.extend.
Properties of the remote controller.
type = "remote-controller" is injected by the Lua generator.
Fields§
§movement_speed: f64Must be >= 0.34375.
name: &'static strName of the remote controller. Base game uses “default”.
Trait Implementations§
Source§impl Clone for RemoteController
impl Clone for RemoteController
Source§fn clone(&self) -> RemoteController
fn clone(&self) -> RemoteController
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 RemoteController
Source§impl Debug for RemoteController
impl Debug for RemoteController
Source§impl Default for RemoteController
impl Default for RemoteController
Source§fn default() -> RemoteController
fn default() -> RemoteController
Returns the “default value” for a type. Read more
Source§impl PartialEq for RemoteController
impl PartialEq for RemoteController
impl StructuralPartialEq for RemoteController
Auto Trait Implementations§
impl Freeze for RemoteController
impl RefUnwindSafe for RemoteController
impl Send for RemoteController
impl Sync for RemoteController
impl Unpin for RemoteController
impl UnsafeUnpin for RemoteController
impl UnwindSafe for RemoteController
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