mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
95 lines
1.8 KiB
TypeScript
95 lines
1.8 KiB
TypeScript
import ScheduledTrain from "./ScheduledTrain";
|
|
import StationRoutes from "./StationRoutes";
|
|
|
|
export default interface Station {
|
|
name: string;
|
|
|
|
generalInfo?: {
|
|
name: string;
|
|
url: string;
|
|
|
|
reqLevel: number;
|
|
// supportersOnly: boolean;
|
|
|
|
lines: string;
|
|
project: string;
|
|
|
|
signalType: string;
|
|
controlType: string;
|
|
|
|
SUP: boolean;
|
|
|
|
default: boolean;
|
|
nonPublic: boolean;
|
|
unavailable: boolean;
|
|
|
|
routes: StationRoutes;
|
|
|
|
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[];
|
|
// }[];
|
|
|
|
}
|