@kayahr/ed-journal
Version:
Typescript library to read/watch the player journal of Frontier's game Elite Dangerous
30 lines (25 loc) • 740 B
text/typescript
/*
* Copyright (C) 2022 Klaus Reimer <k@ailis.de>
* See LICENSE.md for licensing information.
*/
import type { JournalEvent } from "../../JournalEvent.js";
export interface OldBuyMicroResources extends JournalEvent<"BuyMicroResources"> {
Name: string;
Name_Localised: string;
Category: string;
Count: number;
Price: number;
MarketID: number;
}
export interface NewBuyMicroResources extends JournalEvent<"BuyMicroResources"> {
TotalCount: number;
MicroResources: Array<{
Name: string;
Name_Localised: string;
Category: string;
Count: number;
}>;
Price: number;
MarketID: number;
}
export type BuyMicroResources = OldBuyMicroResources | NewBuyMicroResources;