generated from phpvms/acars-pdk
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
178 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { AircraftConfigSimType, AircraftFeature, FeatureType } from '../defs' | ||
import { | ||
AircraftConfig, | ||
FeatureAddresses, | ||
FeatureState, | ||
FlapNames, | ||
Meta, | ||
} from '../interface/aircraft' | ||
|
||
export default class Example extends AircraftConfig { | ||
meta: Meta = { | ||
id: 'example', | ||
name: 'example', | ||
sim: AircraftConfigSimType.MsFs, | ||
enabled: true, | ||
priority: 2, | ||
} | ||
|
||
features: FeatureAddresses = { | ||
[AircraftFeature.BeaconLights]: { | ||
example_lvar: FeatureType.Int, | ||
}, | ||
} | ||
|
||
flapNames: FlapNames = { | ||
0: 'UP', | ||
1: 'CONF 1', | ||
} | ||
|
||
/** | ||
* | ||
* @param {string} title The title of the aircraft, lowercased | ||
* @param {string=} icao The ICAO of the aircraft. Might not be available | ||
* @param {string=} config_path Path to the aircraft config. Might not be there | ||
* @return {boolean} | ||
*/ | ||
match(title: string, icao: string, config_path: string): boolean { | ||
return ['example', 'aircraft'].every((w) => title.includes(w)) | ||
} | ||
|
||
beaconLights(): FeatureState { | ||
return null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.