UNPKG

@flying-dice/tslua-dcs-mission-types

Version:

Typescript type definitions for DCS

40 lines (36 loc) 1.36 kB
import type { l_Airbase } from "./Airbase"; import type { l_Group } from "./Group"; import type { l_StaticObject } from "./StaticObject"; import type { _coalition } from "./exports/coalition.export"; /** @noSelf **/ export interface l_coalition extends _coalition { /** * Returns a table of group objects belonging to the specified coalition. * If the groupCategory enumerator is provided the table will only contain groups that belong to the specified category. * If this optional variable is not provided, all group types will be returned. * * See here for the list of possible group categories. * * @see https://wiki.hoggitworld.com/view/DCS_func_getGroups * * @param coalitionId * @param groupCategory */ getGroups(coalitionId: number, groupCategory?: number): l_Group[]; /** * Returns a table of airbase objects belonging to the specified coalition. * Objects can be ships, static objects(FARP), or airbases on the map. * * When the function is run as world.getAirbases() no input values required, * and the function returns all airbases, ships, and farps on the map. * * @param coalitionId */ getAirbases(coalitionId: number): l_Airbase[]; /** * Returns a table of static objects belonging to the specified coalition. * * @param coalitionId */ getStaticObjects(coalitionId: number): l_StaticObject[]; }