feat: Create Instance, Auto Instance Region

This commit is contained in:
2026-06-28 23:31:02 +07:00
parent 23748b15ae
commit d9ed86fe77
24 changed files with 865 additions and 19 deletions
+10
View File
@@ -1,5 +1,15 @@
import type { InstanceRegion } from "./instance";
export type PreferredRegion = InstanceRegion | "auto";
export interface AppConfig {
version: string;
gamePath: string | null;
detectedGamePath: string | null;
preferredRegion: PreferredRegion;
}
export interface RegionPing {
region: InstanceRegion;
ms: number | null;
}
+11
View File
@@ -12,4 +12,15 @@ export interface Instance {
full: boolean;
queueEnabled: boolean;
queueSize: number;
secureName?: string;
shortName?: string | null;
}
export type CreateInstanceType = "public" | "friends+" | "friends" | "invite" | "invite+";
export type InstanceRegion = "us" | "use" | "eu" | "jp";
export interface CreateInstanceInput {
worldId: string;
type: CreateInstanceType;
region: InstanceRegion;
}