1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-16 03:31:52 +00:00
tobspr_shapez.io/src/js/mods/mod_metadata.d.ts
Даниїл Григор'єв ad8e39bdf4
WIP: Basic ASAR modding in renderer
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.
2025-04-12 20:06:03 +03:00

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>>;
}