mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 11:02:40 +08:00
9f89b0ef24
* Temp * temp * move ui core * Arrange ui and terrain * Fix import path for all modules except core * Move primitives into core * Fix debug.getError * Move audio-downloader to audio module * export game from game.ts * Migrate load-pipeline to ts * Fix core modules and cleanup * Move animation into core * Fix module exports * Fix director issue * Remove most cc.director usage * Fix ts issues * Fix issues for unit test and editor running * Revert removing deprecated import * tweaks * tweaks * Fix ci * Fix ci * Add modules in module division * Upgrade coordinates-converts-utils
41 lines
861 B
TypeScript
41 lines
861 B
TypeScript
/**
|
|
* @hidden
|
|
*/
|
|
|
|
import * as debug from './platform/debug';
|
|
import { _normalize, basename, changeBasename, changeExtname, dirname, extname, getSeperator, join, mainFileName, stripSep } from './utils/path';
|
|
// import Pipeline from './load-pipeline/pipeline';
|
|
// import Url from './load-pipeline/url';
|
|
|
|
// cc.Pipeline = Pipeline;
|
|
// cc.url = Url;
|
|
// cc.AssetLibrary = AssetLibrary;
|
|
|
|
// CCDebug.js
|
|
cc.log = debug.log;
|
|
cc.warn = debug.warn;
|
|
cc.error = debug.error;
|
|
cc.assert = debug.assert;
|
|
cc._throw = debug._throw;
|
|
cc.logID = debug.logID;
|
|
cc.warnID = debug.warnID;
|
|
cc.errorID = debug.errorID;
|
|
cc.assertID = debug.assertID;
|
|
cc.debug = debug;
|
|
|
|
// path.js
|
|
cc.path = {
|
|
join,
|
|
extname,
|
|
mainFileName,
|
|
basename,
|
|
dirname,
|
|
changeExtname,
|
|
changeBasename,
|
|
_normalize,
|
|
stripSep,
|
|
get sep () {
|
|
return getSeperator();
|
|
},
|
|
};
|