Get Versions
This commit is contained in:
@@ -1,5 +1,15 @@
|
|||||||
import { invoke } from "@tauri-apps/api/core";
|
import { invoke } from "@tauri-apps/api/core";
|
||||||
import { LauncherSettings, Mod } from "./Types";
|
import { GameVersion, LauncherSettings, Mod } from "./Types";
|
||||||
|
|
||||||
|
// --- Versions ---
|
||||||
|
export async function getVersions(): Promise<GameVersion[]> {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
id: "1.21.4",
|
||||||
|
name: "Fabric 1.21.4",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
// --- Mods ---
|
// --- Mods ---
|
||||||
export async function getInstalledMods(versionId: string): Promise<Mod[]> {
|
export async function getInstalledMods(versionId: string): Promise<Mod[]> {
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ export interface Mod {
|
|||||||
export interface GameVersion {
|
export interface GameVersion {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
release_date: string;
|
|
||||||
type: "release" | "snapshot";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LauncherSettings {
|
export interface LauncherSettings {
|
||||||
|
|||||||
Reference in New Issue
Block a user