[][src]Struct genie_rec::actions::SetGatherPointCommand

pub struct SetGatherPointCommand {
    pub buildings: ObjectsList,
    pub target_id: Option<ObjectID>,
    pub target_type_id: Option<UnitTypeID>,
    pub location: Option<Location2>,
}

Fields

buildings: ObjectsList

The IDs of the buildings whose gather points are being set.

target_id: Option<ObjectID>

The ID of the object being targeted, if the gather point is set to an object.

target_type_id: Option<UnitTypeID>

The type ID of the unit being targeted, if the gather point is set to an object.

location: Option<Location2>

The location of the new gather point, if the gather point is not set to an object.

Implementations

impl SetGatherPointCommand[src]

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

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

Trait Implementations

impl Clone for SetGatherPointCommand[src]

impl Debug for SetGatherPointCommand[src]

impl Default for SetGatherPointCommand[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.