Files
stacjownik/src/scripts/interfaces/Station.ts
T
2021-12-31 16:07:34 +01:00

97 lines
1.9 KiB
TypeScript

import ScheduledTrain from "./ScheduledTrain";
export default interface Station {
name: string;
generalInfo?: {
name: string;
url: string;
reqLevel: number;
supportersOnly: boolean;
lines: string;
project: string;
SBL: string;
TWB: string;
signalType: string;
controlType: string;
default: boolean;
nonPublic: boolean;
unavailable: boolean;
routes: {
oneWay: { catenary: number; noCatenary: number };
twoWay: { catenary: number; noCatenary: number };
};
checkpoints: {
checkpointName: string;
scheduledTrains: ScheduledTrain[];
}[];
};
onlineInfo?: {
hash: string;
name: string;
maxUsers: number;
currentUsers: number;
spawns: { spawnName: string; spawnLength: number }[];
dispatcherRate: number;
dispatcherName: string;
dispatcherExp: number;
dispatcherId: number;
dispatcherIsSupporter: boolean;
statusTimestamp: number;
statusTimeString: string;
statusID: string;
stationTrains?: {
driverName: string;
trainNo: number;
stopStatus?: string;
}[];
scheduledTrains?: ScheduledTrain[];
}
// stationName: string;
// stationHash: string;
// stationURL: string;
// maxUsers: number;
// currentUsers: number;
// stationLines: string;
// stationProject: string;
// reqLevel: number;
// supportersOnly: boolean;
// SBL: string;
// TWB: string;
// signalType: string;
// controlType: string;
// default: boolean;
// nonPublic: boolean;
// unavailable: boolean;
// routes: {
// oneWay: { catenary: number; noCatenary: number };
// twoWay: { catenary: number; noCatenary: number };
// };
// checkpoints: {
// checkpointName: string;
// scheduledTrains: ScheduledTrain[];
// }[];
}