pub struct Object { /* private fields */ }Implementations§
source§impl Object
impl Object
pub fn get_handle(&self) -> *const c_void
pub fn new(handle: *const c_void) -> Self
pub fn create( modelid: isize, position: Vector3, rotation: Vector3, draw_distance: f32 ) -> Option<Object>
pub fn destroy(&self) -> bool
pub fn attach_to_vehicle( &self, vehicle: &Vehicle, offset: Vector3, rotation: Vector3 )
pub fn attach_to_object( &self, obj_attached_to: &Object, offset: Vector3, rotation: Vector3, sync_rotation: bool )
pub fn attach_to_player( &self, player: &Player, offset: Vector3, rotation: Vector3 )
pub fn set_pos(&self, position: Vector3)
pub fn get_pos(&self) -> Vector3
pub fn set_rotation(&self, rotation: Vector3)
pub fn get_rotation(&self) -> Vector3
pub fn get_model(&self) -> isize
pub fn set_no_camera_collision(&self)
pub fn is_valid(&self) -> bool
pub fn move_object(&self, data: ObjectMoveData) -> isize
pub fn stop(&self)
pub fn is_moving(&self) -> bool
pub fn set_material( &self, material_index: isize, model_id: isize, texture_library: &str, texture_name: &str, material_colour: Colour )
pub fn set_material_text( &self, text: &str, material_index: isize, material_size: ObjectMaterialSize, fontface: &str, fontsize: isize, bold: bool, font_colour: Colour, background_colour: Colour, textalignment: ObjectMaterialTextAlign )
pub fn set_objects_default_camera_collision(disable: bool)
pub fn get_draw_distance(&self) -> f32
pub fn get_move_speed(&self) -> f32
pub fn get_move_data(&self) -> ObjectMoveData
pub fn get_attached_data(&self) -> ObjectAttachmentData
pub fn is_material_slot_used(&self, material_index: isize) -> bool
pub fn get_material_data(&self, material_index: isize) -> ObjectMaterialData
pub fn is_no_camera_collision(&self) -> bool
pub fn get_id(&self) -> isize
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
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