Skip to content

Commit

Permalink
Add additional features for aircraft config
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio committed Nov 7, 2024
1 parent c9171a2 commit 176b09f
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/defs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ export enum AircraftFeature {
WingLights = 6,
Flaps = 7,
APU = 8,
Doors = 9,
Seatbelts = 10,
EmergencyLights = 11,
AntiIce = 12,
Battery = 13,
Packs = 14,
}
/** The simtype for the rule file */
export enum AircraftConfigSimType {
Expand Down
28 changes: 28 additions & 0 deletions src/interface/aircraft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,32 @@ export abstract class AircraftConfig {
wingLights(...args: any): FeatureState {
return null
}

apu(...args: any): FeatureState {
return null
}

doors(...args: any): FeatureState {
return null
}

seatbelts(...args: any): FeatureState {
return null
}

emergencyLights(...args: any): FeatureState {
return null
}

antiIce(...args: any): FeatureState {
return null
}

battery(...args: any): FeatureState {
return null
}

packs(...args: any): FeatureState {
return null
}
}
4 changes: 4 additions & 0 deletions src/scripts/test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
*
*/
export default class ExampleScript {}
3 changes: 3 additions & 0 deletions src/types/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { EngineType } from '../defs'
import { AircraftFeature } from '../defs'
import { AircraftType } from '../defs'
import { FlightPlanType } from '../defs'
import { GateType } from '../defs'
Expand Down Expand Up @@ -35,6 +36,8 @@ export interface Telemetry {
engineRpm: RotationalSpeed
/** The type of engine */
engineType: EngineType
/** A dictionary of the various aircraft features and their values */
features: { [key in AircraftFeature]: boolean }
/** Flap position, from 0 */
flaps: number
/** The current fuel quantity (weight) */
Expand Down

0 comments on commit 176b09f

Please sign in to comment.