mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-16 03:31:52 +00:00
Also fix a few issues in Electron code. This is not as polished yet, UI from old mod support was reused for now and is likely broken. Mods can be loaded, but there isn't much QoL around the support for now.
39 lines
736 B
TypeScript
39 lines
736 B
TypeScript
import { Mod } from "./mod";
|
|
|
|
export interface ModAuthor {
|
|
name: string;
|
|
website?: string;
|
|
}
|
|
|
|
export interface ModMetadata {
|
|
// format: 1;
|
|
id: string;
|
|
entry: string;
|
|
name: string;
|
|
description?: string;
|
|
authors: ModAuthor[];
|
|
version: string;
|
|
savegameResident: boolean;
|
|
website?: string;
|
|
source?: string;
|
|
}
|
|
|
|
export type ModSource = "user" | "distro" | "dev";
|
|
|
|
export interface ModQueueEntry {
|
|
source: ModSource;
|
|
file: string;
|
|
disabled: boolean;
|
|
metadata: ModMetadata;
|
|
}
|
|
|
|
export interface ModInfo {
|
|
source: ModSource;
|
|
file: string;
|
|
mod: Mod;
|
|
}
|
|
|
|
export interface FrozenModMetadata extends Readonly<ModMetadata> {
|
|
authors: ReadonlyArray<Readonly<ModAuthor>>;
|
|
}
|