mirror of
https://github.com/Spythere/station-manager-2.0.git
synced 2026-05-03 13:38:13 +00:00
feature: routesInfo update
This commit is contained in:
+15
-4
@@ -10,14 +10,14 @@ export type ChangeProp =
|
||||
| 'signalType'
|
||||
| 'controlType'
|
||||
| 'SUP'
|
||||
| 'routes'
|
||||
| 'routesInfo'
|
||||
| 'checkpoints'
|
||||
| 'authors'
|
||||
| 'availability';
|
||||
|
||||
export enum HeaderTypes {
|
||||
name = 'Nazwa',
|
||||
abbr = "Skrót posterunku",
|
||||
abbr = 'Skrót posterunku',
|
||||
url = 'URL',
|
||||
hash = 'Hash',
|
||||
lines = 'Linie',
|
||||
@@ -28,7 +28,7 @@ export enum HeaderTypes {
|
||||
controlType = 'Sterowanie',
|
||||
SUP = 'SUP',
|
||||
authors = 'Autorzy',
|
||||
routes = 'Szlaki',
|
||||
routesInfo = 'Szlaki',
|
||||
checkpoints = 'Posterunki',
|
||||
availability = 'Dostępność',
|
||||
toRemove = 'Usuń',
|
||||
@@ -42,6 +42,16 @@ export enum AvailabilityTypes {
|
||||
'unavailable' = 'niedostępna',
|
||||
}
|
||||
|
||||
export interface SceneryRoutesInfo {
|
||||
routeName: string;
|
||||
isElectric: boolean;
|
||||
isRouteSBL: boolean;
|
||||
isInternal: boolean;
|
||||
routeSpeed: number;
|
||||
routeLength: number;
|
||||
routeTracks: number;
|
||||
}
|
||||
|
||||
export interface SceneryRowItem {
|
||||
id: string;
|
||||
hash: string;
|
||||
@@ -56,13 +66,14 @@ export interface SceneryRowItem {
|
||||
controlType: string;
|
||||
SUP: boolean;
|
||||
routes: string;
|
||||
routesInfo: SceneryRoutesInfo[];
|
||||
checkpoints: string;
|
||||
authors: string;
|
||||
availability: Availability;
|
||||
}
|
||||
|
||||
export type ChangeItem = {
|
||||
[key in ChangeProp]?: string | number | boolean | null;
|
||||
[key in ChangeProp]?: any;
|
||||
} & {
|
||||
id: string;
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user