Browse Source

初始化文件夹

zouyong 5 years ago
parent
commit
da42cfcbb6
40 changed files with 80 additions and 1718 deletions
  1. 0 90
      mk_framework/assets/MKLib/manager/EventMgr.ts
  2. 0 9
      mk_framework/assets/MKLib/manager/EventMgr.ts.meta
  3. 0 254
      mk_framework/assets/MKLib/manager/LoaderMgr.ts
  4. 0 9
      mk_framework/assets/MKLib/manager/LoaderMgr.ts.meta
  5. 0 96
      mk_framework/assets/MKLib/manager/LocalStorageMgr.ts
  6. 0 19
      mk_framework/assets/MKLib/manager/MKMgr.ts
  7. 0 9
      mk_framework/assets/MKLib/manager/MKMgr.ts.meta
  8. 1 1
      mk_framework/assets/libs.meta
  9. 0 0
      mk_framework/assets/libs/jszip.min.js
  10. 2 2
      mk_framework/assets/libs/jszip.min.js.meta
  11. 1 1
      mk_framework/assets/materials.meta
  12. 21 0
      mk_framework/assets/materials/sprite-gray.mtl
  13. 6 0
      mk_framework/assets/materials/sprite-gray.mtl.meta
  14. 1 1
      mk_framework/assets/res.meta
  15. 1 1
      mk_framework/assets/res/font.meta
  16. BIN
      mk_framework/assets/res/font/mk_mncy.ttf
  17. 5 0
      mk_framework/assets/res/font/mk_mncy.ttf.meta
  18. 0 5
      mk_framework/assets/resources/1.txt.meta
  19. 12 0
      mk_framework/assets/resources/module.meta
  20. 12 0
      mk_framework/assets/resources/module/load.meta
  21. 5 5
      mk_framework/assets/resources/module/load/load.prefab
  22. 1 1
      mk_framework/assets/resources/module/load/load.prefab.meta
  23. 0 357
      mk_framework/assets/resources/node_ui.prefab
  24. 0 8
      mk_framework/assets/resources/test_prefab.prefab.meta
  25. BIN
      mk_framework/assets/resources/test_sf.jpg
  26. 0 36
      mk_framework/assets/resources/test_sf.jpg.meta
  27. 0 596
      mk_framework/assets/scene/TestScene.fire
  28. 0 7
      mk_framework/assets/scene/TestScene.fire.meta
  29. 0 5
      mk_framework/assets/script/component/1.txt.meta
  30. 0 139
      mk_framework/assets/script/component/RotateAround.ts
  31. 0 9
      mk_framework/assets/script/component/RotateAround.ts.meta
  32. 0 0
      mk_framework/assets/script/game/module/load/1.txt
  33. 12 0
      mk_framework/assets/script/mk.meta
  34. 0 0
      mk_framework/assets/script/mk/net/1.txt
  35. 0 0
      mk_framework/assets/script/mk/sdk/1.txt
  36. 0 0
      mk_framework/assets/script/mk/system/1.txt
  37. 0 0
      mk_framework/assets/script/mk/utils/1.txt
  38. 0 44
      mk_framework/assets/script/scene/TestScene.ts
  39. 0 9
      mk_framework/assets/script/scene/TestScene.ts.meta
  40. 0 5
      mk_framework/assets/staticRes/1.txt.meta

+ 0 - 90
mk_framework/assets/MKLib/manager/EventMgr.ts

@@ -1,90 +0,0 @@
-
-/*============================================================================================================*/
-/**
- * 事件管理
- */
-/*============================================================================================================*/
-export class EventMgr {
-
-    private _event_target = new cc.EventTarget();
-
-    /*============================================================================================================*/
-    /**
-     */
-    /*============================================================================================================*/
-    public on(event_type, event_callback, event_target) {
-        this._event_target && this._event_target.on(event_type, event_callback, event_target);
-    }
-
-    /*============================================================================================================*/
-    /**
-     */
-    /*============================================================================================================*/
-    public off(event_type, event_callback, event_target) {
-        if (!event_type || !event_callback || !event_target) {
-            cc.warn('Event method off error. check your params...');
-        }
-        this._event_target && this._event_target.off(event_type, event_callback, event_target);
-    }
-
-    /*============================================================================================================*/
-    /**
-     */
-    /*============================================================================================================*/
-    public offTypeEvent(event_type) {
-        this._event_target && this._event_target.off(event_type);
-    }
-
-    /*============================================================================================================*/
-    /**
-     */
-    /*============================================================================================================*/
-    public offTargetEvent(event_target) {
-        this._event_target && this._event_target.targetOff(event_target);
-    }
-
-    /*============================================================================================================*/
-    /**
-     */
-    /*============================================================================================================*/
-    public once(event_type, event_callback, event_target) {
-        this._event_target && this._event_target.once(event_type, event_callback, event_target);
-    }
-
-    /*============================================================================================================*/
-    /**
-     */
-    /*============================================================================================================*/
-    public emit(event_type, p1?, p2?, p3?, p4?, p5?) {
-        this._event_target && this._event_target.emit(event_type, p1, p2, p3, p4, p5);
-    }
-
-    /*============================================================================================================*/
-    /**
-     */
-    /*============================================================================================================*/
-    public emitEvent(event_type, user_obj) {
-        // let event = new Event.EventCustom(event_type);
-        // event.setUserData(user_obj);
-        // this._event_target && this._event_target.dispatchEvent(event);
-    }
-    /** 按钮事件接口 
-     * - comp_btn:按钮组件
-     * - func:事件函数
-     * - target:指定脚本
-     * - btn_data:按钮传递的参数
-     * - need_sound:是否需要音效
-    */
-    public addClickEvent(comp_btn: cc.Button, func: Function, target: any, btn_data?, need_sound = true) {
-        if (!comp_btn) {
-            cc.log(target + '的btn是空的');
-            return;
-        }
-        comp_btn.node.on('click', func.bind(target, comp_btn, btn_data), target);
-        // need_sound && comp_btn.node.on('click', func, target);// 按钮音效
-    }
-};
-// declare global {
-//     const XXEvent: XXEvent;
-// }
-// window['XXEvent'] = new XXEvent();

