[][src]Struct genie_rec::actions::UserPatchAICommand

pub struct UserPatchAICommand {
    pub player_id: PlayerID,
    pub ai_action: u8,
    pub params: ArrayVec<[u32; 4]>,
}

Meta-command for UserPatch's new AI commands.

Fields

player_id: PlayerIDai_action: u8

0: move to object 1: set unit ai state 2: ? 3: ? 4: stop unit group? 5: dropoff something? 6: dropoff something? 7: ? 8: set offensive target priority 9: reset offensive target priorities? 10: nothing? 11: stop unit group? 12: set gather point to garrison in self 13: set ai player name 14: unload object 15: nothing?

params: ArrayVec<[u32; 4]>

Implementations

impl UserPatchAICommand[src]

pub fn read_from(input: impl Read, size: u32) -> Result<Self>[src]

pub fn write_to<W: Write>(&self, output: &mut W) -> Result<()>[src]

Trait Implementations

impl Clone for UserPatchAICommand[src]

impl Debug for UserPatchAICommand[src]

impl Default for UserPatchAICommand[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.