pub struct FfiCommandBatch { /* private fields */ }Expand description
FFI wrapper for accumulating batch commands.
Implementations§
Source§impl FfiCommandBatch
impl FfiCommandBatch
pub fn AddSpawnActor( self: Pin<&mut FfiCommandBatch>, description: impl RValueParam<ActorDescription>, transform: &FfiTransform, parent_id: u32, )
pub fn AttachDoAfterToLastSpawn( self: Pin<&mut FfiCommandBatch>, sub_batch: UniquePtr<FfiCommandBatch>, )
pub fn TakeCommands( self: Pin<&mut FfiCommandBatch>, ) -> UniquePtr<CxxVector<Command>> ⓘ
pub fn Clear(self: Pin<&mut FfiCommandBatch>)
pub fn new() -> impl New<Output = Self>
Source§impl FfiCommandBatch
impl FfiCommandBatch
pub fn AddDestroyActor(self: Pin<&mut Self>, actor_id: u32)
pub fn AddApplyVehicleControl( self: Pin<&mut Self>, actor_id: u32, control: &VehicleControl, )
pub fn AddApplyVehicleAckermannControl( self: Pin<&mut Self>, actor_id: u32, control: &VehicleAckermannControl, )
pub fn AddApplyWalkerControl( self: Pin<&mut Self>, actor_id: u32, control: &WalkerControl, )
pub fn AddApplyVehiclePhysicsControl( self: Pin<&mut Self>, actor_id: u32, ffi_physics: &FfiVehiclePhysicsControl, )
pub fn AddApplyTransform( self: Pin<&mut Self>, actor_id: u32, transform: &FfiTransform, )
pub fn AddApplyLocation( self: Pin<&mut Self>, actor_id: u32, location: &FfiLocation, )
pub fn AddApplyWalkerState( self: Pin<&mut Self>, actor_id: u32, transform: &FfiTransform, speed: f32, )
pub fn AddApplyTargetVelocity( self: Pin<&mut Self>, actor_id: u32, velocity: &Vector3D, )
pub fn AddApplyTargetAngularVelocity( self: Pin<&mut Self>, actor_id: u32, angular_velocity: &Vector3D, )
pub fn AddApplyImpulse(self: Pin<&mut Self>, actor_id: u32, impulse: &Vector3D)
pub fn AddApplyForce(self: Pin<&mut Self>, actor_id: u32, force: &Vector3D)
pub fn AddApplyAngularImpulse( self: Pin<&mut Self>, actor_id: u32, impulse: &Vector3D, )
pub fn AddApplyTorque(self: Pin<&mut Self>, actor_id: u32, torque: &Vector3D)
pub fn AddSetSimulatePhysics(self: Pin<&mut Self>, actor_id: u32, enabled: bool)
pub fn AddSetEnableGravity(self: Pin<&mut Self>, actor_id: u32, enabled: bool)
pub fn AddSetAutopilot( self: Pin<&mut Self>, actor_id: u32, enabled: bool, tm_port: u16, )
pub fn AddShowDebugTelemetry(self: Pin<&mut Self>, actor_id: u32, enabled: bool)
pub fn AddSetVehicleLightState( self: Pin<&mut Self>, actor_id: u32, light_state: u32, )
pub fn AddConsoleCommand(self: Pin<&mut Self>, cmd: &CxxString)
pub fn AddSetTrafficLightState(self: Pin<&mut Self>, actor_id: u32, state: u8)
pub fn Size(&self) -> usize
Trait Implementations§
Source§impl Drop for FfiCommandBatch
impl Drop for FfiCommandBatch
Source§fn drop(self: &mut FfiCommandBatch)
fn drop(self: &mut FfiCommandBatch)
Synthesized destructor.
Source§impl ExternType for FfiCommandBatch
impl ExternType for FfiCommandBatch
Source§impl MakeCppStorage for FfiCommandBatch
impl MakeCppStorage for FfiCommandBatch
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut FfiCommandBatch
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)
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
impl MoveNew for FfiCommandBatch
Source§unsafe fn move_new(
other: Pin<MoveRef<'_, FfiCommandBatch>>,
this: Pin<&mut MaybeUninit<FfiCommandBatch>>,
)
unsafe fn move_new( other: Pin<MoveRef<'_, FfiCommandBatch>>, this: Pin<&mut MaybeUninit<FfiCommandBatch>>, )
Synthesized move constructor.
impl UniquePtrTarget for FfiCommandBatch
impl VectorElement for FfiCommandBatch
impl WeakPtrTarget for FfiCommandBatch
Auto Trait Implementations§
impl !Freeze for FfiCommandBatch
impl !RefUnwindSafe for FfiCommandBatch
impl !Send for FfiCommandBatch
impl !Sync for FfiCommandBatch
impl !Unpin for FfiCommandBatch
impl UnsafeUnpin for FfiCommandBatch
impl UnwindSafe for FfiCommandBatch
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