+ 0 - 9
mk_framework/assets/MKLib/manager/EventMgr.ts.meta

@@ -1,9 +0,0 @@
-{
-  "ver": "1.0.8",
-  "uuid": "fd16fa51-13af-4fcc-b3a7-6f30fb8f2752",
-  "isPlugin": false,
-  "loadPluginInWeb": true,
-  "loadPluginInNative": true,
-  "loadPluginInEditor": false,
-  "subMetas": {}
-}

+ 0 - 254
mk_framework/assets/MKLib/manager/LoaderMgr.ts

@@ -1,254 +0,0 @@
-/*============================================================================================================*/
-/**
- * @description 资源加载
- */
-/*============================================================================================================*/
-// import { loader, error, JsonAsset, log, sys, SpriteAtlas, SpriteFrame } from 'cc';
-
-// window.xx = window.xx || {};
-// export class LoaderMgr {
-export class LoaderMgr {
-    // xx.Loader = {
-    private _profile_res = {};
-    private _bundle = null;
-    // todo 根据场景来清除资源缓存(什么场景加载的资源就保存到什么场景资源配置上。
-    //  可能存在的问题:两个场景公用的资源可能会被释放,之后重新加载,可能会有问题
-    //  )
-    public setBundle(bundle) {
-        bundle && (this._bundle = bundle);
-    }
-
-    public getBundle() {
-        return this._bundle || cc.resources;
-    }
-    /*============================================================================================================*/
-    /**
-     * 异步加载资源
-     */
-    /*============================================================================================================*/
-    public loadAsset(relative_path: string, complete_callback) {
-        let loader = this.getBundle();
-        loader.load(relative_path, (error, asset) => {
-            if (error) {
-                error('xx.loadAsset failed ... and path = ' + relative_path, '===error:', JSON.stringify(error));
-                return;
-            } else {
-                complete_callback && complete_callback(asset);
-            }
-        });
-    }
-
-    /*============================================================================================================*/
-    /**
-     * 根据类型异步加载
-     */
-    /*============================================================================================================*/
-    public loadAssetByType(relative_path: string, asset_type, complete_callback?: Function) {
-        return new Promise((resolve: (data) => void, reject) => {
-            this.getBundle().load(relative_path, asset_type, (error, asset) => {
-                if (error) {
-                    error('xx.loadAssetByType failed ... and path = ' + relative_path, '==error:', JSON.stringify(error));
-                    reject();
-                    return;
-                } else {
-                    complete_callback && complete_callback(asset);
-                    resolve(asset);
-                }
-            });
-        });
-    }
-
-    /*============================================================================================================*/
-    /**
-     * 递归获取resource路径下资源地址数组
-     * @param type 资源类型,如果为空,则返回所有类型文件地址
-     */
-    /*============================================================================================================*/
-    public getDirUrlsRecursion(path, type) {
-        let urls = [];
-        this.getBundle().getDirWithPath(path, type, urls);
-        let arr_path = [];
-        for (let i = 0; i < urls.length; i++) {
-            const element = urls[i].path;
-            arr_path.push(element);
-        }
-        return arr_path;
-    }
-
-    /*============================================================================================================*/
-    /**
-     * 通过config构造uuid数组加载
-     */
-    /*============================================================================================================*/
-    public loadByConfigUseUuids(assets_config, progress_callback, complete_callback) {
-        // let uuids = [];
-        // let urls = [];
-        // let len = assets_config.length;
-        // for (let i = 0; i < len; i++) {
-        //     let config = assets_config[i];
-        //     let path = config.path;
-        //     let type = config.type;
-        //     let _uuids = this.getBundle().getDirWithPath(path, type, urls);
-        //     uuids = uuids.concat(_uuids);
-        // }
-
-        // if (uuids.length === 0) return;
-
-        // let DoWithAssetItemOnProgress = function (completed_count, total_count, item) {
-        //     let asset = item.content;
-        //     if (asset instanceof JsonAsset) {
-        //         xx.Dict.loadByAsset(asset);
-        //     }
-        //     progress_callback && progress_callback(completed_count, total_count);
-        // };
-
-        // let DoWithAssetOnComplete = function (errors, res_assets, res_urls) {
-        //     complete_callback && complete_callback(errors, res_assets, res_urls);
-        // };
-
-        // loader._loadResUuids(uuids, DoWithAssetItemOnProgress, DoWithAssetOnComplete, urls);
-    }
-
-    public loadAssetsByConfig(assets_config, progress_callback, complete_callback) {
-        let total_count = 0;
-        let complete_count = 0;
-        for (let i = 0; i < assets_config.length; i++) {
-            let config = assets_config[i];
-            let path = config.path;
-            let type = config.type;
-
-            let urls = [];
-            this.getBundle().getDirWithPath(path, type, urls);
-            total_count += urls.length;
-            cc.log('预加载资源:%o', urls);
-            let callback = config.cb;
-            for (let i = 0; i < urls.length; i++) {
-                let path = urls[i].path;
-                this.getBundle().load(path, type, function (err, spriteFrame) {
-                    if (err) {
-                        cc.error(err.message || err);
-                        return;
-                    }
-                    ++complete_count;
-                    progress_callback && progress_callback(complete_count, total_count, spriteFrame);
-                    callback && callback(spriteFrame);
-
-                    if (complete_count === total_count) {
-                        complete_callback && complete_callback();
-                    }
-                });
-            }
-        }
-    }
-
-    /*============================================================================================================*/
-    /**
-     */
-    /*============================================================================================================*/
-    public releaseResByPathAndType(path = '', type) {
-        if (!path || !type) return;
-
-        let urls = this.getDirUrlsRecursion(path, type);
-        let len = urls.length;
-        for (let i = 0; i < len; ++i) {
-            let url = urls[i];
-            let atlas = this.getBundle().getRes(url, type);
-            let deps = this.getBundle().getDependsRecursively(atlas);
-            // assetManager.releaseAsset(deps);
-        }
-        cc.sys.garbageCollect();
-    }
-
-    /*============================================================================================================*/
-    /**
-     * 同步获取已经预加载的图集中的spriteframe 此接口进入游戏后生效
-     */
-    /*============================================================================================================*/
-    public getSpriteFrameFromAtlas(sprite_frame_name, path = '/Atlas') {
-        let urls = this.getDirUrlsRecursion(path, cc.SpriteAtlas);
-        let len = urls.length;
-        for (let i = 0; i < len; i++) {
-            let url = urls[i];
-            let atlas: any = this.getBundle().getRes(url, cc.SpriteAtlas);//resources.get
-            if (atlas) {
-                let sf = atlas.getSpriteFrame(sprite_frame_name);
-                if (sf) return sf;
-            }
-        }
-    }
-
-    /*============================================================================================================*/
-    /**
-     * @description 获取散图资源(需要在loading的时候首先加载)
-     * @param {string} sprite_frame_path 资源相对于resource下的路径
-     */
-    /*============================================================================================================*/
-    public getSpriteFrame(sprite_frame_path) {
-        let res = this.getBundle().getRes(sprite_frame_path, cc.SpriteFrame);
-        return res;
-    }
-
-    /*============================================================================================================*/
-    /**
-     * SpriteFrame有一个_uuid的属性,根据uuid去loader里面查找路径加载路径
-     */
-    /*============================================================================================================*/
-    public parseUuidToUrl(uuid) {
-        let path_to_uuid = this.getBundle()._pathToUuid;
-        for (let key in path_to_uuid) {
-            let entrys = path_to_uuid[key];
-            if (entrys instanceof Array) {
-                for (let entry of entrys) {
-                    if (entry.uuid === uuid) {
-                        return key;
-                    }
-                }
-            } else {
-                if (entrys.uuid === uuid) {
-                    return key;
-                }
-            }
-        }
-        return '';
-    }
-
-    public loadRemoteTexture(url, role_id, callback) {
-        if (this._profile_res[role_id]) {
-            let spf = this._profile_res[role_id];
-            callback && callback(role_id, spf);
-            return;
-        }
-        if (!url) return;
-
-        if (!cc.sys.isNative) return;
-
-        this.getBundle().load({ url: url, type: 'png' }, (err, tex) => {
-            cc.log('===get_texture:', role_id);
-            if (err) {
-                cc.log('===err:', err);
-                return;
-            }
-            let spf = new tex();//SpriteFrame(tex)
-            this._profile_res[role_id] = spf;
-            callback && callback(role_id, spf);
-        });
-    }
-    /** 获取图片纹理 by 图集 
-     * - sprite_frame_name:要获取的纹理名字
-     * - arr_atlas:图集列表
-    */
-    public getSpriteFrameByArrAlst(sprite_frame_name: string, arr_atlas: Array<cc.SpriteAtlas>): cc.SpriteFrame {
-        let count = arr_atlas.length;
-        for (let i = 0; i < count; i++) {
-            let _atlas = arr_atlas[i];
-            let spf = _atlas.getSpriteFrame(sprite_frame_name);
-            if (spf) return spf;
-        }
-        return null;
-    }
-};
-// declare global {
-//     const LoaderMgr: LoaderMgr;
-// }
-// // window['LoaderMgr'] = new LoaderMgr();
-// mk.loader = new LoaderMgr();

