Enum Task

Source
pub enum Task<'lua> {
Show 37 variants AttackGroup { group: GroupId, params: AttackParams, }, AttackUnit { unit: UnitId, params: AttackParams, }, Bombing { point: LuaVec2, params: AttackParams, }, Strafing { point: LuaVec2, length: f64, params: AttackParams, }, CarpetBombing { point: LuaVec2, carpet_length: f64, params: AttackParams, }, AttackMapObject { point: LuaVec2, params: AttackParams, }, BombRunway { runway: RunwayId, params: AttackParams, }, Orbit { pattern: OrbitPattern, point: Option<LuaVec2>, point2: Option<LuaVec2>, speed: Option<f64>, altitude: Option<f64>, }, Refuelling, Land { point: LuaVec2, duration: Option<Time>, }, Follow(FollowParams), FollowBigFormation(FollowParams), Escort { engagement_dist_max: f64, target_types: Vec<Attribute>, params: FollowParams, }, Embarking { pos: LuaVec2, groups_for_embarking: Vec<GroupId>, duration: Option<Time>, distribution: Option<Vec<UnitId>>, }, FireAtPoint { point: LuaVec2, radius: Option<f64>, expend_qty: Option<i64>, weapon_type: Option<u64>, altitude: Option<f64>, altitude_type: Option<AltType>, }, Hold, FACAttackGroup { group: GroupId, params: FACParams, }, EmbarkToTransport { pos: LuaVec2, radius: Option<f64>, }, DisembarkFromTransport { pos: LuaVec2, radius: Option<f64>, }, CargoTransportation { group: Option<StaticObjectId>, zone: Option<TriggerZoneId>, }, GoToWaypoint { from_waypoint: i64, to_waypoint: i64, }, GroundEscort { group: GroupId, engagement_max_distance: f64, target_types: Vec<Attribute>, last_wpt_index: Option<i64>, }, RecoveryTanker { group: GroupId, speed: f64, altitude: f64, last_wpt_idx: Option<i64>, }, EngageTargets { target_types: Vec<Attribute>, max_dist: Option<f64>, priority: Option<i64>, }, EngageTargetsInZone { point: LuaVec2, zone_radius: f64, target_types: Vec<Attribute>, priority: Option<i64>, }, EngageGroup { group: GroupId, params: AttackParams, priority: Option<i64>, }, EngageUnit { unit: UnitId, params: AttackParams, priority: Option<i64>, }, AWACS, Tanker, EWR, FACEngageGroup { group: GroupId, params: FACParams, priority: Option<i64>, }, FAC { params: FACParams, priority: Option<i64>, }, Mission { airborne: Option<bool>, route: Vec<MissionPoint<'lua>>, }, ComboTask(Vec<Task<'lua>>), ControlledTask { task: Box<Task<'lua>>, condition: TaskStartCond<'lua>, stop_condition: TaskStopCond<'lua>, }, WrappedCommand(Command), WrappedOption(AiOption<'lua>),
}

Variants§

§

AttackGroup

Fields

§group: GroupId
§

AttackUnit

Fields

§unit: UnitId
§

Bombing

Fields

§point: LuaVec2
§

Strafing

Fields

§point: LuaVec2
§length: f64
§

CarpetBombing

Fields

§point: LuaVec2
§carpet_length: f64
§

AttackMapObject

Fields

§point: LuaVec2
§

BombRunway

Fields

§runway: RunwayId
§

Orbit

Fields

§point2: Option<LuaVec2>
§speed: Option<f64>
§altitude: Option<f64>
§

Refuelling

§

Land

Fields

§point: LuaVec2
§duration: Option<Time>
§

Follow(FollowParams)

§

FollowBigFormation(FollowParams)

§

Escort

Fields

§engagement_dist_max: f64
§target_types: Vec<Attribute>
§

Embarking

Fields

