新增Debug辅助Insist
This commit is contained in:
17
source/bin/framework.d.ts
vendored
17
source/bin/framework.d.ts
vendored
@@ -93,12 +93,27 @@ declare module es {
|
||||
protected update(currentTime?: number): Promise<void>;
|
||||
}
|
||||
}
|
||||
declare module es {
|
||||
enum LogType {
|
||||
error = 0,
|
||||
warn = 1,
|
||||
log = 2,
|
||||
info = 3,
|
||||
trace = 4
|
||||
}
|
||||
class Debug {
|
||||
static warnIf(condition: boolean, format: string, ...args: any[]): void;
|
||||
static warn(format: string, ...args: any[]): void;
|
||||
static error(format: string, ...args: any[]): void;
|
||||
static log(type: LogType, format: string, ...args: any[]): void;
|
||||
}
|
||||
}
|
||||
declare module es {
|
||||
/**
|
||||
* 我们在这里存储了各种系统的默认颜色,如对撞机调试渲染、Debug.drawText等。
|
||||
* 命名方式尽可能采用CLASS-THING,以明确它的使用位置
|
||||
*/
|
||||
class Debug {
|
||||
class DebugDefault {
|
||||
static debugText: number;
|
||||
static colliderBounds: number;
|
||||
static colliderEdge: number;
|
||||
|
||||
Reference in New Issue
Block a user