Commit 858911d9 authored by Sophia's avatar Sophia

add rooms

parent 9e525899
...@@ -80,6 +80,42 @@ interface YGOProMessagesHelperInstance { ...@@ -80,6 +80,42 @@ interface YGOProMessagesHelperInstance {
handleBuffer(messageBuffer: Buffer, direction: string, protoFilter?: string[], params?: any): Promise<HandleResult>; handleBuffer(messageBuffer: Buffer, direction: string, protoFilter?: string[], params?: any): Promise<HandleResult>;
} }
interface Room {
duel_stage: number;
name: string;
hostinfo: {
rule: number;
mode: number;
duel_rule: number;
no_check_deck: boolean;
no_shuffle_deck: boolean;
start_lp: number;
start_hand: number;
draw_count: number;
lflist: number;
time_limit: number;
};
winner_name: string;
scores: { [userName: string]: number };
winnerNames?: string[];
dueling_players: Array<{
ip: string;
name: string;
lang: string;
pass: string;
join_time: moment.Moment;
pos: number;
main: number[];
side: number[];
}>;
replays: Array<Buffer>;
arena?: "athletic" | "entertain";
random_type?: string;
windbot?: boolean;
}
type Dictionary<T> = { [key: string]: T }; type Dictionary<T> = { [key: string]: T };
type ReloadI18NResult = { regex: RegExp; text: string }; type ReloadI18NResult = { regex: RegExp; text: string };
type FollowHandler = (buffer: Buffer, info: Dictionary<any>, client: Client, server: any, data: Dictionary<any>) => Promise<boolean>; type FollowHandler = (buffer: Buffer, info: Dictionary<any>, client: Client, server: any, data: Dictionary<any>) => Promise<boolean>;
...@@ -115,3 +151,5 @@ interface YGOPro { ...@@ -115,3 +151,5 @@ interface YGOPro {
} }
declare const ygopro: YGOPro; declare const ygopro: YGOPro;
declare const ROOM_all: Array<Room>;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment