feat: xbox360+ps3+java->windows64 world conversion (#145)

Co-authored-by: str1k3r <[email protected]>
This commit is contained in:
/home/neo
2026-08-07 19:01:24 +03:00
committed by GitHub
co-authored by str1k3r
parent cb684177fe
commit d536a6590b
52 changed files with 8530 additions and 476 deletions
+21 -20
View File
@@ -12,9 +12,22 @@ export interface SessionData {
account: LceOnlineAccount;
}
export interface FriendRequest {
export interface InviteEntry {
inviteid: string;
from: { uuid: string; displayName: string; username: string };
sessionid: string;
}
export interface SocialEntry {
username: string;
displayName: string;
uuid: string;
};
export interface SocialList {
friends: SocialEntry[];
friendRequests: SocialEntry[];
blocked: SocialEntry[];
}
export class LceOnlineService {
@@ -220,25 +233,13 @@ export class LceOnlineService {
}
}
async getSocialLists(): Promise<{
friends: string[];
requests: string[];
blocked: string[];
}> {
const raw: string = await this.request<string>(
"POST",
"/getSocialLists",
null,
);
if (typeof raw !== "string") {
return { friends: [], requests: [], blocked: [] };
}
const withoutPrefix = raw.startsWith("-") ? raw.slice(1) : raw;
const parts = withoutPrefix.split("|");
async getSocialLists() {
const res = await this.request<SocialList>("GET", "/getSocialLists", null);
if (typeof res === "string") throw new Error(res);
return {
friends: parts[0] ? parts[0].split(",").filter(Boolean) : [],
requests: parts[1] ? parts[1].split(",").filter(Boolean) : [],
blocked: parts[2] ? parts[2].split(",").filter(Boolean) : [],
friends: res?.friends ?? [],
requests: res?.friendRequests ?? [],
blocked: res?.blocked ?? [],
};
}
@@ -295,7 +296,7 @@ export class LceOnlineService {
async getInvites(): Promise<
Array<{
inviteid: string;
from: { uuid: string; username: string };
from: { uuid: string; displayName: string; username: string };
sessionid: string;
}>
> {