28 lines
467 B
TypeScript
28 lines
467 B
TypeScript
export {};
|
|
|
|
declare global {
|
|
namespace NodeJS {
|
|
interface Global {
|
|
NODE_ENV: string
|
|
ROOT_PATH: string
|
|
$cfg: any
|
|
}
|
|
}
|
|
}
|
|
/**
|
|
* GeneralRoom 扩展方法
|
|
*/
|
|
import { Room } from "colyseus";
|
|
declare module "colyseus" {
|
|
interface Room {
|
|
/**
|
|
* 广播玩家加入房间
|
|
* @param data
|
|
* @param options
|
|
*/
|
|
bUserJoin(data?: any, options?: any): void;
|
|
}
|
|
}
|
|
|
|
|