pub struct UnitAIStateCommand {
pub state: i8,
pub objects: ObjectsList,
}
Expand description
Set a group of objects’s “AI State” (usually known as “stance”).
Fields§
§state: i8
The new state. Aggressive/Defensive/No Attack/ etc.
objects: ObjectsList
The objects whose AI state is being changed.
Implementations§
Trait Implementations§
Source§impl Clone for UnitAIStateCommand
impl Clone for UnitAIStateCommand
Source§fn clone(&self) -> UnitAIStateCommand
fn clone(&self) -> UnitAIStateCommand
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 UnitAIStateCommand
impl Debug for UnitAIStateCommand
Source§impl Default for UnitAIStateCommand
impl Default for UnitAIStateCommand
Source§fn default() -> UnitAIStateCommand
fn default() -> UnitAIStateCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnitAIStateCommand
impl RefUnwindSafe for UnitAIStateCommand
impl Send for UnitAIStateCommand
impl Sync for UnitAIStateCommand
impl Unpin for UnitAIStateCommand
impl UnwindSafe for UnitAIStateCommand
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