+ 0 - 9
mk_framework/assets/MKLib/manager/LoaderMgr.ts.meta

@@ -1,9 +0,0 @@
-{
-  "ver": "1.0.8",
-  "uuid": "e4865bae-efbf-40f6-a1c1-e5ecba9e2987",
-  "isPlugin": false,
-  "loadPluginInWeb": true,
-  "loadPluginInNative": true,
-  "loadPluginInEditor": false,
-  "subMetas": {}
-}

+ 0 - 96
mk_framework/assets/MKLib/manager/LocalStorageMgr.ts

@@ -1,96 +0,0 @@
-/*============================================================================================================*/
-/**
- * 用户本地存储模块
- */
-/*============================================================================================================*/
-// import { sys } from 'cc';
-// window.xx = window.xx || {};
-export class LocalStorageMgr {
-
-    /*============================================================================================================*/
-    /**
-     */
-    /*============================================================================================================*/
-    public initStorage(storage_file) {
-        // this._storage_config = require(storage_file);
-    }
-
-    /*============================================================================================================*/
-    /**
-     */
-    /*============================================================================================================*/
-    public set(key, value) {
-        value = JSON.stringify(value);
-        cc.sys.localStorage.setItem(key, value);
-    }
-
-    /*============================================================================================================*/
-    /**
-     */
-    /*============================================================================================================*/
-    public get(key) {
-        let v = cc.sys.localStorage.getItem(key);
-        v = JSON.parse(v);
-        return v;
-    }
-
-    /*============================================================================================================*/
-    /**
-     */
-    /*============================================================================================================*/
-    public setNumber(key, value) {
-        value = JSON.stringify(value);
-        cc.sys.localStorage.setItem(key, value);
-    }
-
-    /*============================================================================================================*/
-    /**
-     * default: null => 0
-     */
-    /*============================================================================================================*/
-    public getNumber(key) {
-        let value = cc.sys.localStorage.getItem(key);
-        value = JSON.parse(value) || 0;
-
-        return value;
-    }
-
-    public Remove(key) {
-        cc.sys.localStorage.removeItem(key)
-    }
-
-    /*============================================================================================================*/
-    /**
-     * 保存搜索路径
-     */
-    /*============================================================================================================*/
-    public Clear() {
-        cc.sys.localStorage.clear();
-    }
-
-    /*============================================================================================================*/
-    /**
-     */
-    /*============================================================================================================*/
-    public getMusicVolume() {
-        let value = this.get('music_volume');
-        (value === null) && (value = 1);
-        return value;
-    }
-
-    public setMusicVolume(value) {
-        if (value < 0.03) value = 0;
-        this.set('music_volume', value);
-    }
-
-    public getEffectVolume() {
-        let value = this.get('effect_volume');
-        (value === null) && (value = 1);
-        return value;
-    }
-
-    public setEffectVolume(value) {
-        if (value < 0.03) value = 0;
-        this.set('effect_volume', value);
-    }
-}

