mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-16 19:51:50 +00:00
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>>;
|
||
|
|
}
|