Skip to content

Commit 176b09f

Browse files
committed
Add additional features for aircraft config
1 parent c9171a2 commit 176b09f

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed

src/defs.ts

+6
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ export enum AircraftFeature {
121121
WingLights = 6,
122122
Flaps = 7,
123123
APU = 8,
124+
Doors = 9,
125+
Seatbelts = 10,
126+
EmergencyLights = 11,
127+
AntiIce = 12,
128+
Battery = 13,
129+
Packs = 14,
124130
}
125131
/** The simtype for the rule file */
126132
export enum AircraftConfigSimType {

src/interface/aircraft.ts

+28
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,32 @@ export abstract class AircraftConfig {
135135
wingLights(...args: any): FeatureState {
136136
return null
137137
}
138+
139+
apu(...args: any): FeatureState {
140+
return null
141+
}
142+
143+
doors(...args: any): FeatureState {
144+
return null
145+
}
146+
147+
seatbelts(...args: any): FeatureState {
148+
return null
149+
}
150+
151+
emergencyLights(...args: any): FeatureState {
152+
return null
153+
}
154+
155+
antiIce(...args: any): FeatureState {
156+
return null
157+
}
158+
159+
battery(...args: any): FeatureState {
160+
return null
161+
}
162+
163+
packs(...args: any): FeatureState {
164+
return null
165+
}
138166
}

src/scripts/test.ts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
*
3+
*/
4+
export default class ExampleScript {}

src/types/types.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { EngineType } from '../defs'
2+
import { AircraftFeature } from '../defs'
23
import { AircraftType } from '../defs'
34
import { FlightPlanType } from '../defs'
45
import { GateType } from '../defs'
@@ -35,6 +36,8 @@ export interface Telemetry {
3536
engineRpm: RotationalSpeed
3637
/** The type of engine */
3738
engineType: EngineType
39+
/** A dictionary of the various aircraft features and their values */
40+
features: { [key in AircraftFeature]: boolean }
3841
/** Flap position, from 0 */
3942
flaps: number
4043
/** The current fuel quantity (weight) */

0 commit comments

Comments
 (0)