Skip to main content

FfiCommandBatch

Struct FfiCommandBatch 

Source
pub struct FfiCommandBatch { /* private fields */ }
Expand description

FFI wrapper for accumulating batch commands.

Implementations§

Source§

impl FfiCommandBatch

Source

pub fn AddSpawnActor( self: Pin<&mut FfiCommandBatch>, description: impl RValueParam<ActorDescription>, transform: &FfiTransform, parent_id: u32, )

Source

pub fn AttachDoAfterToLastSpawn( self: Pin<&mut FfiCommandBatch>, sub_batch: UniquePtr<FfiCommandBatch>, )

Source

pub fn TakeCommands( self: Pin<&mut FfiCommandBatch>, ) -> UniquePtr<CxxVector<Command>>

Source

pub fn Clear(self: Pin<&mut FfiCommandBatch>)

Source

pub fn new() -> impl New<Output = Self>

Source§

impl FfiCommandBatch

Source

pub fn AddDestroyActor(self: Pin<&mut Self>, actor_id: u32)

Source

pub fn AddApplyVehicleControl( self: Pin<&mut Self>, actor_id: u32, control: &VehicleControl, )

Source

pub fn AddApplyVehicleAckermannControl( self: Pin<&mut Self>, actor_id: u32, control: &VehicleAckermannControl, )

Source

pub fn AddApplyWalkerControl( self: Pin<&mut Self>, actor_id: u32, control: &WalkerControl, )

Source

pub fn AddApplyVehiclePhysicsControl( self: Pin<&mut Self>, actor_id: u32, ffi_physics: &FfiVehiclePhysicsControl, )

Source

pub fn AddApplyTransform( self: Pin<&mut Self>, actor_id: u32, transform: &FfiTransform, )

Source

pub fn AddApplyLocation( self: Pin<&mut Self>, actor_id: u32, location: &FfiLocation, )

Source

pub fn AddApplyWalkerState( self: Pin<&mut Self>, actor_id: u32, transform: &FfiTransform, speed: f32, )

Source

pub fn AddApplyTargetVelocity( self: Pin<&mut Self>, actor_id: u32, velocity: &Vector3D, )

Source

pub fn AddApplyTargetAngularVelocity( self: Pin<&mut Self>, actor_id: u32, angular_velocity: &Vector3D, )

Source

pub fn AddApplyImpulse(self: Pin<&mut Self>, actor_id: u32, impulse: &Vector3D)

Source

pub fn AddApplyForce(self: Pin<&mut Self>, actor_id: u32, force: &Vector3D)

Source

pub fn AddApplyAngularImpulse( self: Pin<&mut Self>, actor_id: u32, impulse: &Vector3D, )

Source

pub fn AddApplyTorque(self: Pin<&mut Self>, actor_id: u32, torque: &Vector3D)

Source

pub fn AddSetSimulatePhysics(self: Pin<&mut Self>, actor_id: u32, enabled: bool)

Source

pub fn AddSetEnableGravity(self: Pin<&mut Self>, actor_id: u32, enabled: bool)

Source

pub fn AddSetAutopilot( self: Pin<&mut Self>, actor_id: u32, enabled: bool, tm_port: u16, )

Source

pub fn AddShowDebugTelemetry(self: Pin<&mut Self>, actor_id: u32, enabled: bool)

Source

pub fn AddSetVehicleLightState( self: Pin<&mut Self>, actor_id: u32, light_state: u32, )

Source

pub fn AddConsoleCommand(self: Pin<&mut Self>, cmd: &CxxString)

Source

pub fn AddSetTrafficLightState(self: Pin<&mut Self>, actor_id: u32, state: u8)

Source

pub fn Size(&self) -> usize

Trait Implementations§

Source§

impl Drop for FfiCommandBatch

Source§

fn drop(self: &mut FfiCommandBatch)

Synthesized destructor.

Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl ExternType for FfiCommandBatch

Source§

type Id = (c, a, r, l, a, __, r, u, s, t, (), c, l, i, e, n, t, (), F, f, i, C, o, m, m, a, n, d, B, a, t, c, h)

A type-level representation of the type’s C++ namespace and type name. Read more
Source§

type Kind = Opaque

Source§

impl MakeCppStorage for FfiCommandBatch

Source§

unsafe fn allocate_uninitialized_cpp_storage() -> *mut FfiCommandBatch

Allocates heap space for this type in C++ and return a pointer to that space, but do not initialize that space (i.e. do not yet call a constructor). Read more
Source§

unsafe fn free_uninitialized_cpp_storage(arg0: *mut FfiCommandBatch)

Frees a C++ allocation which has not yet had a constructor called. Read more
Source§

impl MoveNew for FfiCommandBatch

Source§

unsafe fn move_new( other: Pin<MoveRef<'_, FfiCommandBatch>>, this: Pin<&mut MaybeUninit<FfiCommandBatch>>, )

Synthesized move constructor.

Source§

impl SharedPtrTarget for FfiCommandBatch

Source§

impl UniquePtrTarget for FfiCommandBatch

Source§

impl VectorElement for FfiCommandBatch

Source§

impl WeakPtrTarget for FfiCommandBatch

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.