1 Star 0 Fork 14

最后一页/cocos-creator-front-frame

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
app.d.ts 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
向前 提交于 2020-10-23 07:30 . 【更新】 优化部分框架代码
interface myWindow extends Window {
wx?: any;
tt?: any;
jsb?: any;
}
declare var window: myWindow;
declare var __filename: string;
declare function require(name: string, str?: string): any;
// declare namespace Editor {
// export function error(msg: any, ...subst: any[]): void;
// export function warn(msg: any, ...subst: any[]): void;
// export function log(msg: string | any, ...subst: any[]): void;
// }
declare namespace cc {
export module App {
export var EventType: { EVENT_APP_INITED: string };
}
export module app {
export function error(msg: any, ...subst: any[]): void;
export function warn(msg: any, ...subst: any[]): void;
export function log(msg: string | any, ...subst: any[]): void;
export function emit(msg: string | any, ...subst: any[]): void;
export function on(msg: string | any, ...subst: any[]): void;
export function once(msg: string | any, ...subst: any[]): void;
export function off(msg: string | any, ...subst: any[]): void;
export var appVersion: string;
export var setting: any;
export var lib: any;
export var tool: any;
export var ecs: any;
export var data: any;
export var config: any;
export var manager: any;
export var Manager: any;
export var appReady: boolean;
export var appInited: boolean;
export var cccReady: boolean;
export var cccInited: boolean;
}
}
declare namespace cc.Node {
export function isNode(node: cc.Node): boolean;
}
// class Node {
// static isNode(node: cc.Node): boolean;
// convertNodeToNodeSpaceAR(node: cc.Node, pos: { x: number, y: number }): cc.Vec2;
// convertNodeToNodeSpace(node: cc.Node, pos: { x: number, y: number }): cc.Vec2;
// convertNodeToParentSpaceAR(node: cc.Node, pos: { x: number, y: number }): cc.Vec2;
// convertNodeToParentSpace(node: cc.Node, pos: { x: number, y: number }): cc.Vec2;
// getComponentsInParent<T extends cc.Component>(type: { prototype: T }): T[];
// getComponentsInParent(className: string): any[];
// getComponentInParent<T extends cc.Component>(type: { prototype: T }): T;
// getComponentInParent(className: string): any;
// }
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/sakuya1/cocos-creator-front-frame.git
git@gitee.com:sakuya1/cocos-creator-front-frame.git
sakuya1
cocos-creator-front-frame
cocos-creator-front-frame
master

搜索帮助