dzkcc-mflow 0.0.1-beta.2 → 0.0.1-beta.5
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.
- package/dist/App.d.ts +1 -1
- package/dist/App.js +1 -1
- package/dist/core/Core.d.ts +1 -2
- package/dist/core/Core.js +1 -2
- package/dist/core/Decorators.d.ts +2 -1
- package/dist/core/Decorators.js +1 -1
- package/dist/core/ICocosResManager.d.ts +1 -1
- package/dist/libs/BaseView.d.ts +1 -1
- package/dist/libs/Broadcaster.d.ts +1 -1
- package/dist/libs/CocosCore.d.ts +1 -0
- package/dist/libs/CocosCore.js +3 -3
- package/dist/libs/ResLoader.d.ts +1 -1
- package/dist/libs/UIManager.d.ts +1 -1
- package/dist/libs/UIManager.js +1 -1
- package/dist/utils/StringUtil.js +0 -2
- package/package.json +2 -14
- package/dist/types.d.ts +0 -10
package/dist/App.d.ts
CHANGED
package/dist/App.js
CHANGED
package/dist/core/Core.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ICore, IEventManager, IManager, IModel } from ".";
|
|
1
|
+
import { ICore, IEventManager, IManager, IModel } from "./Api";
|
|
3
2
|
export declare abstract class AbstractCore<T extends AbstractCore<T>> implements ICore {
|
|
4
3
|
private readonly container;
|
|
5
4
|
constructor();
|
package/dist/core/Core.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ICore, IManager } from "
|
|
1
|
+
import { ICore, IManager } from "./Api";
|
|
2
|
+
import 'reflect-metadata';
|
|
2
3
|
export declare function getInterface<T extends Function>(ctor: T): symbol;
|
|
3
4
|
export declare function model(): (ctor: Function) => void;
|
|
4
5
|
export declare function autoRegister(core: ICore): void;
|
package/dist/core/Decorators.js
CHANGED
package/dist/libs/BaseView.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from 'cc';
|
|
2
|
-
import { IView, IManager, IModel, IEventManager, ICocosResManager } from '
|
|
2
|
+
import { IView, IManager, IModel, IEventManager, ICocosResManager } from '../core';
|
|
3
3
|
export declare abstract class BaseView extends Component implements IView {
|
|
4
4
|
/** @internal */
|
|
5
5
|
private readonly __isIView__;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ListenerHandler, ToAnyIndexKey, OnListenerResult, IEventManager, OnListener, IEventMsgKey } from "
|
|
1
|
+
import { ListenerHandler, ToAnyIndexKey, OnListenerResult, IEventManager, OnListener, IEventMsgKey } from "../core";
|
|
2
2
|
export declare class Broadcaster<MsgKeyType extends IEventMsgKey, ValueType = any, ResultType = any> implements IEventManager<MsgKeyType, ValueType, ResultType> {
|
|
3
3
|
private _persistBrodcastMap;
|
|
4
4
|
private _listenerHandlerMap;
|
package/dist/libs/CocosCore.d.ts
CHANGED
package/dist/libs/CocosCore.js
CHANGED
|
@@ -2,10 +2,10 @@ import { Component } from 'cc';
|
|
|
2
2
|
import { AbstractCore } from '../core/Core.js';
|
|
3
3
|
import { autoRegister } from '../core/Decorators.js';
|
|
4
4
|
import { ServiceLocator } from '../core/ServiceLocator.js';
|
|
5
|
-
import './BaseView.js';
|
|
6
|
-
import { Broadcaster } from './Broadcaster.js';
|
|
7
|
-
import { ResLoader } from './ResLoader.js';
|
|
8
5
|
import { UIManager } from './UIManager.js';
|
|
6
|
+
import { ResLoader } from './ResLoader.js';
|
|
7
|
+
import { Broadcaster } from './Broadcaster.js';
|
|
8
|
+
import '../App.js';
|
|
9
9
|
|
|
10
10
|
class Core extends AbstractCore {
|
|
11
11
|
initialize() {
|
package/dist/libs/ResLoader.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Asset, Prefab, SpriteFrame, Sprite, sp } from "cc";
|
|
2
|
-
import { ICocosResManager, AssetType } from "
|
|
2
|
+
import { ICocosResManager, AssetType } from "../core";
|
|
3
3
|
export declare class ResLoader implements ICocosResManager {
|
|
4
4
|
loadAsset<T extends Asset>(path: string, type: AssetType<T>, nameOrUrl?: string): Promise<T>;
|
|
5
5
|
loadPrefab(path: string, nameOrUrl?: string): Promise<Prefab>;
|
package/dist/libs/UIManager.d.ts
CHANGED
package/dist/libs/UIManager.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __awaiter } from '../_virtual/_tslib.js';
|
|
2
2
|
import { director, Node, Sprite, Widget, Input, input, instantiate } from 'cc';
|
|
3
|
-
import 'reflect-metadata';
|
|
4
3
|
import { ServiceLocator } from '../core/ServiceLocator.js';
|
|
4
|
+
import 'reflect-metadata';
|
|
5
5
|
|
|
6
6
|
function addWidget(node) {
|
|
7
7
|
const widget = node.getComponent(Widget) || node.addComponent(Widget);
|
package/dist/utils/StringUtil.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dzkcc-mflow",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.5",
|
|
4
4
|
"description": "A modular design and process management framework developed for the cocos engine, suitable for decoupling and dependency injection.",
|
|
5
5
|
"author": "duanzhk",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,19 +16,7 @@
|
|
|
16
16
|
],
|
|
17
17
|
"type": "module",
|
|
18
18
|
"exports": {
|
|
19
|
-
"./*": "./dist/*.js"
|
|
20
|
-
"@mflow/api": {
|
|
21
|
-
"import": "./dist/core/index.js",
|
|
22
|
-
"types": "./dist/core/index.d.ts"
|
|
23
|
-
},
|
|
24
|
-
"@mflow/libs": {
|
|
25
|
-
"import": "./dist/libs/index.js",
|
|
26
|
-
"types": "./dist/libs/index.d.ts"
|
|
27
|
-
},
|
|
28
|
-
"@mflow/utils": {
|
|
29
|
-
"import": "./dist/utils/index.js",
|
|
30
|
-
"types": "./dist/utils/index.d.ts"
|
|
31
|
-
}
|
|
19
|
+
"./*": "./dist/*.js"
|
|
32
20
|
},
|
|
33
21
|
"files": [
|
|
34
22
|
"dist"
|
package/dist/types.d.ts
DELETED