refactor: stock & vehicle typings

This commit is contained in:
2024-04-15 18:32:19 +02:00
parent 61c7f15fcf
commit 541572e415
13 changed files with 175 additions and 133 deletions
+5 -11
View File
@@ -54,11 +54,12 @@ export interface ILocomotive {
constructionType: string;
cabinType: string;
maxSpeed: number;
restrictions: Record<RestrictionType, any>;
weight: number;
length: number;
coldStart: boolean;
doubleManned: boolean;
sponsorOnlyTimestamp: number;
teamOnly: boolean;
}
export interface ICarWagon {
@@ -66,25 +67,18 @@ export interface ICarWagon {
group: WagonGroupType;
constructionType: string;
loadable: boolean;
restrictions: Record<RestrictionType, any>;
maxSpeed: number;
weight: number;
length: number;
cargoTypes: ICargo[];
sponsorOnlyTimestamp: number;
teamOnly: boolean;
}
export interface IStock {
id: string;
type: string;
group: LocoGroupType | WagonGroupType;
constructionType: string;
length: number;
weight: number;
maxSpeed: number;
vehicleRef: IVehicle;
cargo?: ICargo;
isLoco: boolean;
restrictions: Record<RestrictionType, any>;
count: number;
}
export interface IRealComposition {