代码拉取完成,页面将自动刷新
/// <reference path="creator.d.ts" />
declare namespace QM {
/** 位置 */
enum QPoint {
/** 下 */
Bottom = 1,
/** 右 */
Right = 2,
/** 左 */
Left = 3,
}
type Card = {
name: string;
color?: string;
title: string;
};
var CName: string[];
var CColor: string[];
type QEvent = {
type: string;
cmd?: string;
data?: any;
};
class Socket {
static readonly Instance: Socket;
private readonly dial;
private websocket;
private interval;
private events;
constructor();
on(func: Function, target?: any): void;
off(func: Function, target?: any): void;
connect(): void;
frame(): void;
Send(data: string | object): void;
onOpen(ev: Event): void;
onMessage(ev: MessageEvent): void;
onClose(ev: CloseEvent): void;
onError(ev: Event): void;
bubbleUp(ev: QEvent): void;
}
type Character = {
uid: number;
username: string;
point: QPoint;
fd: number;
};
/**
* 房间管理
*/
class Room {
static readonly Instance: Room;
private _roomId;
private _landLord;
characters: Character[];
constructor();
roomId: number;
landLord: number;
addCharacter(ch: Character): false | undefined;
getCharacterForPoint(point: QPoint): Character | null;
getCharacterForUid(uid: number): Character | null;
in_Character(ch: Character): boolean;
removeCharacter(ch: Character): Character | null;
getCharacters(): Character[];
clear(): void;
readonly length: number;
}
var User: Character;
class JSManager {
static readonly instance: JSManager;
objs: {
[key: string]: any;
};
setClass<T>(fun: Function, obj: T): void;
getClass<T>(fun: Function): T;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。