
                (function() {
                    var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
                    var __module = nodeEnv ? module : {exports:{}};
                    var __filename = 'preview-scripts/assets/Script/GameData.js';
                    var __require = nodeEnv ? function (request) {
                        return cc.require(request);
                    } : function (request) {
                        return __quick_compile_project__.require(request, __filename);
                    };
                    function __define (exports, require, module) {
                        if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"use strict";
cc._RF.push(module, 'f2f0bI5PsVI+o18xF6G+KVa', 'GameData');
// Script/GameData.ts

"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var GameData = /** @class */ (function (_super) {
    __extends(GameData, _super);
    function GameData() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    GameData_1 = GameData;
    GameData.prototype.onLoad = function () {
        if (GameData_1._instance == null) {
            GameData_1._instance = this;
            cc.game.addPersistRootNode(this.node);
            //设置为常驻，绑定音频以及游戏各类信息
            this.AudioManager = this.node.getComponent('AudioManager');
        }
        else {
            this.node.destroy();
            return;
        }
    };
    GameData.prototype.start = function () {
        this.GM_INFO_init();
        this.CLICK_init();
        this.LEVEL_INFO_init();
        //GAME_DATA 废弃了，暂时不删除以防后面修改回 一整局传一次
        this.GAME_DATA = [];
    };
    GameData.prototype.GM_INFO_init = function () {
        this.GM_INFO = {
            // isEnd: false,
            mean_Time: 0,
            total: 0,
            currSeed: 203213,
            gameId: '100009',
            userId: 200139,
            guide: true,
            url: "http://api.sparkus.cn",
            success: false,
            matchId: null,
            custom: 0
        };
    };
    GameData.prototype.CLICK_init = function () {
        this.CLICK_DATA =
            {
                type: 1,
                success: false,
                round: 0,
                totalSunCount: 0,
                movedSunCount: 0,
                sunSpeed: 0,
                overlapSunCount: 0,
                colorList: [],
                duration: 0,
                difficultyLevel: 0,
                sunList: [],
                stepTimeList: [],
                remainder: 120
            };
    };
    GameData.prototype.LEVEL_INFO_init = function () {
        this.LEVEL_INFO = [
            {
                number: 3,
                moveNumber: 0,
                moveSpeed: 0,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 0 //是否重叠，现在0 不重叠 1 重叠1个
            },
            {
                number: 4,
                moveNumber: 0,
                moveSpeed: 0,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 0
            },
            {
                number: 4,
                moveNumber: 0,
                moveSpeed: 0,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 1
            },
            {
                number: 5,
                moveNumber: 1,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 0
            },
            {
                number: 5,
                moveNumber: 0,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 1
            },
            {
                number: 6,
                moveNumber: 0,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 1
            },
            {
                number: 6,
                moveNumber: 3,
                moveSpeed: 4,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 0
            },
            {
                number: 7,
                moveNumber: 0,
                moveSpeed: 4,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 0
            },
            {
                number: 7,
                moveNumber: 3,
                moveSpeed: 4,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 0
            },
            {
                number: 7,
                moveNumber: 3,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 1
            },
            {
                number: 8,
                moveNumber: 3,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 0
            },
            {
                number: 8,
                moveNumber: 5,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 1
            },
            {
                number: 9,
                moveNumber: 3,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 0
            },
            {
                number: 9,
                moveNumber: 5,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 1
            },
            {
                number: 10,
                moveNumber: 5,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 1
            },
            {
                number: 3,
                moveNumber: 0,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 0
            },
            {
                number: 4,
                moveNumber: 0,
                moveSpeed: 0,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 0
            },
            {
                number: 4,
                moveNumber: 1,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 0
            },
            {
                number: 4,
                moveNumber: 0,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 1
            },
            {
                number: 4,
                moveNumber: 1,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 1
            },
            {
                number: 5,
                moveNumber: 1,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 0
            },
            {
                number: 5,
                moveNumber: 0,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 1
            },
            {
                number: 5,
                moveNumber: 1,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 1
            },
            {
                number: 5,
                moveNumber: 2,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 1
            },
            {
                number: 5,
                moveNumber: 3,
                moveSpeed: 6,
                maxDistance: 200,
                maxMove: 1200,
                repeat: 1
            }
        ];
    };
    var GameData_1;
    GameData = GameData_1 = __decorate([
        ccclass
    ], GameData);
    return GameData;
}(cc.Component));
exports.default = GameData;

cc._RF.pop();
                    }
                    if (nodeEnv) {
                        __define(__module.exports, __require, __module);
                    }
                    else {
                        __quick_compile_project__.registerModuleFunc(__filename, function () {
                            __define(__module.exports, __require, __module);
                        });
                    }
                })();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 18616 characters]