§groups_for_embarking: Vec<GroupId>
§duration: Option<Time>
§distribution: Option<Vec<UnitId>>
§

FireAtPoint

Fields

§point: LuaVec2
§radius: Option<f64>
§expend_qty: Option<i64>
§weapon_type: Option<u64>
§altitude: Option<f64>
§altitude_type: Option<AltType>
§

Hold

§

FACAttackGroup

Fields

§group: GroupId
§params: FACParams
§

EmbarkToTransport

Fields

§radius: Option<f64>
§

DisembarkFromTransport

Fields

§radius: Option<f64>
§

CargoTransportation

§

GoToWaypoint

Fields

§from_waypoint: i64
§to_waypoint: i64
§

GroundEscort

Fields

§group: GroupId
§engagement_max_distance: f64
§target_types: Vec<Attribute>
§last_wpt_index: Option<i64>
§

RecoveryTanker

Fields

§group: GroupId
§speed: f64
§altitude: f64
§last_wpt_idx: Option<i64>
§

EngageTargets

Fields

§target_types: Vec<Attribute>
§max_dist: Option<f64>
§priority: Option<i64>
§

EngageTargetsInZone

Fields

§point: LuaVec2
§zone_radius: f64
§target_types: Vec<Attribute>
§priority: Option<i64>
§

EngageGroup

Fields

§group: GroupId
§priority: Option<i64>
§

EngageUnit

Fields

§unit: UnitId
§priority: Option<i64>
§

AWACS

§

Tanker

§

EWR

§

FACEngageGroup

Fields

§group: GroupId
§params: FACParams
§priority: Option<i64>
§

FAC

Fields

§params: FACParams
§priority: Option<i64>
§

Mission

Fields

§airborne: Option<bool>
§route: Vec<MissionPoint<'lua>>
§

ComboTask(Vec<Task<'lua>>)

§

ControlledTask

Fields

§task: Box<Task<'lua>>
§condition: TaskStartCond<'lua>
§stop_condition: TaskStopCond<'lua>
§

WrappedCommand(Command)

§

WrappedOption(AiOption<'lua>)

Trait Implementations§

Source§

impl<'lua> Clone for Task<'lua>

Source§

fn clone(&self) -> Task<'lua>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'lua> Debug for Task<'lua>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'lua> FromLua<'lua> for Task<'lua>

Source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> LuaResult<Self>

Performs the conversion.
Source§

impl<'lua> IntoLua<'lua> for Task<'lua>

Source§

fn into_lua(self, lua: &'lua Lua) -> LuaResult<Value<'lua>>

Performs the conversion.

Auto Trait Implementations§

§

impl<'lua> Freeze for Task<'lua>

§

impl<'lua> !RefUnwindSafe for Task<'lua>

§

impl<'lua> !Send for Task<'lua>

§

impl<'lua> !Sync for Task<'lua>

§

impl<'lua> Unpin for Task<'lua>

§

impl<'lua> !UnwindSafe for Task<'lua>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<'lua, T> DeepClone<'lua> for T
where T: IntoLua<'lua> + FromLua<'lua> + Clone,

Source§

fn deep_clone(&self, lua: &'lua Lua) -> Result<T, Error>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'lua, T> FromLuaMulti<'lua> for T
where T: FromLua<'lua>,

Source§

fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>

Performs the conversion. Read more
Source§

fn from_lua_args( args: MultiValue<'lua>, i: usize, to: Option<&str>, lua: &'lua Lua, ) -> Result<T, Error>

Source§

unsafe fn from_stack_multi(nvals: i32, lua: &'lua Lua) -> Result<T, Error>

Source§

unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &'lua Lua, ) -> Result<T, Error>

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'lua, T> IntoLuaMulti<'lua> for T
where T: IntoLua<'lua>,

Source§

fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>

Performs the conversion.
Source§

unsafe fn push_into_stack_multi(self, lua: &'lua Lua) -> Result<i32, Error>

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.