Removing unneeded types.
This commit is contained in:
parent
45533267ce
commit
7dec2bd445
2 changed files with 6 additions and 38 deletions
37
src/@types/journalLines.d.ts
vendored
37
src/@types/journalLines.d.ts
vendored
|
@ -3,29 +3,6 @@ interface journalEntry<eventType = string> {
|
|||
event: eventType,
|
||||
}
|
||||
|
||||
export interface discoveryHonk extends journalEntry<'FSSDiscoveryScan'> {
|
||||
Progress: number,
|
||||
BodyCount: number,
|
||||
NonBodyCount: number,
|
||||
SystemName: string,
|
||||
SystemAddress: number,
|
||||
}
|
||||
|
||||
export interface completedSystemFSSScan extends journalEntry<'FSSAllBodiesFound'> {
|
||||
event: 'FSSAllBodiesFound',
|
||||
SystemName: string,
|
||||
SystemAddress: number,
|
||||
Count: number,
|
||||
}
|
||||
|
||||
export interface dssIndicator extends journalEntry<'SAAScanComplete'> {
|
||||
BodyName: string,
|
||||
SystemAddress: number,
|
||||
BodyID: number,
|
||||
ProbesUsed: number,
|
||||
EfficiencyTarget: number,
|
||||
}
|
||||
|
||||
interface bodyParent {
|
||||
[index: string]: number,
|
||||
}
|
||||
|
@ -131,18 +108,8 @@ export interface planetScan<scanType> extends journalEntry<'Scan'> {
|
|||
WasMapped: boolean,
|
||||
}
|
||||
|
||||
export type autoScan = starScan<'AutoScan'> | asteroidScan<'AutoScan'> | planetScan<'AutoScan'>
|
||||
export type detailedScan = starScan<'Detailed'> & asteroidScan<'Detailed'> & planetScan<'Detailed'>
|
||||
export type discoveryScan = detailedScan
|
||||
export type fssScan = detailedScan
|
||||
export type dssScan = detailedScan
|
||||
|
||||
export interface startFsdJump extends journalEntry<'StartJump'> {
|
||||
JumpType: 'Hyperspace',
|
||||
StarSystem: string,
|
||||
SystemAddress: number,
|
||||
StarClass: string,
|
||||
}
|
||||
export type autoScan = starScan<'AutoScan'>|asteroidScan<'AutoScan'>|planetScan<'AutoScan'>
|
||||
export type detailedScan = starScan<'Detailed'>&asteroidScan<'Detailed'>&planetScan<'Detailed'>
|
||||
|
||||
interface faction {
|
||||
Name: string,
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
import { FSDJump } from '@kayahr/ed-journal';
|
||||
import type { location, navRouteSystem } from '../@types/journalLines';
|
||||
import { FSDJump, ExtendedNavRoute, Location } from '@kayahr/ed-journal';
|
||||
|
||||
import * as _ from 'lodash-es';
|
||||
|
||||
import { Body } from './Body';
|
||||
import { EDSM } from './EDSM';
|
||||
|
||||
type ExtendedNavRouteSystem = (ExtendedNavRoute)['Route'][0];
|
||||
|
||||
export class System {
|
||||
name: string;
|
||||
SystemAddress?: number;
|
||||
|
@ -18,7 +19,7 @@ export class System {
|
|||
estimatedValueMapped?: number;
|
||||
valuableBodies?: Body[];
|
||||
|
||||
constructor(line?: navRouteSystem|FSDJump|location) {
|
||||
constructor(line?: ExtendedNavRouteSystem|FSDJump|Location) {
|
||||
if (!line) {
|
||||
this.name = 'Unknown';
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue