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
AttackUnit
Bombing
Strafing
CarpetBombing
AttackMapObject
BombRunway
Orbit
Fields
§
pattern: OrbitPattern
Refuelling
Land
Follow(FollowParams)
FollowBigFormation(FollowParams)
Escort
Embarking
Fields
FireAtPoint
Fields
Hold
FACAttackGroup
EmbarkToTransport
DisembarkFromTransport
CargoTransportation
GoToWaypoint
GroundEscort
Fields
RecoveryTanker
EngageTargets
EngageTargetsInZone
EngageGroup
EngageUnit
AWACS
Tanker
EWR
FACEngageGroup
FAC
Mission
ComboTask(Vec<Task<'lua>>)
ControlledTask
WrappedCommand(Command)
WrappedOption(AiOption<'lua>)
Trait Implementations§
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> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
Source§fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
Performs the conversion. Read more
fn from_lua_args( args: MultiValue<'lua>, i: usize, to: Option<&str>, lua: &'lua Lua, ) -> Result<T, Error>
unsafe fn from_stack_multi(nvals: i32, lua: &'lua Lua) -> Result<T, Error>
unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &'lua Lua, ) -> Result<T, Error>
Source§impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
Source§fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.
unsafe fn push_into_stack_multi(self, lua: &'lua Lua) -> Result<i32, Error>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.