Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: north pole announcements #237

Merged
merged 1 commit into from
Jun 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading