Skip to content

Commit

Permalink
Merge pull request #237 from davwheat/dw/north-pole
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat authored Jun 8, 2024
2 parents 9d9da1f + c246816 commit 0b9f398
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion src/announcement-data/systems/stations/AmeyPhil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,12 @@ export default class AmeyPhil extends StationAnnouncementSystem {
>[]
disruptedTrain: ICustomAnnouncementPreset<IDisruptedTrainAnnouncementOptions>[]
}> {
return {
const presets: {
nextTrain: ICustomAnnouncementPreset<
INextTrainAnnouncementOptions & IStandingTrainAnnouncementOptions & IPlatformAlterationAnnouncementOptions
>[]
disruptedTrain: ICustomAnnouncementPreset<IDisruptedTrainAnnouncementOptions>[]
} = {
nextTrain: [
{
name: '12:28 | SN Littlehampton to Brighton',
Expand Down Expand Up @@ -487,6 +492,30 @@ export default class AmeyPhil extends StationAnnouncementSystem {
},
],
}

presets.nextTrain.push({
name: '23:45 | Calling at every station (needs a powerful device)',
state: {
chime: this.DEFAULT_CHIME,
platform: '1',
newPlatform: '1',
oldPlatform: '18',
announceOldPlatform: true,
firstClassLocation: 'middle',
isDelayed: false,
mindTheGap: true,
thisStationCode: 'North Pole International',
hour: '23',
min: '45',
toc: '',
terminatingStationCode: 'North Pole International',
vias: ['SLO'].map(stationItemCompleter),
callingAt: this.STATIONS.map(stationItemCompleter),
coaches: '1 coach',
},
})

return presets
}

protected get AVAILABLE_TOCS() {
Expand Down

0 comments on commit 0b9f398

Please sign in to comment.