@cc-component/cc-core 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"ver": "4.0.24",
|
|
3
|
-
"importer": "typescript",
|
|
4
|
-
"imported": true,
|
|
5
|
-
"uuid": "be82897c-95e5-4d69-9c19-4ff84d7f02eb",
|
|
6
|
-
"files": [],
|
|
7
|
-
"subMetas": {},
|
|
8
|
-
"userData": {}
|
|
9
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"ver": "4.0.24",
|
|
3
|
+
"importer": "typescript",
|
|
4
|
+
"imported": true,
|
|
5
|
+
"uuid": "be82897c-95e5-4d69-9c19-4ff84d7f02eb",
|
|
6
|
+
"files": [],
|
|
7
|
+
"subMetas": {},
|
|
8
|
+
"userData": {}
|
|
9
|
+
}
|
|
@@ -290,7 +290,7 @@ export class ResourceManager {
|
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
292
|
// 检查资源是否已加载
|
|
293
|
-
let asset = bundle.get(path);
|
|
293
|
+
let asset = bundle.get(path, type);
|
|
294
294
|
|
|
295
295
|
if (asset) {
|
|
296
296
|
//Logger.debug('已加载==', asset.refCount)
|
|
@@ -302,7 +302,7 @@ export class ResourceManager {
|
|
|
302
302
|
|
|
303
303
|
// 加载资源
|
|
304
304
|
return new Promise<T>((resolve, reject) => {
|
|
305
|
-
bundle.load(path, (err, asset) => {
|
|
305
|
+
bundle.load(path, type, (err, asset) => {
|
|
306
306
|
if (err) {
|
|
307
307
|
console.error(`${bundleName}-加载资源失败: ${path}`);
|
|
308
308
|
resolve(null);
|
|
@@ -19,6 +19,7 @@ import { LayerType } from "../config/LayerType";
|
|
|
19
19
|
import { ELoggerLevel } from "../lib/logger/ELoggerLevel";
|
|
20
20
|
import { SkeletonAnim } from "../home/BaseSkeleton";
|
|
21
21
|
import { Tools } from "../home/Tools";
|
|
22
|
+
import { ecs } from "../lib/ecs/ECS";
|
|
22
23
|
|
|
23
24
|
export class App {
|
|
24
25
|
/**当前bundle */
|
|
@@ -285,11 +286,12 @@ export class App {
|
|
|
285
286
|
App.Ins.openedWindowsConfig.set(className, config);
|
|
286
287
|
}
|
|
287
288
|
//@ts-ignore
|
|
288
|
-
|
|
289
|
+
config.name = className;
|
|
289
290
|
//@ts-ignore
|
|
290
291
|
view.config = config;
|
|
291
292
|
//@ts-ignore
|
|
292
293
|
if (param) view.param = param;
|
|
294
|
+
|
|
293
295
|
resolve(view);
|
|
294
296
|
} catch (error) {
|
|
295
297
|
console.error("加载窗口失败:", config.path, error);
|
|
@@ -328,7 +330,7 @@ export class App {
|
|
|
328
330
|
* eventName:关闭方法名称
|
|
329
331
|
* param:参数
|
|
330
332
|
*/
|
|
331
|
-
const closeEvent: { eventName: string, param?: any } = view.closeEvent
|
|
333
|
+
const closeEvent: { eventName: string, param?: any } = view.closeEvent?.()
|
|
332
334
|
const close: Function = view[closeEvent.eventName]
|
|
333
335
|
if (close) { close.call(view, closeEvent.param) }
|
|
334
336
|
if (view && view.node && view.node.isValid) view.node.destroy(); // 关闭窗口
|
package/assets/core/lib/ecs.meta
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"ver": "1.2.0",
|
|
3
|
-
"importer": "directory",
|
|
4
|
-
"imported": true,
|
|
5
|
-
"uuid": "becc7741-24ad-4102-b41f-b4e76ec62918",
|
|
6
|
-
"files": [],
|
|
7
|
-
"subMetas": {},
|
|
8
|
-
"userData": {}
|
|
9
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"ver": "1.2.0",
|
|
3
|
+
"importer": "directory",
|
|
4
|
+
"imported": true,
|
|
5
|
+
"uuid": "becc7741-24ad-4102-b41f-b4e76ec62918",
|
|
6
|
+
"files": [],
|
|
7
|
+
"subMetas": {},
|
|
8
|
+
"userData": {}
|
|
9
|
+
}
|
package/index.ts.meta
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"ver": "4.0.24",
|
|
3
|
-
"importer": "typescript",
|
|
4
|
-
"imported": true,
|
|
5
|
-
"uuid": "7a336b7d-79a3-48ef-9451-d925e367809b",
|
|
6
|
-
"files": [],
|
|
7
|
-
"subMetas": {},
|
|
8
|
-
"userData": {}
|
|
9
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"ver": "4.0.24",
|
|
3
|
+
"importer": "typescript",
|
|
4
|
+
"imported": true,
|
|
5
|
+
"uuid": "7a336b7d-79a3-48ef-9451-d925e367809b",
|
|
6
|
+
"files": [],
|
|
7
|
+
"subMetas": {},
|
|
8
|
+
"userData": {}
|
|
9
|
+
}
|
package/package.json
CHANGED
package/package.json.meta
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"ver": "2.0.1",
|
|
3
|
-
"importer": "json",
|
|
4
|
-
"imported": true,
|
|
5
|
-
"uuid": "561e76c1-e517-4977-ac87-442704e3de8f",
|
|
6
|
-
"files": [
|
|
7
|
-
".json"
|
|
8
|
-
],
|
|
9
|
-
"subMetas": {},
|
|
10
|
-
"userData": {}
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"ver": "2.0.1",
|
|
3
|
+
"importer": "json",
|
|
4
|
+
"imported": true,
|
|
5
|
+
"uuid": "561e76c1-e517-4977-ac87-442704e3de8f",
|
|
6
|
+
"files": [
|
|
7
|
+
".json"
|
|
8
|
+
],
|
|
9
|
+
"subMetas": {},
|
|
10
|
+
"userData": {}
|
|
11
|
+
}
|