#[repr(C)]pub struct SPlayerCommandEvent {
pub unitIds: *mut c_int,
pub unitIds_size: c_int,
pub commandTopicId: c_int,
pub playerId: c_int,
}
Expand description
This AI event is sent when a user gives a command to one or multiple units belonging to a team controlled by the AI. For more info about the given commands, please use the Unit.getCurrentCommands() method of the callback.
Fields§
§unitIds: *mut c_int
§unitIds_size: c_int
§commandTopicId: c_int
see COMMAND_* defines in AISCommands.h
playerId: c_int
Id of the player that issued the command
Trait Implementations§
Source§impl Clone for SPlayerCommandEvent
impl Clone for SPlayerCommandEvent
Source§fn clone(&self) -> SPlayerCommandEvent
fn clone(&self) -> SPlayerCommandEvent
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 SPlayerCommandEvent
impl Debug for SPlayerCommandEvent
impl Copy for SPlayerCommandEvent
Auto Trait Implementations§
impl Freeze for SPlayerCommandEvent
impl RefUnwindSafe for SPlayerCommandEvent
impl !Send for SPlayerCommandEvent
impl !Sync for SPlayerCommandEvent
impl Unpin for SPlayerCommandEvent
impl UnwindSafe for SPlayerCommandEvent
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