+ 0 - 19
mk_framework/assets/MKLib/manager/MKMgr.ts

@@ -1,19 +0,0 @@
-import { EventMgr } from "./EventMgr";
-import { LoaderMgr } from "./LoaderMgr";
-import { LocalStorageMgr } from "./LocalStorageMgr";
-
-// window.xx = window.xx || {};
-export class mk {
-    /** 动态加载模块 */
-    public loader: LoaderMgr = new LoaderMgr();
-    /** 事件模块 */
-    public event: EventMgr = new EventMgr();
-    /** 系统模块 */
-    public sys = {
-        localStorage: new LocalStorageMgr()
-    }
-};
-declare global {
-    const mk: mk;
-}
-window['mk'] = new mk();

+ 0 - 9
mk_framework/assets/MKLib/manager/MKMgr.ts.meta

@@ -1,9 +0,0 @@
-{
-  "ver": "1.0.8",
-  "uuid": "993b20e6-4dc2-46f2-be12-5e551d84ec63",
-  "isPlugin": false,
-  "loadPluginInWeb": true,
-  "loadPluginInNative": true,
-  "loadPluginInEditor": false,
-  "subMetas": {}
-}

+ 1 - 1
mk_framework/assets/MKLib.meta → mk_framework/assets/libs.meta

