#[repr(C)]pub struct SBuildUnitCommand {
pub unitId: c_int,
pub groupId: c_int,
pub options: c_short,
pub timeOut: c_int,
pub toBuildUnitDefId: c_int,
pub buildPos_posF3: *mut f32,
pub facing: c_int,
}
Fields§
§unitId: c_int
§groupId: c_int
§options: c_short
see enum UnitCommandOptions
timeOut: c_int
At which frame the command will time-out and consequently be removed, if execution of it has not yet begun. Can only be set locally, is not sent over the network, and is used for temporary orders. default: MAX_INT (-> do not time-out) example: currentFrame + 15
toBuildUnitDefId: c_int
§buildPos_posF3: *mut f32
§facing: c_int
set it to UNIT_COMMAND_BUILD_NO_FACING, if you do not want to specify a certain facing
Trait Implementations§
Source§impl Clone for SBuildUnitCommand
impl Clone for SBuildUnitCommand
Source§fn clone(&self) -> SBuildUnitCommand
fn clone(&self) -> SBuildUnitCommand
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 SBuildUnitCommand
impl Debug for SBuildUnitCommand
impl Copy for SBuildUnitCommand
Auto Trait Implementations§
impl Freeze for SBuildUnitCommand
impl RefUnwindSafe for SBuildUnitCommand
impl !Send for SBuildUnitCommand
impl !Sync for SBuildUnitCommand
impl Unpin for SBuildUnitCommand
impl UnwindSafe for SBuildUnitCommand
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