@openscope/validator
Version:
A CLI used to validate an airport definition file used in the [openscope](http://openscope.co) ATC Simulator
86 lines (84 loc) • 1.42 kB
JavaScript
const REQUIRED_KEYS = {
BASE: [],
AIRPORT: [
'icao',
'iata',
'magnetic_north',
'ctr_radius',
'ctr_ceiling',
'initial_alt',
'position',
'rr_radius_nm',
'rr_center',
'has_terrain',
'wind',
'arrivalRunway',
'departureRunway',
'airspace',
'fixes',
'restricted',
'runways',
'airways',
'sids',
'stars',
'spawnPatterns',
'maps',
],
AIRSPACE: [
'ceiling',
'floor',
'airspace_class',
'poly'
],
AIRWAYS: [],
FIXES: [],
MAPS: [],
RADIO: [
'twr',
'app',
'dep'
],
RESTRICTED: [
'name',
'height',
'coordinates'
],
RUNWAYS: [
'name',
'end',
'ils',
'glideslope'
],
SIDS: [
'icao',
'name',
'rwy',
'body',
'exitPoints',
'draw'
],
STARS: [
'icao',
'name',
'rwy',
'body',
'entryPoints',
'draw'
],
SPAWN_PATTERNS: [
'origin',
'destination',
'category',
'route',
'altitude',
'speed',
'method',
'rate',
'airlines'
],
WIND: [
'angle',
'speed'
]
};
module.exports = REQUIRED_KEYS;