@@ -1,6 +1,6 @@
 {
   "ver": "1.1.2",
-  "uuid": "cf93c8ed-f08b-4713-8125-e3c5f8841f64",
+  "uuid": "4940c875-3e3d-49b3-ad88-5ac05bfd9170",
   "isBundle": false,
   "bundleName": "",
   "priority": 1,

File diff suppressed because it is too large
+ 0 - 0
mk_framework/assets/libs/jszip.min.js


+ 2 - 2
mk_framework/assets/MKLib/manager/LocalStorageMgr.ts.meta → mk_framework/assets/libs/jszip.min.js.meta

@@ -1,7 +1,7 @@
 {
   "ver": "1.0.8",
-  "uuid": "38899a3f-8a9e-4bd2-8184-f3abf5c8427c",
-  "isPlugin": false,
+  "uuid": "c9c8c53c-683c-4b8d-ba0e-d633265e774a",
+  "isPlugin": true,
   "loadPluginInWeb": true,
   "loadPluginInNative": true,
   "loadPluginInEditor": false,

+ 1 - 1
mk_framework/assets/MKLib/manager.meta → mk_framework/assets/materials.meta

@@ -1,6 +1,6 @@
 {
   "ver": "1.1.2",
-  "uuid": "566918b2-4065-416a-8466-62af26ceccb6",
+  "uuid": "e1659c31-daad-400d-9019-41303f00bb78",
   "isBundle": false,
   "bundleName": "",
   "priority": 1,

+ 21 - 0
mk_framework/assets/materials/sprite-gray.mtl

@@ -0,0 +1,21 @@
+{
+  "__type__": "cc.Material",
+  "_name": "sprite-gray",
+  "_objFlags": 0,
+  "_native": "",
+  "_effectAsset": {
+    "__uuid__": "a81c05da-f587-40ac-94a2-3c2b6962e5fc"
+  },
+  "_techniqueIndex": 0,
+  "_techniqueData": {
+    "0": {
+      "defines": {
+        "USE_TEXTURE": true,
+        "USE_GRAY": true
+      },
+      "props": {
+        "grayLevel": 0
+      }
+    }
+  }
+}

+ 6 - 0
mk_framework/assets/materials/sprite-gray.mtl.meta

@@ -0,0 +1,6 @@
+{
+  "ver": "1.0.3",
+  "uuid": "c3452c5f-b801-4d83-bfae-b03906a072e9",
+  "dataAsSubAsset": null,
+  "subMetas": {}
+}

+ 1 - 1
mk_framework/assets/script/component.meta → mk_framework/assets/res.meta

@@ -1,6 +1,6 @@
 {
   "ver": "1.1.2",
-  "uuid": "bbdd3b6f-d356-4a25-a8ed-958a0c664644",
+  "uuid": "e5de71eb-a180-4635-acc3-759c904c1299",
   "isBundle": false,
   "bundleName": "",
   "priority": 1,

+ 1 - 1
mk_framework/assets/staticRes.meta → mk_framework/assets/res/font.meta

@@ -1,6 +1,6 @@
 {
   "ver": "1.1.2",
-  "uuid": "a4e53ce6-b15b-45bb-9329-e207def21eef",
+  "uuid": "4cca42bb-58e3-4696-a508-671fd3dfefda",
   "isBundle": false,
   "bundleName": "",
   "priority": 1,

BIN
mk_framework/assets/res/font/mk_mncy.ttf


+ 5 - 0
mk_framework/assets/res/font/mk_mncy.ttf.meta

@@ -0,0 +1,5 @@
+{
+  "ver": "1.1.0",
+  "uuid": "0bc2f1e8-1dd4-45ba-8f7e-36c47dde4152",
+  "subMetas": {}
+}

+ 0 - 5
mk_framework/assets/resources/1.txt.meta

@@ -1,5 +0,0 @@
-{
-  "ver": "2.0.0",
-  "uuid": "dd125f36-5172-4a8e-b8c7-9128ff11117e",
-  "subMetas": {}
-}

+ 12 - 0
mk_framework/assets/resources/module.meta

@@ -0,0 +1,12 @@
+{
+  "ver": "1.1.2",
+  "uuid": "2edc6169-dadb-4066-9aab-fa4c1a8f5c5f",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

+ 12 - 0
mk_framework/assets/resources/module/load.meta

@@ -0,0 +1,12 @@
+{
+  "ver": "1.1.2",
+  "uuid": "875277ff-80d2-4830-ad61-d18a81eeff76",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

+ 5 - 5
mk_framework/assets/resources/test_prefab.prefab → mk_framework/assets/resources/module/load/load.prefab

@@ -13,7 +13,7 @@
   },
   {
     "__type__": "cc.Node",
-    "_name": "test_prefab",
+    "_name": "New Sprite(Splash)",
     "_objFlags": 0,
     "_parent": null,
     "_children": [],
@@ -36,8 +36,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 50,
-      "height": 50
+      "width": 100,
+      "height": 100
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -89,7 +89,7 @@
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
     "_spriteFrame": {
-      "__uuid__": "06a57251-87c4-422d-b8f2-7b5984e6b903"
+      "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
     },
     "_type": 0,
     "_sizeMode": 0,
@@ -111,7 +111,7 @@
       "__id__": 1
     },
     "asset": {
-      "__uuid__": "62f3744d-7ad5-402b-a2ad-49d9d5a8ecb6"
+      "__id__": 0
     },
     "fileId": "",
     "sync": false

+ 1 - 1
mk_framework/assets/resources/node_ui.prefab.meta → mk_framework/assets/resources/module/load/load.prefab.meta

@@ -1,6 +1,6 @@
 {
   "ver": "1.2.9",
-  "uuid": "add9cc48-3ed7-495c-8c68-a444d934ed16",
+  "uuid": "62252503-89e0-44ba-aeab-bf0baac4f65a",
   "optimizationPolicy": "AUTO",
   "asyncLoadAssets": false,
   "readonly": false,

+ 0 - 357
mk_framework/assets/resources/node_ui.prefab

@@ -1,357 +0,0 @@
-[
-  {
-    "__type__": "cc.Prefab",
-    "_name": "",
-    "_objFlags": 0,
-    "_native": "",
-    "data": {
-      "__id__": 1
-    },
-    "optimizationPolicy": 0,
-    "asyncLoadAssets": false,
-    "readonly": false
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "edit_anim_test",
-    "_objFlags": 0,
-    "_parent": null,
-    "_children": [
-      {
-        "__id__": 2
-      },
-      {
-        "__id__": 5
-      }
-    ],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 9
-      }
-    ],
-    "_prefab": {
-      "__id__": 10
-    },
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 750,
-      "height": 1334
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        375,
-        667,
-        0,
-        0,
-        0,
-        0,
-        1,
-        1,
-        1,
-        1
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "New Sprite(Splash)",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 3
-      }
-    ],
-    "_prefab": {
-      "__id__": 4
-    },
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 224,
-      "g": 0,
-      "b": 0,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 100,
-      "height": 100
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        0,
-        0,
-        0,
-        0,
-        0,
-        0,
-        1,
-        1,
-        1,
-        1
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.Sprite",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 2
-    },
-    "_enabled": true,
-    "_materials": [
-      {
-        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
-      }
-    ],
-    "_srcBlendFactor": 770,
-    "_dstBlendFactor": 771,
-    "_spriteFrame": {
-      "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
-    },
-    "_type": 0,
-    "_sizeMode": 0,
-    "_fillType": 0,
-    "_fillCenter": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_fillStart": 0,
-    "_fillRange": 0,
-    "_isTrimmedMode": true,
-    "_atlas": null,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__uuid__": "add9cc48-3ed7-495c-8c68-a444d934ed16"
-    },
-    "fileId": "b8Co5mcH1GFacdnr3rvjBQ",
-    "sync": false
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "New Sprite(Splash)",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 6
-      },
-      {
-        "__id__": 7
-      }
-    ],
-    "_prefab": {
-      "__id__": 8
-    },
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 100,
-      "height": 100
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        109.56818448940118,
-        -146.00260202029466,
-        0,
-        0,
-        0,
-        -0.948637392668517,
-        0.3163654488579276,
-        1,
-        1,
-        1
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": -143.1134712264177
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.Sprite",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 5
-    },
-    "_enabled": true,
-    "_materials": [
-      {
-        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
-      }
-    ],
-    "_srcBlendFactor": 770,
-    "_dstBlendFactor": 771,
-    "_spriteFrame": {
-      "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
-    },
-    "_type": 0,
-    "_sizeMode": 0,
-    "_fillType": 0,
-    "_fillCenter": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_fillStart": 0,
-    "_fillRange": 0,
-    "_isTrimmedMode": true,
-    "_atlas": null,
-    "_id": ""
-  },
-  {
-    "__type__": "af2eftS+MJDIbKGB51UIKkA",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 5
-    },
-    "_enabled": true,
-    "target": {
-      "__id__": 2
-    },
-    "clockwise": true,
-    "timePerRound": 5,
-    "faceToTarget": true,
-    "faceAxis": 3,
-    "autoStart": true,
-    "isRotating": false,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__uuid__": "add9cc48-3ed7-495c-8c68-a444d934ed16"
-    },
-    "fileId": "33EvNOdVpM2IYwsy5p/ksv",
-    "sync": false
-  },
-  {
-    "__type__": "cc.Widget",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 1
-    },
-    "_enabled": true,
-    "alignMode": 1,
-    "_target": null,
-    "_alignFlags": 45,
-    "_left": 0,
-    "_right": 0,
-    "_top": 0,
-    "_bottom": 0,
-    "_verticalCenter": 0,
-    "_horizontalCenter": 0,
-    "_isAbsLeft": true,
-    "_isAbsRight": true,
-    "_isAbsTop": true,
-    "_isAbsBottom": true,
-    "_isAbsHorizontalCenter": true,
-    "_isAbsVerticalCenter": true,
-    "_originalWidth": 0,
-    "_originalHeight": 0,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__uuid__": "add9cc48-3ed7-495c-8c68-a444d934ed16"
-    },
-    "fileId": "",
-    "sync": false
-  }
-]

+ 0 - 8
mk_framework/assets/resources/test_prefab.prefab.meta

@@ -1,8 +0,0 @@
-{
-  "ver": "1.2.9",
-  "uuid": "62f3744d-7ad5-402b-a2ad-49d9d5a8ecb6",
-  "optimizationPolicy": "AUTO",
-  "asyncLoadAssets": false,
-  "readonly": false,
-  "subMetas": {}
-}

BIN
mk_framework/assets/resources/test_sf.jpg


+ 0 - 36
mk_framework/assets/resources/test_sf.jpg.meta

