Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 4 additions & 48 deletions packages/core/src/interfaces/Profile.ts
Original file line number Diff line number Diff line change
@@ -1,41 +1,11 @@
export interface Profile {
//Don`t touch
configVersion: number

// Profile information
uuid: string
sortIndex: number
servers: ProfileServerConfig[]

// Client
javaVersion: number
version: string
clientDir: string
assetIndex: string
libraries: ProfileLibrary[]
gameJar: string
mainClass: string
jvmArgs: string[]
clientArgs: string[]

// Updates
update: string[]
updateVerify: string[]
updateExclusions: string[]
// TODO Продумать опционалки
// updateOptional: ProfileOptional[]

// Whitelist
whiteListType: "null" | "uuids" | "permissions"
whiteListPermisson?: number // TODO permission в виде чего?
whiteListUUIDs?: string[] // Список игроков по uuid
}
import * as proto from "@aurora-launcher/proto";
export interface Profile extends proto.ProfileResponse {}

export interface ProfileLibrary {
path: string
sha1: string
type: "library" | "native"
rules?: LibraryRule[]
rules: LibraryRule[]
ignoreClassPath?: boolean
}

Expand All @@ -61,21 +31,7 @@ export enum Name {
Windows = "windows",
}

export interface ProfileServerConfigBase {
title: string
}
export interface ProfileServerHostnameConfig extends ProfileServerConfigBase {
hostname: string
}

export interface ProfileServerAddressConfig extends ProfileServerConfigBase {
ip: string
port: number
}

export type ProfileServerConfig =
| ProfileServerHostnameConfig
| ProfileServerAddressConfig
export type ProfileServerConfig = proto.ServerConfig;

// export interface ProfileOptional {
// id: number
Expand Down
6 changes: 2 additions & 4 deletions packages/core/src/interfaces/api/ServersData.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { ProfileServerConfig } from ".."
import * as proto from "@aurora-launcher/proto";

export type Server = ProfileServerConfig & {
profileUUID: string
}
export type Server = proto.Server;

export type ServersResponseData = Server[]
66 changes: 66 additions & 0 deletions packages/proto/dist/google/protobuf/empty.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading