diff options
| author | 2026-01-14 16:38:16 +0800 | |
|---|---|---|
| committer | 2026-01-14 16:38:36 +0800 | |
| commit | 0a933975f7eba48588ee60e338e461155afe9c8d (patch) | |
| tree | 90468b625d074b63252bbe9bbb93bdb5b0fefaeb /ui/src/types | |
| parent | 5677b9beba49acc1fc6feb46ccd07182bed6e994 (diff) | |
| download | DropOut-0a933975f7eba48588ee60e338e461155afe9c8d.tar.gz DropOut-0a933975f7eba48588ee60e338e461155afe9c8d.zip | |
feat: add Fabric and Forge type definitions and update mod.rs for mod loader support
Diffstat (limited to 'ui/src/types')
| -rw-r--r-- | ui/src/types/index.ts | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/ui/src/types/index.ts b/ui/src/types/index.ts index 1f83585..933aab5 100644 --- a/ui/src/types/index.ts +++ b/ui/src/types/index.ts @@ -37,3 +37,62 @@ export interface JavaInstallation { version: string; is_64bit: boolean; } + +// ==================== Fabric Types ==================== + +export interface FabricGameVersion { + version: string; + stable: boolean; +} + +export interface FabricLoaderVersion { + separator: string; + build: number; + maven: string; + version: string; + stable: boolean; +} + +export interface FabricLoaderEntry { + loader: FabricLoaderVersion; + intermediary: { + maven: string; + version: string; + stable: boolean; + }; + launcherMeta: { + version: number; + mainClass: { + client: string; + server: string; + }; + }; +} + +export interface InstalledFabricVersion { + id: string; + minecraft_version: string; + loader_version: string; + path: string; +} + +// ==================== Forge Types ==================== + +export interface ForgeVersion { + version: string; + minecraft_version: string; + recommended: boolean; + latest: boolean; +} + +export interface InstalledForgeVersion { + id: string; + minecraft_version: string; + forge_version: string; + path: string; +} + +// ==================== Mod Loader Type ==================== + +export type ModLoaderType = "vanilla" | "fabric" | "forge"; + |