@@ -1,36 +0,0 @@
-{
-  "ver": "2.3.5",
-  "uuid": "9e7cead1-31cb-4cd6-8a72-e2068fd9596f",
-  "type": "sprite",
-  "wrapMode": "clamp",
-  "filterMode": "bilinear",
-  "premultiplyAlpha": false,
-  "genMipmaps": false,
-  "packable": true,
-  "width": 451,
-  "height": 600,
-  "platformSettings": {},
-  "subMetas": {
-    "test_sf": {
-      "ver": "1.0.4",
-      "uuid": "06a57251-87c4-422d-b8f2-7b5984e6b903",
-      "rawTextureUuid": "9e7cead1-31cb-4cd6-8a72-e2068fd9596f",
-      "trimType": "auto",
-      "trimThreshold": 1,
-      "rotated": false,
-      "offsetX": 0,
-      "offsetY": 0,
-      "trimX": 0,
-      "trimY": 0,
-      "width": 451,
-      "height": 600,
-      "rawWidth": 451,
-      "rawHeight": 600,
-      "borderTop": 0,
-      "borderBottom": 0,
-      "borderLeft": 0,
-      "borderRight": 0,
-      "subMetas": {}
-    }
-  }
-}

+ 0 - 596
mk_framework/assets/scene/TestScene.fire

@@ -1,596 +0,0 @@
-[
-  {
-    "__type__": "cc.SceneAsset",
-    "_name": "",
-    "_objFlags": 0,
-    "_native": "",
-    "scene": {
-      "__id__": 1
-    }
-  },
-  {
-    "__type__": "cc.Scene",
-    "_objFlags": 0,
-    "_parent": null,
-    "_children": [
-      {
-        "__id__": 2
-      }
-    ],
-    "_active": false,
-    "_components": [],
-    "_prefab": null,
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 0,
-      "height": 0
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        0,
-        0,
-        0,
-        0,
-        0,
-        0,
-        1,
-        1,
-        1,
-        1
-      ]
-    },
-    "_is3DNode": true,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "autoReleaseAssets": false,
-    "_id": "5bf7e0c4-6e58-4bd5-a277-d0e13e796201"
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "Canvas",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [
-      {
-        "__id__": 3
-      },
-      {
-        "__id__": 5
-      }
-    ],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 12
-      },
-      {
-        "__id__": 13
-      },
-      {
-        "__id__": 14
-      }
-    ],
-    "_prefab": null,
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 750,
-      "height": 1334
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        375,
-        667,
-        0,
-        0,
-        0,
-        0,
-        1,
-        1,
-        1,
-        1
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": "a5esZu+45LA5mBpvttspPD"
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "Main Camera",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 2
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 4
-      }
-    ],
-    "_prefab": null,
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 750,
-      "height": 1334
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        0,
-        0,
-        0,
-        0,
-        0,
-        0,
-        1,
-        1,
-        1,
-        1
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": "e1WoFrQ79G7r4ZuQE3HlNb"
-  },
-  {
-    "__type__": "cc.Camera",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 3
-    },
-    "_enabled": true,
-    "_cullingMask": 4294967295,
-    "_clearFlags": 7,
-    "_backgroundColor": {
-      "__type__": "cc.Color",
-      "r": 0,
-      "g": 0,
-      "b": 0,
-      "a": 255
-    },
-    "_depth": -1,
-    "_zoomRatio": 1,
-    "_targetTexture": null,
-    "_fov": 60,
-    "_orthoSize": 10,
-    "_nearClip": 1,
-    "_farClip": 4096,
-    "_ortho": true,
-    "_rect": {
-      "__type__": "cc.Rect",
-      "x": 0,
-      "y": 0,
-      "width": 1,
-      "height": 1
-    },
-    "_renderStages": 1,
-    "_alignWithScreen": true,
-    "_id": "81GN3uXINKVLeW4+iKSlim"
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "node_ui",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 2
-    },
-    "_children": [
-      {
-        "__id__": 6
-      },
-      {
-        "__id__": 8
-      }
-    ],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 11
-      }
-    ],
-    "_prefab": null,
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 750,
-      "height": 1334
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        0,
-        0,
-        0,
-        0,
-        0,
-        0,
-        1,
-        1,
-        1,
-        1
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": "64QtLAbeZE6arF3hIj6z3M"
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "New Sprite(Splash)",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 5
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 7
-      }
-    ],
-    "_prefab": null,
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 224,
-      "g": 0,
-      "b": 0,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 100,
-      "height": 100
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        0,
-        0,
-        0,
-        0,
-        0,
-        0,
-        1,
-        1,
-        1,
-        1
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": "b2dBZu6TJLPKFOeSA+9Aib"
-  },
-  {
-    "__type__": "cc.Sprite",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 6
-    },
-    "_enabled": true,
-    "_materials": [
-      {
-        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
-      }
-    ],
-    "_srcBlendFactor": 770,
-    "_dstBlendFactor": 771,
-    "_spriteFrame": {
-      "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
-    },
-    "_type": 0,
-    "_sizeMode": 0,
-    "_fillType": 0,
-    "_fillCenter": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_fillStart": 0,
-    "_fillRange": 0,
-    "_isTrimmedMode": true,
-    "_atlas": null,
-    "_id": "90hPwkZzNKErv3XxTwzl/i"
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "New Sprite(Splash)",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 5
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 9
-      },
-      {
-        "__id__": 10
-      }
-    ],
-    "_prefab": null,
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 100,
-      "height": 100
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        0,
-        0,
-        0,
-        0,
-        0,
-        0,
-        1,
-        1,
-        1,
-        1
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": "990+HsJW5BZKKR8tF5gCgJ"
-  },
-  {
-    "__type__": "cc.Sprite",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 8
-    },
-    "_enabled": true,
-    "_materials": [
-      {
-        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
-      }
-    ],
-    "_srcBlendFactor": 770,
-    "_dstBlendFactor": 771,
-    "_spriteFrame": {
-      "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
-    },
-    "_type": 0,
-    "_sizeMode": 0,
-    "_fillType": 0,
-    "_fillCenter": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_fillStart": 0,
-    "_fillRange": 0,
-    "_isTrimmedMode": true,
-    "_atlas": null,
-    "_id": "4dXgLpoG1IPYZ/N/LqwhQH"
-  },
-  {
-    "__type__": "af2eftS+MJDIbKGB51UIKkA",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 8
-    },
-    "_enabled": true,
-    "target": {
-      "__id__": 6
-    },
-    "clockwise": true,
-    "timePerRound": 10,
-    "faceToTarget": false,
-    "faceAxis": 3,
-    "autoStart": false,
-    "isRotating": true,
-    "_id": "dbdpH9wR1KHoAs1YpG0kli"
-  },
-  {
-    "__type__": "cc.Widget",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 5
-    },
-    "_enabled": true,
-    "alignMode": 1,
-    "_target": null,
-    "_alignFlags": 45,
-    "_left": 0,
-    "_right": 0,
-    "_top": 0,
-    "_bottom": 0,
-    "_verticalCenter": 0,
-    "_horizontalCenter": 0,
-    "_isAbsLeft": true,
-    "_isAbsRight": true,
-    "_isAbsTop": true,
-    "_isAbsBottom": true,
-    "_isAbsHorizontalCenter": true,
-    "_isAbsVerticalCenter": true,
-    "_originalWidth": 0,
-    "_originalHeight": 0,
-    "_id": "00nzuegwRD1qB0xGRK4WiC"
-  },
-  {
-    "__type__": "cc.Canvas",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 2
-    },
-    "_enabled": true,
-    "_designResolution": {
-      "__type__": "cc.Size",
-      "width": 750,
-      "height": 1334
-    },
-    "_fitWidth": false,
-    "_fitHeight": true,
-    "_id": "59Cd0ovbdF4byw5sbjJDx7"
-  },
-  {
-    "__type__": "cc.Widget",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 2
-    },
-    "_enabled": true,
-    "alignMode": 1,
-    "_target": null,
-    "_alignFlags": 45,
-    "_left": 0,
-    "_right": 0,
-    "_top": 0,
-    "_bottom": 0,
-    "_verticalCenter": 0,
-    "_horizontalCenter": 0,
-    "_isAbsLeft": true,
-    "_isAbsRight": true,
-    "_isAbsTop": true,
-    "_isAbsBottom": true,
-    "_isAbsHorizontalCenter": true,
-    "_isAbsVerticalCenter": true,
-    "_originalWidth": 0,
-    "_originalHeight": 0,
-    "_id": "29zXboiXFBKoIV4PQ2liTe"
-  },
-  {
-    "__type__": "8c1e8i/Sk9Mrqf+IX0a/+fe",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 2
-    },
-    "_enabled": true,
-    "_id": "5fczz/o8VOLrz4yevv/nq4"
-  }
-]

