File tree 4 files changed +41
-0
lines changed
4 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,12 @@ export enum AircraftFeature {
121
121
WingLights = 6 ,
122
122
Flaps = 7 ,
123
123
APU = 8 ,
124
+ Doors = 9 ,
125
+ Seatbelts = 10 ,
126
+ EmergencyLights = 11 ,
127
+ AntiIce = 12 ,
128
+ Battery = 13 ,
129
+ Packs = 14 ,
124
130
}
125
131
/** The simtype for the rule file */
126
132
export enum AircraftConfigSimType {
Original file line number Diff line number Diff line change @@ -135,4 +135,32 @@ export abstract class AircraftConfig {
135
135
wingLights ( ...args : any ) : FeatureState {
136
136
return null
137
137
}
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
+ }
138
166
}
Original file line number Diff line number Diff line change
1
+ /**
2
+ *
3
+ */
4
+ export default class ExampleScript { }
Original file line number Diff line number Diff line change 1
1
import { EngineType } from '../defs'
2
+ import { AircraftFeature } from '../defs'
2
3
import { AircraftType } from '../defs'
3
4
import { FlightPlanType } from '../defs'
4
5
import { GateType } from '../defs'
@@ -35,6 +36,8 @@ export interface Telemetry {
35
36
engineRpm : RotationalSpeed
36
37
/** The type of engine */
37
38
engineType : EngineType
39
+ /** A dictionary of the various aircraft features and their values */
40
+ features : { [ key in AircraftFeature ] : boolean }
38
41
/** Flap position, from 0 */
39
42
flaps : number
40
43
/** The current fuel quantity (weight) */
You can’t perform that action at this time.
0 commit comments