#[repr(C)]pub struct SSetFireStateUnitCommand {
pub unitId: c_int,
pub groupId: c_int,
pub options: c_short,
pub timeOut: c_int,
pub fireState: 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
fireState: c_int
can be: 0=hold fire, 1=return fire, 2=fire at will
Trait Implementations§
Source§impl Clone for SSetFireStateUnitCommand
impl Clone for SSetFireStateUnitCommand
Source§fn clone(&self) -> SSetFireStateUnitCommand
fn clone(&self) -> SSetFireStateUnitCommand
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 SSetFireStateUnitCommand
impl Debug for SSetFireStateUnitCommand
impl Copy for SSetFireStateUnitCommand
Auto Trait Implementations§
impl Freeze for SSetFireStateUnitCommand
impl RefUnwindSafe for SSetFireStateUnitCommand
impl Send for SSetFireStateUnitCommand
impl Sync for SSetFireStateUnitCommand
impl Unpin for SSetFireStateUnitCommand
impl UnwindSafe for SSetFireStateUnitCommand
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