+ 0 - 7
mk_framework/assets/scene/TestScene.fire.meta

@@ -1,7 +0,0 @@
-{
-  "ver": "1.2.9",
-  "uuid": "5bf7e0c4-6e58-4bd5-a277-d0e13e796201",
-  "asyncLoadAssets": false,
-  "autoReleaseAssets": false,
-  "subMetas": {}
-}

+ 0 - 5
mk_framework/assets/script/component/1.txt.meta

@@ -1,5 +0,0 @@
-{
-  "ver": "2.0.0",
-  "uuid": "869d773a-d063-456f-a2f9-f326ba29b7c9",
-  "subMetas": {}
-}

+ 0 - 139
mk_framework/assets/script/component/RotateAround.ts

@@ -1,139 +0,0 @@
-/** 轴 */
-export enum Axis {
-    /** 正 X 轴 */
-    PositiveX,
-    /** 正 Y 轴 */
-    PositiveY,
-    /** 负 X 轴 */
-    NegativeX,
-    /** 负 Y 轴 */
-    NegativeY
-}
-
-const { ccclass, property, executeInEditMode, playOnFocus } = cc._decorator;
-
-/**
- * 围绕旋转组件
- * @see RotateAround.ts https://gitee.com/ifaswind/eazax-ccc/blob/master/components/RotateAround.ts
- */
-@ccclass
-@executeInEditMode
-@playOnFocus
-export default class RotateAround extends cc.Component {
-
-    @property({ type: cc.Node, tooltip: CC_DEV && '围绕旋转的目标' })
-    public target: cc.Node = null;
-
-    @property({ tooltip: CC_DEV && '顺时针旋转' })
-    public clockwise: boolean = true;
-
-    @property({ tooltip: CC_DEV && '旋转一圈花费的时间' })
-    public timePerRound: number = 10;
-
-    @property({ tooltip: CC_DEV && '是否始终面向目标节点' })
-    public faceToTarget: boolean = false;
-
-    @property({
-        type: cc.Enum(Axis),
-        tooltip: CC_DEV && '面向目标节点的轴:\n- PositiveX:正 X 轴\n- PositiveY:正 Y 轴\n- NegativeX:负 X 轴\n- NegativeY:负 Y 轴',
-        visible() { return this.faceToTarget }
-    })
-    public faceAxis: Axis = Axis.NegativeY;
-
-    @property({ tooltip: CC_DEV && '自动开始旋转' })
-    public autoStart: boolean = false;
-
-    public angle: number = 0; // 角度
-
-    public radius: number = 0; // 半径
-
-    @property({ displayName: CC_EDITOR && '编辑器测试' })
-    private isRotating: boolean = false; // 标志位,是否正在旋转
-
-    protected start() {
-        if (this.autoStart) this.run();
-    }
-
-    protected update(dt: number) {
-        if (!this.isRotating || !this.target) return;
-        // 将角度转换为弧度
-        let radian = (Math.PI / 180) * this.angle;
-        // 更新节点的位置
-        this.node.x = this.target.x + this.radius * Math.cos(radian);
-        this.node.y = this.target.y + this.radius * Math.sin(radian);
-        // 更新节点的角度
-        if (this.faceToTarget) {
-            switch (this.faceAxis) {
-                case Axis.PositiveX:
-                    this.node.angle = this.angle + 180;
-                    break;
-                case Axis.PositiveY:
-                    this.node.angle = this.angle + 90;
-                    break;
-                case Axis.NegativeX:
-                    this.node.angle = this.angle;
-                    break;
-                case Axis.NegativeY:
-                    this.node.angle = this.angle - 90;
-                    break;
-            }
-        }
-        // 计算下一帧的角度
-        let anglePerFrame = dt * (360 / this.timePerRound);
-        if (this.clockwise) this.angle -= anglePerFrame;
-        else this.angle += anglePerFrame;
-        // 重置角度,避免数值过大
-        if (this.angle >= 360) this.angle %= 360;
-        else if (this.angle <= -360) this.angle %= -360;
-    }
-
-    /**
-     * 开始围绕目标节点旋转
-     * @param target 目标节点
-     * @param clockwise 是否顺时针旋转
-     * @param timePerRound 旋转一圈的时间
-     * @param faceToTarget 是否始终面向目标节点
-     * @param faceAxis 面向目标节点的轴
-     */
-    public run(target?: cc.Node, clockwise?: boolean, timePerRound?: number, faceToTarget?: boolean, faceAxis?: Axis) {
-        if (target) this.target = target;
-        if (clockwise) this.clockwise = clockwise;
-        if (timePerRound) this.timePerRound = timePerRound;
-        if (faceToTarget) this.faceToTarget = faceToTarget;
-        if (faceAxis) this.faceAxis = faceAxis;
-        if (!this.target) return cc.log('No target!');
-        // 计算初始角度和半径
-        this.angle = this.getAngle(this.target.getPosition(), this.node.getPosition());
-        this.radius = this.getDistance(this.target.getPosition(), this.node.getPosition());
-        // 开始
-        this.isRotating = true;
-    }
-
-    /**
-     * 停止旋转
-     */
-    public stop() {
-        this.isRotating = false;
-    }
-
-    /**
-     * 获取两点间的角度
-     * @param p1 点1
-     * @param p2 点2
-     * @see MathUtil.ts https://gitee.com/ifaswind/eazax-ccc/blob/master/utils/MathUtil.ts
-     */
-    public getAngle(p1: cc.Vec2, p2: cc.Vec2): number {
-        return Math.atan((p2.y - p1.y) / (p2.x - p1.x));
-    }
-
-    /**
-     * 获取两点间的距离
-     * @param p1 点1
-     * @param p2 点2
-     * @see MathUtil.ts https://gitee.com/ifaswind/eazax-ccc/blob/master/utils/MathUtil.ts
-     */
-    public getDistance(p1: cc.Vec2, p2: cc.Vec2): number {
-        return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));
-    }
-
-}

