#[repr(C)]pub struct SDrawUnitDrawerCommand {
pub toDrawUnitDefId: c_int,
pub pos_posF3: *mut f32,
pub rotation: f32,
pub lifeTime: c_int,
pub teamId: c_int,
pub transparent: bool,
pub drawBorder: bool,
pub facing: c_int,
}
Expand description
This function allows you to draw units onto the map.
- they only show up on the local player’s screen
- they will be drawn in the “standard pose” (as if before any COB scripts are run)
Fields§
§toDrawUnitDefId: c_int
§pos_posF3: *mut f32
§rotation: f32
in radians
lifeTime: c_int
specifies how many frames a figure should live before being auto-removed; 0 means no removal
teamId: c_int
teamId affects the color of the unit
transparent: bool
§drawBorder: bool
§facing: c_int
Trait Implementations§
Source§impl Clone for SDrawUnitDrawerCommand
impl Clone for SDrawUnitDrawerCommand
Source§fn clone(&self) -> SDrawUnitDrawerCommand
fn clone(&self) -> SDrawUnitDrawerCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 SDrawUnitDrawerCommand
impl Debug for SDrawUnitDrawerCommand
impl Copy for SDrawUnitDrawerCommand
Auto Trait Implementations§
impl Freeze for SDrawUnitDrawerCommand
impl RefUnwindSafe for SDrawUnitDrawerCommand
impl !Send for SDrawUnitDrawerCommand
impl !Sync for SDrawUnitDrawerCommand
impl Unpin for SDrawUnitDrawerCommand
impl UnwindSafe for SDrawUnitDrawerCommand
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