+ 0 - 9
mk_framework/assets/script/component/RotateAround.ts.meta

@@ -1,9 +0,0 @@
-{
-  "ver": "1.0.8",
-  "uuid": "af2efb52-f8c2-4321-b286-079d5420a900",
-  "isPlugin": false,
-  "loadPluginInWeb": true,
-  "loadPluginInNative": true,
-  "loadPluginInEditor": false,
-  "subMetas": {}
-}

+ 0 - 0
mk_framework/assets/resources/1.txt → mk_framework/assets/script/game/module/load/1.txt


+ 12 - 0
mk_framework/assets/script/mk.meta

@@ -0,0 +1,12 @@
+{
+  "ver": "1.1.2",
+  "uuid": "f0ce0bed-7268-4210-aaee-dfca9c48d421",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

+ 0 - 0
mk_framework/assets/script/component/1.txt → mk_framework/assets/script/mk/net/1.txt


+ 0 - 0
mk_framework/assets/staticRes/1.txt → mk_framework/assets/script/mk/sdk/1.txt


+ 0 - 0
mk_framework/assets/script/mk/system/1.txt


+ 0 - 0
mk_framework/assets/script/mk/utils/1.txt


+ 0 - 44
mk_framework/assets/script/scene/TestScene.ts

@@ -1,44 +0,0 @@
-
-const { ccclass, property } = cc._decorator;
-
-@ccclass
-export default class NewClass extends cc.Component {
-
-    private test_prefab: cc.Prefab = null;
-    private test_node: cc.Node = null;
-    private test_sf: cc.SpriteFrame = null;
-    onLoad() {
-        mk.event.on('/1:2/3-4x', this.on1234, this);
-        cc.systemEvent.on('/1:2/3-4x2', this.on2222, this);
-        mk.sys.localStorage.set('test', 'storage_test');
-    }
-
-    async start() {
-        // 动态加载应用Promise示例:
-        let path = 'test_prefab';
-        let asset = await mk.loader.loadAssetByType(path, cc.Prefab);
-        this.test_prefab = asset;
-        let node = cc.instantiate(asset);
-        node.parent = this.node;
-        this.test_node = node;
-        cc.log(asset)
-        
-        // 事件示例:
-        mk.event.emit('/1:2/3-4x', this.on1234, this);
-        cc.systemEvent.emit('/1:2/3-4x2', this.on2222, this);
-
-        // 本地存储示例:
-        cc.log(mk.sys.localStorage.get('test'))
-        cc.log(cc.sys.localStorage.getItem('test'))
-    }
-    /** 测试接口 */
-    private on1234() {
-        cc.log('1234')
-    }
-    /** 测试接口 */
-    private on2222() {
-        cc.log('2222')
-    }
-
-    // update (dt) {}
-}

+ 0 - 9
mk_framework/assets/script/scene/TestScene.ts.meta

@@ -1,9 +0,0 @@
-{
-  "ver": "1.0.8",
-  "uuid": "8c1e88bf-4a4f-4cae-a7fe-217d1affe7de",
-  "isPlugin": false,
-  "loadPluginInWeb": true,
-  "loadPluginInNative": true,
-  "loadPluginInEditor": false,
-  "subMetas": {}
-}

+ 0 - 5
mk_framework/assets/staticRes/1.txt.meta

@@ -1,5 +0,0 @@
-{
-  "ver": "2.0.0",
-  "uuid": "776a9f47-a49c-420f-aa3e-bfb2aef6056c",
-  "subMetas": {}
-}

Some files were not shown because too many files changed in this diff