Commit f4084f11 authored by wangzhujun's avatar wangzhujun

1

parent ac3f36ed
module.exports = {
opn: 0,
devPort: 8080,
proxy: {
'/ngapi/*': 'http://localhost:3000',
'/plugin/*': 'http://localhost:3000',
'/ngame/*': 'http://localhost:3000',
'/activityCommon/*': 'http://localhost:3000',
'/ctool/*': 'http://localhost:3000',
'/activityVist/*': 'http://localhost:3000',
'/collectGoods/*': 'http://localhost:3000',
'/activityPlugDrawInfo/*': 'http://localhost:3000',
'/collectRule/*': 'http://localhost:3000',
'/hdtool/*': 'http://localhost:3000',
'/activityPlugin/*': 'http://localhost:3000',
'/summer/*': 'http://localhost:3000',
'/senstiveword/*': 'http://localhost:3000',
'/customActivity/*': 'http://localhost:3000',
'/aaw/*': 'http://localhost:3000',
'/kjy/*': 'http://localhost:3000',
'/aww/*': 'http://localhost:3000',
'/projectx/*': 'http://localhost:3000'
}
}
\ No newline at end of file
# 所有空行或者以注释符号 # 开头的行都会被 Git 忽略。
# 可以使用标准的 glob 模式匹配。
# 匹配模式最后跟反斜杠(/)说明要忽略的是目录。
# 要忽略指定模式以外的文件或目录,可以在模式前加上惊叹号(! )取反。
# 所谓的 glob 模式是指 shell 所使用的简化了的正则表达式。星号(*)匹配零个或多个任
# 意字符; [abc] 匹配任何一个列在方括号中的字符(这个例子要么匹配一个 a,要么匹配一
# 个 b,要么匹配一个 c);问号(?)只匹配一个任意字符;如果在方括号中使用短划线分
# 隔两个字符,表示所有在这两个字符范围内的都可以匹配(比如 [0-9] 表示匹配所有 0 到
# 9 的数字)。
# 书上的一个例子
# #此为注释 – 将被 Git 忽略
# *.a
# 忽略所有 .a 结尾的文件
# !lib.a
# 但 lib.a 除外
# /TODO
# 仅仅忽略项目根目录下的 TODO 文件,不包括 subdir/TODO
# build/
# 忽略 build/ 目录下的所有文件
# doc/*.txt
# 会忽略 doc/notes.txt 但不包括 doc/server/arch.txt
node_modules
bin-release
.DS_Store
egret/.DS_Store
**/*/.tmproject
\ No newline at end of file
registry = http://npm.dui88.com/
\ No newline at end of file
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080/egret/index.html",
"webRoot": "${workspaceFolder}"
}
]
}
\ No newline at end of file
## 安装和更新构建工具
重新拉取代码,然后安装依赖。
``` bash
git pull && cnpm install
```
## 启动本地服务器
``` bash
npm run dev
```
之后会自动打开浏览器。建议在vscode中f5调试,效率更高。
## 发布
### 全发布
```bash
npm run build
```
### 仅仅发布src下的TS代码
``` bash
npm run buildTS
```
之后只需要更新皮肤中的`output.js`文件的版本号
```js
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/activity/demo/1537173012/output.js"></script>
```
### 仅仅发布exmls文件
``` bash
npm run buildExml
```
之后只需要更新皮肤中的`default.thm.js`文件的版本号
```js
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/activity/demo/1537172754/resource/default.thm.js"></script>
```
## demo
- demo皮肤 https://mng.duiba.com.cn/DuibaNgameBrick/edit/476
- demo线上url http://activity-2.m.duiba.com.cn/ngame/index?id=3122353&dbnewopen&dpm=1.5.677.4&dcm=202.3122353.4.677
## 项目结构介绍
### .vscode
vscode调试配置文件,需要提前安装chrome debugger插件。
### egret
egret相关根目录。特别说明:暂时无法把其中文件放到根目录,后续优化。
- bin-release 发布文件目录,oss提交根目录
- libs库文件夹
- resource对应egret的resource
- scripts为发布相关脚本
- src源码目录。
- template勿删。
- autoMerger.js生成图集合并的项目配置文件。
- egretProperties.json,egret项目配置
- index.html,入口文件。
- project.json,同以前,后续考虑优化掉。
- publish.js oss发布文件。
- tsconfig.json ,ts配置。
- wingProperties.json,egret wing配置。
### mock
mock配置,同以前。
### .buildrc.js
构建配置
### .npmrc
npm源配置。
### build.js
构建脚本。
## 说明
### 自动化图集合并说明
不会合并组内的jpg。一般jpg都是外部加载,合入png图集,会显著增加png图集的体积
## 未来
- 增加webp支持,提升载入速度。
- 基于asm的mock api
- 更快的编译(优化devtool)
- 更高效的研发:引入HRM
## 背景
尽量保持以往的开发习惯,减少工作流的环节变更,减少迁移引擎导致的成本
## 优势
- 一键发布
- 自动化编译,极快的编译速度,极致的开发效率。抛弃了egret build,因为它非常的慢,空项目编译2秒,项目代码越多编译越慢,而且还需要手动编译。
- 非常快的首屏载入速度。合并了所有egret相关库为单独一个文件 //yun.duiba.com.cn/db_games/lib2_game.min.js,抛弃了非常慢的基于manifest的串行加载。(egert p2.js cdn //yun.duiba.com.cn/db_games/physics.min.js)
- tinypng图片压缩由手动升级为自动,大大提升研发效率
- 自动化合并图集。开发阶段不需要合并图集,大大提升开发效率。
- 修改exmls等其他项目文件后自动刷新浏览,进一步提升研发效率。
- 0成本迁移tc和tw(无需要修改代码)
- 0成本迁移mock
- 暂不使用egret的网络通讯库,仍然使用zepto(有空优化)
- 其他无成本迁移的开发习惯,比如自动编译、自动刷新浏览器、编辑器vscode、webstorm习惯等。
- 项目初始化简化:现在依赖只需要安装一次,不需要每个项目都安装一次。移除了project.json。
- 和其他egret工具、流程兼容,比如exml编辑器egret wing。
- 以前一个皮就是一个项目。现在只有一个vscode项目,方便管理项目。
- 使用新的git流,可以有效的减少整个仓库的体积,几十上百个项目,其实有用的不多
- 相对以前发布速度极快。只有代码变更的时候,只需要编译ts发布,只有exmls文件变更的时候,只发布exmls,大大节省了发布时间。
- 现在代码里有基本的panel,scene,loading可以参考一下,后续会独立成类似tl、wx的库
## 项目创建和维护流程
1.先建立一个分支
git checkout -b kickball-20180910
2.然后duiba-games下直接创建【项目名称】的文件夹kickball-20180910
3.push分支到远程
git push --set-upstream origin kickball-20180910
4.然后在分支下开发,如果是新类型游戏,将来可能需要换皮的,那么备份到backup下。移动 kickball-20180910到backup。
5.然后合并到主分支。
git checkout dev
git merge kickball-20180910
git push
6、因为已经backup,所以这个分支已经没用了,删除分支
git branch -D kickball-20180910
git push origin :kickball-20180910
如果不需backup后面要维护,那么留着分支,不必合并到主分支。这样可以避免频繁提交导致的频繁git pull,提升效率。
\ No newline at end of file
// let argvs = JSON.parse(process.env.npm_config_argv);
// let remain = argvs.remain;
let cmd = process.argv[2];
const DBGBuild = require('duiba-game-build');
const config = require('./.buildrc');
let build = new DBGBuild(config);
if (cmd === 'build' && process.argv[3] === 'prod') {
// if (cmd === 'build' && remain[1] === 'prod') {
cmd = 'buildProd';
if (process.argv[4] === 'ts')
cmd = 'buildProdTS';
if (process.argv[4] === 'exml')
cmd = 'buildProdEXML';
}
else if (cmd === 'build' && process.argv[3] === 'prod2') {
// if (cmd === 'build' && remain[1] === 'prod') {
cmd = 'notinypng';
if (process.argv[4] === 'ts')
cmd = 'buildProdTS';
if (process.argv[4] === 'exml')
cmd = 'buildProdEXML';
}
build[cmd]('egret');
console.log();
\ No newline at end of file
let inquirer = require('inquirer');
const spawn = require('cross-spawn');
const questions = require('./question');
let moment = require('moment');
const today = moment().format('YYYYMMDD');
inquirer.prompt(questions).then(answers => {
let cmdType = answers.commandType || '';
let skinName = answers.skinName || '';
let branchName = answers.branchName || '';
let cmd = '';
switch (cmdType) {
case 'create':
cmd = `npm run copy ${skinName}`;
break;
case 'create_react':
cmd = `npm run copy ${skinName} custom-react`;
break;
case 'prettier':
cmd = 'npm run lint';
break;
case 'develop':
cmd = `npm run dev ${skinName}`;
break;
case 'build_test':
cmd = `npm run build ${skinName}`;
break;
case 'build_prod':
cmd = `npm run build ${skinName} prod`;
break;
case 'backup':
cmd = `npm run backup`;
break;
case 'create_branch':
cmd = `git checkout -b feature/${today}-${branchName}`;
break;
default:
break;
}
if (cmd) {
cmd = cmd.split(' ');
let _cmd = cmd[0];
let _args = cmd.slice(1);
var ls = spawn(_cmd, _args);
ls.stdout.on('data', data => {
console.log(`${data}`);
});
ls.stderr.on('data', data => {
console.log(`stderr: ${data}`);
});
ls.on('close', code => {
// console.log(`子进程退出码:${code}`);
});
}
});
{
"global": {
"globalBindingDataTestObj": [],
"globalAutoLayerMarkEnable": false,
"globalAdsorbEnable": false,
"gridColor": 8421504,
"gridEnabled": false,
"gridSize": 20,
"globalRulerEnable": true
},
"1667fb18fa6": {
"bindingDataTestObj": [
{
"key": "list",
"value": "[1,2]"
}
]
},
"16680af117c": {
"bindingDataTestObj": []
},
"16680af117d": {
"bindingDataTestObj": [
{
"key": "data.message",
"value": "积分不足 \\n 多赚点再来吧"
}
]
},
"167c5a32d33": {
"guideLines": [
{
"type": "v",
"pos": 387
},
{
"type": "h",
"pos": 359
}
]
},
"168117b0b91": {
"guideLines": [
{
"type": "v",
"pos": 173.5
},
{
"type": "h",
"pos": 118.5
}
],
"guideLinesEnabled": true
},
"168654fb707": {
"guideLinesEnabled": false
},
"1687055130d": {
"guideLines": [
{
"type": "v",
"pos": 369.333
},
{
"type": "v",
"pos": 110.667
}
]
},
"16ed4c87c57": {
"backgroundX": 0,
"backgroundY": 0,
"backgroundWidth": -1,
"backgroundHeight": -1,
"useBgImage": true,
"useBgColor": true,
"backgroundAlpha": 100
},
"16eeaea9839": {
"guideLines": [
{
"type": "v",
"pos": 898
}
]
}
}
\ No newline at end of file
{
"version": "0.2.0",
"configurations": [
{
"name": "Wing 内置播放器调试",
"type": "chrome",
"request": "launch",
"file": "index.html",
//"url": "http://mysite.com/index.html",
"runtimeExecutable": "${execPath}",
"sourceMaps": true,
"webRoot": "${workspaceRoot}",
"preLaunchTask":"build",
"port":5826
},
{
"name": "使用本机 Chrome 调试",
"type": "chrome",
"request": "launch",
"file": "index.html",
//"url": "http://mysite.com/index.html",
"runtimeExecutable": "",
"sourceMaps": true,
"webRoot": "${workspaceRoot}",
"preLaunchTask":"build",
"userDataDir":"${tmpdir}",
"port":5826
}
]
}
\ No newline at end of file
{
"version": "0.1.0",
"command": "egret",
"isShellCommand": true,
"tasks": [
{
"taskName": "build",
"showOutput": "always",
"args": [
"build",
"-sourcemap"
],
"problemMatcher": "$tsc"
},
{
"taskName": "clean",
"showOutput": "always",
"args": [
"build",
"-e"
],
"problemMatcher": "$tsc"
},
{
"taskName": "publish",
"showOutput": "always",
"args": [
"publish"
],
"problemMatcher": "$tsc"
}
]
}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var fs = require("fs");
var path = require("path");
var resjsons = ["resource/default.res.json"];
//要扫描的res.json文件
var targetDir = "resource/TextureMerger";
//输出目录
var pathNor = path.relative(targetDir, "resource");
//返回一个相对路径
var tempindex = 0;
//创建输出文件夹
if (resjsons.length > 0) {
if (!fs.existsSync(targetDir)) {
// var paths = path.normalize(targetDir).split("\\"); //windows 下使用
var paths = path.normalize(targetDir).split("\/");
//mac linux 下使用
var target = ".";
for (var _i = 0,
paths_1 = paths; _i < paths_1.length; _i++) {
var p = paths_1[_i];
// target += ("\\" + p); // windows 下使用
target += ("\/" + p);
// mac linux 下使用
if (!fs.existsSync(target))
// 根据路径创建文件夹
fs.mkdirSync(target);
}
}
}
var _loop_1 = function (resJson) {
// 判断是否是res.json文件
if (fs.existsSync(resJson) && resJson.indexOf("res.json") > -1) {
var defaultJson = fs.readFileSync(resJson, "utf-8");
// 解析res.json文件内容
var defaultObject = JSON.parse(defaultJson);
var groups = defaultObject.groups;
//组
var resources = defaultObject.resources;
//资源
var resourcesHash_1 = {};
// 用来存放resources的资源信息
// 遍历resources
for (var _i = 0,
resources_1 = resources; _i < resources_1.length; _i++) {
var resource = resources_1[_i];
resourcesHash_1[resource.name] = resource.url;
}
// 遍历groups
for (var _a = 0,
groups_1 = groups; _a < groups_1.length; _a++) {
var group = groups_1[_a];
var tmproject = {};
//用来存放tmproject文件的信息
// tmproject文件配置
tmproject["options"] = {
"layoutMath": "2",
"sizeMode": "2n",
"useExtension": 1,
"layoutGap": 1,
"extend": 0
};
// projectName
tmproject["projectName"] = group.name + "_" + tempindex;
// 版本
tmproject["version"] = 5;
tempindex++;
// 获取res.json分组的keys, 并分割成数组
var oldkeys = group.keys.split(",");
var oldkeysHash = {};
// 遍历oldkeys
for (var _b = 0,
oldkeys_1 = oldkeys; _b < oldkeys_1.length; _b++) {
var key = oldkeys_1[_b];
// 保存到oldkeysHash对象中
oldkeysHash[key] = true;
}
var newKeys = [];
// 遍历oldkeys
for (var _c = 0,
oldkeys_2 = oldkeys; _c < oldkeys_2.length; _c++) {
var key = oldkeys_2[_c];
if (key.indexOf("json") == -1) {
if (!oldkeysHash[key.replace("png", "json")]) {
//粒子和龙骨对应的图集不合图
if (!oldkeysHash[key.replace("png", "fnt")])
//位图字体
newKeys.push(key);
}
// else
// if (key.indexOf("jpg") > -1) {
// newKeys.push(key);
// }
}
}
oldkeysHash = {};
oldkeys = [];
// files路径
var urls = newKeys.map(function (key) {
return path.join(pathNor, resourcesHash_1[key]);
});
tmproject["files"] = urls;
// 根据tmproject写入文件
if (urls.length > 0) {
fs.writeFileSync(path.join(targetDir, tmproject["projectName"] + ".tmproject"), JSON.stringify(tmproject));
console.log('==> '+tmproject["projectName"] + '.tmproject创建完毕.')
}
tmproject = {};
}
}
};
//根据数组开始扫描
for (var _a = 0,
resjsons_1 = resjsons; _a < resjsons_1.length; _a++) {
var resJson = resjsons_1[_a];
_loop_1(resJson);
}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
// import { IData } from "../../tc/interface/IData";
/**
*Created by cuiliqiang on 2018/3/12
* 数据基类
*/
var Data = (function () {
function Data() {
}
Data.prototype.update = function (data) {
this._success = data.success == undefined ? true : data.success;
if (data.message) {
this._message = data.message;
}
else if (data.desc) {
this._message = data.desc;
}
else if (data.msg) {
this._message = data.msg;
}
this._code = data.code;
};
Object.defineProperty(Data.prototype, "success", {
/**
* 接口状态
* @returns {boolean}
*/
get: function () {
return this._success;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Data.prototype, "message", {
/**
* 接口提示信息
* @returns {string}
*/
get: function () {
return this._message;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Data.prototype, "code", {
/**
* 状态码
* @returns {string}
*/
get: function () {
return this._code;
},
enumerable: true,
configurable: true
});
return Data;
}());
exports.Data = Data;
__reflect(Data.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/Data\".Data", ["\"e:/yzw_hjcd/egret/libs/tc/interface/IData\".IData"]);
//# sourceMappingURL=Data.js.map
\ No newline at end of file
{"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../../libs/tw/data/Data.ts"],"names":[],"mappings":";;;;;AAEA,oDAAoD;AACpD;;;GAGG;AAEH;IAAA;IAwCA,CAAC;IAnCU,qBAAM,GAAb,UAAc,IAAS;QACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,IAAI,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC;QAChE,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;YACf,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC;QACjC,CAAC;QAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;QAC9B,CAAC;QAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;YAClB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC;QAC7B,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC;IAC3B,CAAC;IAMD,sBAAW,yBAAO;QAJlB;;;WAGG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;;;OAAA;IAMD,sBAAW,yBAAO;QAJlB;;;WAGG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;;;OAAA;IAMD,sBAAW,sBAAI;QAJf;;;WAGG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;;;OAAA;IACL,WAAC;AAAD,CAAC,AAxCD,IAwCC;AAxCY,oBAAI;AAAJ,UAAA,IAAI,oHAwChB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("./../../Data");
/**
*Created by cuiliqiang on 2018/3/7
* 集卡数据
*/
var GetCollectRuleData = (function (_super) {
__extends(GetCollectRuleData, _super);
function GetCollectRuleData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetCollectRuleData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
this.prizeLevel = data.prizeLeve;
this.clickFlag = data.clickFlag;
this.exchange = data.exchange;
this.collectRules = data.collectRule;
if (data.collectGoods) {
var len = data.collectGoods.length;
var i = 0;
for (i; i < len; i++) {
this.allCount += data.collectGoods[i].count;
}
}
else {
this.allCount = 0;
}
};
return GetCollectRuleData;
}(Data_1.Data));
exports.GetCollectRuleData = GetCollectRuleData;
__reflect(GetCollectRuleData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/common/getCollectRule/GetCollectRuleData\".GetCollectRuleData");
//# sourceMappingURL=GetCollectRuleData.js.map
\ No newline at end of file
{"version":3,"file":"GetCollectRuleData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/common/getCollectRule/GetCollectRuleData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AAGpC;;;GAGG;AACH;IAAwC,sCAAI;IAA5C;;IA8CA,CAAC;IApBU,mCAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC;QACjC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,WAAW,CAAC;QAErC,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;YACpB,IAAM,GAAG,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;YACrC,IAAI,CAAC,GAAG,CAAC,CAAC;YACV,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;gBACnB,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YAChD,CAAC;QACL,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QACtB,CAAC;IACL,CAAC;IACL,yBAAC;AAAD,CAAC,AA9CD,CAAwC,WAAI,GA8C3C;AA9CY,gDAAkB;AAAlB,UAAA,kBAAkB,6GA8C9B,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ICollectGoodData.js.map
\ No newline at end of file
{"version":3,"file":"ICollectGoodData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/common/getCollectRule/ICollectGoodData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ICollectRuleData.js.map
\ No newline at end of file
{"version":3,"file":"ICollectRuleData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/common/getCollectRule/ICollectRuleData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("./../../Data");
var OpenCollectGoodsPrizeData = (function (_super) {
__extends(OpenCollectGoodsPrizeData, _super);
function OpenCollectGoodsPrizeData() {
return _super !== null && _super.apply(this, arguments) || this;
}
OpenCollectGoodsPrizeData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
this.orderId = data.orderId;
};
return OpenCollectGoodsPrizeData;
}(Data_1.Data));
exports.OpenCollectGoodsPrizeData = OpenCollectGoodsPrizeData;
__reflect(OpenCollectGoodsPrizeData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/common/openCollectGoodsPrize/openCollectGoodsPrizeData\".OpenCollectGoodsPrizeData");
//# sourceMappingURL=openCollectGoodsPrizeData.js.map
\ No newline at end of file
{"version":3,"file":"openCollectGoodsPrizeData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/common/openCollectGoodsPrize/openCollectGoodsPrizeData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC;IAA+C,6CAAI;IAAnD;;IAaA,CAAC;IAPU,0CAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAA,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACP,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAChC,CAAC;IACL,gCAAC;AAAD,CAAC,AAbD,CAA+C,WAAI,GAalD;AAbY,8DAAyB;AAAzB,UAAA,yBAAyB,kIAarC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/12
* 答题提交结果数据
*/
var Data_1 = require("../../Data");
var QuestionSubmitData = (function (_super) {
__extends(QuestionSubmitData, _super);
function QuestionSubmitData() {
return _super !== null && _super.apply(this, arguments) || this;
}
QuestionSubmitData.prototype.update = function (data) {
if (!data) {
return;
}
this.orderId = data.orderId;
this.type = data.prizeType;
this.plginOrderId = data.plginOrderId;
this.needPrize = data.needPrize;
this.point = data.point;
this.currentLocation = data.currentLocation;
};
return QuestionSubmitData;
}(Data_1.Data));
exports.QuestionSubmitData = QuestionSubmitData;
__reflect(QuestionSubmitData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/custom/questionSbumit/QuestionSubmitData\".QuestionSubmitData");
//# sourceMappingURL=QuestionSubmitData.js.map
\ No newline at end of file
{"version":3,"file":"QuestionSubmitData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/custom/questionSbumit/QuestionSubmitData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAElC;IAAwC,sCAAI;IAA5C;;IA2CA,CAAC;IAXU,mCAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC;QAC3B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC;IAChD,CAAC;IACL,yBAAC;AAAD,CAAC,AA3CD,CAAwC,WAAI,GA2C3C;AA3CY,gDAAkB;AAAlB,UAAA,kBAAkB,6GA2C9B,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IUserData.js.map
\ No newline at end of file
{"version":3,"file":"IUserData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/common/IUserData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("../../Data");
/**
* 阶段提交数据
*/
var DatapashData = (function (_super) {
__extends(DatapashData, _super);
function DatapashData() {
return _super !== null && _super.apply(this, arguments) || this;
}
DatapashData.prototype.update = function (result) {
_super.prototype.update.call(this, result);
};
return DatapashData;
}(Data_1.Data));
exports.DatapashData = DatapashData;
__reflect(DatapashData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/game/datapash/DatapashData\".DatapashData");
//# sourceMappingURL=DatapashData.js.map
\ No newline at end of file
{"version":3,"file":"DatapashData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/datapash/DatapashData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAkC;AAClC;;GAEG;AACH;IAAkC,gCAAI;IAAtC;;IAIA,CAAC;IAHU,6BAAM,GAAb,UAAc,MAAW;QACrB,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IACL,mBAAC;AAAD,CAAC,AAJD,CAAkC,WAAI,GAIrC;AAJY,oCAAY;AAAZ,UAAA,YAAY,yFAIxB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by huangwenjie on 2018/7/18
* 复活操作
*/
var Data_1 = require("../../Data");
var DoReviveData = (function (_super) {
__extends(DoReviveData, _super);
function DoReviveData() {
return _super.call(this) || this;
}
DoReviveData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
this.timestamp = data.timestamp;
this.isSuccess = data.success;
this.reviveCardNum = data.data.reviveCardNum;
this.status = data.data.status;
};
return DoReviveData;
}(Data_1.Data));
exports.DoReviveData = DoReviveData;
__reflect(DoReviveData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/game/doRevive/DoReviveData\".DoReviveData");
//# sourceMappingURL=DoReviveData.js.map
\ No newline at end of file
{"version":3,"file":"DoReviveData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/doRevive/DoReviveData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAElC;IAAkC,gCAAI;IAkBlC;eACI,iBAAO;IACX,CAAC;IAEM,6BAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IACnC,CAAC;IACL,mBAAC;AAAD,CAAC,AAhCD,CAAkC,WAAI,GAgCrC;AAhCY,oCAAY;AAAZ,UAAA,YAAY,yFAgCxB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by huangwenjie on 2018/7/18
* 获得复活卡数量
*/
var Data_1 = require("../../Data");
var GetReviveCardNumData = (function (_super) {
__extends(GetReviveCardNumData, _super);
function GetReviveCardNumData() {
return _super.call(this) || this;
}
GetReviveCardNumData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
this.timestamp = data.timestamp;
this.isSuccess = data.success;
this.reviveCardNum = data.data;
};
return GetReviveCardNumData;
}(Data_1.Data));
exports.GetReviveCardNumData = GetReviveCardNumData;
__reflect(GetReviveCardNumData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/game/doRevive/GetReviveCardNumData\".GetReviveCardNumData");
//# sourceMappingURL=GetReviveCardNumData.js.map
\ No newline at end of file
{"version":3,"file":"GetReviveCardNumData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/doRevive/GetReviveCardNumData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAElC;IAA0C,wCAAI;IAc1C;eACI,iBAAO;IACX,CAAC;IAEM,qCAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC;IACnC,CAAC;IACL,2BAAC;AAAD,CAAC,AA3BD,CAA0C,WAAI,GA2B7C;AA3BY,oDAAoB;AAApB,UAAA,oBAAoB,yGA2BhC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/1
* 开始游戏
*/
var Data_1 = require("../../Data");
var DoStartData = (function (_super) {
__extends(DoStartData, _super);
function DoStartData() {
return _super.call(this) || this;
}
DoStartData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
this.extra = data.extra;
this.ticketId = data.ticketId;
this.credits = data.credits;
this.submitToken = window['resolve'](data.submitToken);
this.token = window['resolve'](data.token);
};
return DoStartData;
}(Data_1.Data));
exports.DoStartData = DoStartData;
__reflect(DoStartData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/game/doStart/DoStartData\".DoStartData");
//# sourceMappingURL=DoStartData.js.map
\ No newline at end of file
{"version":3,"file":"DoStartData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/doStart/DoStartData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAGlC;IAAiC,+BAAI;IA0BjC;eACI,iBAAO;IACX,CAAC;IAEM,4BAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACvD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IACL,kBAAC;AAAD,CAAC,AAzCD,CAAiC,WAAI,GAyCpC;AAzCY,kCAAW;AAAX,UAAA,WAAW,sFAyCvB,CAAA"}
\ No newline at end of file
"use strict";
/**
*Created by cuiliqiang on 2018/3/12
* 开始游戏附加数据
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ExtraData.js.map
\ No newline at end of file
{"version":3,"file":"ExtraData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/doStart/ExtraData.ts"],"names":[],"mappings":";AACA;;;GAGG"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/8
* 查询游戏订单结果
*/
var Data_1 = require("../../Data");
var GetStartStatusData = (function (_super) {
__extends(GetStartStatusData, _super);
function GetStartStatusData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetStartStatusData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
};
return GetStartStatusData;
}(Data_1.Data));
exports.GetStartStatusData = GetStartStatusData;
__reflect(GetStartStatusData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/game/doStart/GetStartStatusData\".GetStartStatusData");
//# sourceMappingURL=GetStartStatusData.js.map
\ No newline at end of file
{"version":3,"file":"GetStartStatusData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/doStart/GetStartStatusData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAElC;IAAwC,sCAAI;IAA5C;;IAQA,CAAC;IANU,mCAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IACL,yBAAC;AAAD,CAAC,AARD,CAAwC,WAAI,GAQ3C;AARY,gDAAkB;AAAlB,UAAA,kBAAkB,oGAQ9B,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("../../Data");
var GetInfoData = (function (_super) {
__extends(GetInfoData, _super);
function GetInfoData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetInfoData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
var data;
if (result.data) {
if (result.data.rsp) {
data = result.data.rsp;
}
else {
data = result.data;
}
}
this.consumerId = data.consumerId;
this.credits = data.credits;
this.totalScore = data.totalScore;
this.maxScore = data.maxScore;
this.maxScoreTime = data.maxScoreTime;
this.rank = data.rank;
this.percentage = data.percentage || 0;
if (data.token) {
this.token = window['resolve'](data.token);
}
this.status = data.status;
};
return GetInfoData;
}(Data_1.Data));
exports.GetInfoData = GetInfoData;
__reflect(GetInfoData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/game/getInfo/GetInfoData\".GetInfoData");
//# sourceMappingURL=GetInfoData.js.map
\ No newline at end of file
{"version":3,"file":"GetInfoData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/getInfo/GetInfoData.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAAkC;AAElC;IAAiC,+BAAI;IAArC;;IAsEA,CAAC;IAzBU,4BAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,IAAI,CAAC;QACT,EAAE,CAAA,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;YACb,EAAE,CAAA,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;gBACjB,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;YAC3B,CAAC;YAAC,IAAI,CAAC,CAAC;gBACJ,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;YACvB,CAAC;QACL,CAAC;QACD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,CAAC,CAAC;QACvC,EAAE,CAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YACZ,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/C,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC9B,CAAC;IACL,kBAAC;AAAD,CAAC,AAtED,CAAiC,WAAI,GAsEpC;AAtEY,kCAAW;AAAX,UAAA,WAAW,sFAsEvB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("../../Data");
var GetSummerInfoData = (function (_super) {
__extends(GetSummerInfoData, _super);
function GetSummerInfoData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetSummerInfoData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
var data;
if (result.data) {
if (result.data.rsp) {
data = result.data.rsp;
}
else {
data = result.data;
}
}
this.consumerId = data.consumerId;
this.totalScore = data.totalScore;
this.maxScore = data.maxScore;
this.status = data.status;
};
return GetSummerInfoData;
}(Data_1.Data));
exports.GetSummerInfoData = GetSummerInfoData;
__reflect(GetSummerInfoData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/game/getInfo/GetSummerInfoData\".GetSummerInfoData");
//# sourceMappingURL=GetSummerInfoData.js.map
\ No newline at end of file
{"version":3,"file":"GetSummerInfoData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/getInfo/GetSummerInfoData.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAAkC;AAElC;IAAuC,qCAAI;IAA3C;;IAuCA,CAAC;IAlBU,kCAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,IAAI,CAAC;QACT,EAAE,CAAA,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;YACb,EAAE,CAAA,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;gBACjB,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;YAC3B,CAAC;YAAC,IAAI,CAAC,CAAC;gBACJ,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;YACvB,CAAC;QACL,CAAC;QACD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC9B,CAAC;IACL,wBAAC;AAAD,CAAC,AAvCD,CAAuC,WAAI,GAuC1C;AAvCY,8CAAiB;AAAjB,UAAA,iBAAiB,kGAuC7B,CAAA"}
\ No newline at end of file
"use strict";
/**
*Created by cuiliqiang on 2018/3/1
* 业务状态
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IStatusData.js.map
\ No newline at end of file
{"version":3,"file":"IStatusData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/getInfo/IStatusData.ts"],"names":[],"mappings":";AACA;;;GAGG"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/1
* 游戏奖项信息
*/
var Data_1 = require("../../Data");
var GetOptionsData = (function (_super) {
__extends(GetOptionsData, _super);
function GetOptionsData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetOptionsData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
this.optionList = result;
};
return GetOptionsData;
}(Data_1.Data));
exports.GetOptionsData = GetOptionsData;
__reflect(GetOptionsData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/game/getOptions/GetOptionsData\".GetOptionsData");
//# sourceMappingURL=GetOptionsData.js.map
\ No newline at end of file
{"version":3,"file":"GetOptionsData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/getOptions/GetOptionsData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAGlC;IAAoC,kCAAI;IAAxC;;IAaA,CAAC;IAPU,+BAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;IAC7B,CAAC;IACL,qBAAC;AAAD,CAAC,AAbD,CAAoC,WAAI,GAavC;AAbY,wCAAc;AAAd,UAAA,cAAc,+FAa1B,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IGameOptionData.js.map
\ No newline at end of file
{"version":3,"file":"IGameOptionData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/getOptions/IGameOptionData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/7
* 游戏规则数据
*/
var Data_1 = require("./../../Data");
var GetRuleData = (function (_super) {
__extends(GetRuleData, _super);
function GetRuleData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetRuleData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
this.ruleText = result;
};
return GetRuleData;
}(Data_1.Data));
exports.GetRuleData = GetRuleData;
__reflect(GetRuleData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/game/getRule/GetRuleData\".GetRuleData");
//# sourceMappingURL=GetRuleData.js.map
\ No newline at end of file
{"version":3,"file":"GetRuleData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/getRule/GetRuleData.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA;;;GAGG;AACH,qCAAoC;AAEpC;IAAiC,+BAAI;IAArC;;IAaA,CAAC;IAPU,4BAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC;IAC3B,CAAC;IACL,kBAAC;AAAD,CAAC,AAbD,CAAiC,WAAI,GAapC;AAbY,kCAAW;AAAX,UAAA,WAAW,sFAavB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/12
* 用户成长值数据
*/
var Data_1 = require("../../Data");
var GetUserTotalScoreData = (function (_super) {
__extends(GetUserTotalScoreData, _super);
function GetUserTotalScoreData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetUserTotalScoreData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
this.score = data.data;
};
return GetUserTotalScoreData;
}(Data_1.Data));
exports.GetUserTotalScoreData = GetUserTotalScoreData;
__reflect(GetUserTotalScoreData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/game/getUserTotalScore/GetUserTotalScoreData\".GetUserTotalScoreData");
//# sourceMappingURL=GetUserTotalScoreData.js.map
\ No newline at end of file
{"version":3,"file":"GetUserTotalScoreData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/getUserTotalScore/GetUserTotalScoreData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAElC;IAA2C,yCAAI;IAA/C;;IAaA,CAAC;IAPU,sCAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC;IAC3B,CAAC;IACL,4BAAC;AAAD,CAAC,AAbD,CAA2C,WAAI,GAa9C;AAbY,sDAAqB;AAArB,UAAA,qBAAqB,oHAajC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/9
* 猜扑克数据
*/
var Data_1 = require("../../Data");
var GuessPokerData = (function (_super) {
__extends(GuessPokerData, _super);
function GuessPokerData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GuessPokerData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
if (!data.data) {
return;
}
this.isWin = data.data.win;
this.poker = data.data.poker;
this.score = data.data.score;
this.times = data.data.times;
};
return GuessPokerData;
}(Data_1.Data));
exports.GuessPokerData = GuessPokerData;
__reflect(GuessPokerData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/game/guessPoker/GuessPokerData\".GuessPokerData");
//# sourceMappingURL=GuessPokerData.js.map
\ No newline at end of file
{"version":3,"file":"GuessPokerData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/guessPoker/GuessPokerData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAElC;IAAoC,kCAAI;IAAxC;;IAkCA,CAAC;IAbU,+BAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACb,MAAM,CAAC;QACX,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;IACjC,CAAC;IACL,qBAAC;AAAD,CAAC,AAlCD,CAAoC,WAAI,GAkCvC;AAlCY,wCAAc;AAAd,UAAA,cAAc,+FAkC1B,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var DataManager_1 = require("./../../../manager/DataManager");
var Data_1 = require("../../Data");
/**
*Created by cuiliqiang on 2018/3/9
* 时时排行榜数据
*/
var RealTimeRankData = (function (_super) {
__extends(RealTimeRankData, _super);
function RealTimeRankData() {
return _super !== null && _super.apply(this, arguments) || this;
}
RealTimeRankData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
this.inRank = data.data.inRank;
if (data.data.user) {
this.myUserData = data.data.user;
DataManager_1.DataManager.ins.getInfoData.rank = this.myUserData.rank;
}
this.userList = data.data.userList;
};
return RealTimeRankData;
}(Data_1.Data));
exports.RealTimeRankData = RealTimeRankData;
__reflect(RealTimeRankData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/game/realtimerank/RealTimeRankData\".RealTimeRankData");
//# sourceMappingURL=RealTimeRankData.js.map
\ No newline at end of file
{"version":3,"file":"RealTimeRankData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/realtimerank/RealTimeRankData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA6D;AAC7D,mCAAkC;AAGlC;;;GAGG;AACH;IAAsC,oCAAI;IAA1C;;IA4BA,CAAC;IAZU,iCAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;QAC/B,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACjB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;YACjC,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QAC5D,CAAC;QACD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;IACvC,CAAC;IACL,uBAAC;AAAD,CAAC,AA5BD,CAAsC,WAAI,GA4BzC;AA5BY,4CAAgB;AAAhB,UAAA,gBAAgB,qGA4B5B,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var DataManager_1 = require("./../../../manager/DataManager");
var Data_1 = require("./../../Data");
var GameSubmitData = (function (_super) {
__extends(GameSubmitData, _super);
function GameSubmitData() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* 更新
* @param result
*/
GameSubmitData.prototype.update = function (result) {
_super.prototype.update.call(this, result);
if (result.data) {
this.orderId = result.data.orderId;
this.percentage = DataManager_1.DataManager.ins.getInfoData.percentage = result.data.rsp.percentage;
}
};
return GameSubmitData;
}(Data_1.Data));
exports.GameSubmitData = GameSubmitData;
__reflect(GameSubmitData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/game/submit/GameSubmitData\".GameSubmitData");
//# sourceMappingURL=GameSubmitData.js.map
\ No newline at end of file
{"version":3,"file":"GameSubmitData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/submit/GameSubmitData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA6D;AAC7D,qCAAoC;AACpC;IAAoC,kCAAI;IAAxC;;IAsBA,CAAC;IAXG;;;OAGG;IACI,+BAAM,GAAb,UAAc,MAAW;QACrB,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,EAAE,CAAA,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA,CAAC;YACZ,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;YACnC,IAAI,CAAC,UAAU,GAAG,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC;QAC1F,CAAC;IACL,CAAC;IACL,qBAAC;AAAD,CAAC,AAtBD,CAAoC,WAAI,GAsBvC;AAtBY,wCAAc;AAAd,UAAA,cAAc,2FAsB1B,CAAA"}
\ No newline at end of file
"use strict";
/**
*Created by cuiliqiang on 2018/3/1
* 用户中奖信息
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IConsumerData.js.map
\ No newline at end of file
{"version":3,"file":"IConsumerData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/winranks/IConsumerData.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
\ No newline at end of file
{"version":3,"file":"IRankData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/winranks/IRankData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("./../Data");
var GetVisitInfoData = (function (_super) {
__extends(GetVisitInfoData, _super);
function GetVisitInfoData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetVisitInfoData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
this.data = result.data;
};
return GetVisitInfoData;
}(Data_1.Data));
exports.GetVisitInfoData = GetVisitInfoData;
__reflect(GetVisitInfoData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/pets/GetVisitInfoData\".GetVisitInfoData");
//# sourceMappingURL=GetVisitInfoData.js.map
\ No newline at end of file
{"version":3,"file":"GetVisitInfoData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pets/GetVisitInfoData.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,kCAAiC;AACjC;IAAsC,oCAAI;IAA1C;;IAWA,CAAC;IARU,iCAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QAErB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;IAC5B,CAAC;IACL,uBAAC;AAAD,CAAC,AAXD,CAAsC,WAAI,GAWzC;AAXY,4CAAgB;AAAhB,UAAA,gBAAgB,wFAW5B,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IPetMsgData.js.map
\ No newline at end of file
{"version":3,"file":"IPetMsgData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pets/IPetMsgData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/7
* 插件抽奖接口
*/
var Data_1 = require("../../Data");
var DoJoinPlugDrawData = (function (_super) {
__extends(DoJoinPlugDrawData, _super);
function DoJoinPlugDrawData() {
return _super !== null && _super.apply(this, arguments) || this;
}
DoJoinPlugDrawData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
this.orderId = result.orderId;
};
return DoJoinPlugDrawData;
}(Data_1.Data));
exports.DoJoinPlugDrawData = DoJoinPlugDrawData;
__reflect(DoJoinPlugDrawData.prototype, "\"e:/yzw_hjcd/egret/libs/tw/data/plug/doJoinPlugDraw/DoJoinPlugDrawData\".DoJoinPlugDrawData");
//# sourceMappingURL=DoJoinPlugDrawData.js.map
\ No newline at end of file
{"version":3,"file":"DoJoinPlugDrawData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/plug/doJoinPlugDraw/DoJoinPlugDrawData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAElC;IAAwC,sCAAI;IAA5C;;IAaA,CAAC;IAPU,mCAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;IAClC,CAAC;IACL,yBAAC;AAAD,CAAC,AAbD,CAAwC,WAAI,GAa3C;AAbY,gDAAkB;AAAlB,UAAA,kBAAkB,2GAa9B,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var NetName;
(function (NetName) {
//游戏
NetName[NetName["GAME_INFO"] = 1] = "GAME_INFO";
NetName[NetName["GAME_SUMMERINFO"] = 2] = "GAME_SUMMERINFO";
NetName[NetName["GAME_START"] = 3] = "GAME_START";
NetName[NetName["GAME_START_STATUS"] = 4] = "GAME_START_STATUS";
NetName[NetName["GAME_SUBMIT"] = 5] = "GAME_SUBMIT";
NetName[NetName["GAME_SUBMIT_STATUS"] = 6] = "GAME_SUBMIT_STATUS";
NetName[NetName["GAME_RANKS"] = 7] = "GAME_RANKS";
NetName[NetName["GAME_OPTIONS"] = 8] = "GAME_OPTIONS";
NetName[NetName["GAME_RULE"] = 9] = "GAME_RULE";
NetName[NetName["GAME_REAL_TIME_RANK"] = 10] = "GAME_REAL_TIME_RANK";
NetName[NetName["GAME_DATA_PASH"] = 11] = "GAME_DATA_PASH";
NetName[NetName["GAME_GUESS_POKER"] = 12] = "GAME_GUESS_POKER";
NetName[NetName["GAME_TOTAL_SCORE"] = 13] = "GAME_TOTAL_SCORE";
NetName[NetName["GAME_REVIVE"] = 14] = "GAME_REVIVE";
NetName[NetName["GAME_REVIVE_STATUS"] = 15] = "GAME_REVIVE_STATUS";
NetName[NetName["GAME_SUMMER_BUYPROP"] = 16] = "GAME_SUMMER_BUYPROP";
NetName[NetName["GAME_SUMMER_GET_ORDER_STATUS"] = 17] = "GAME_SUMMER_GET_ORDER_STATUS";
NetName[NetName["GAME_SUMMER_GET_TOY_INFO"] = 18] = "GAME_SUMMER_GET_TOY_INFO";
//活动工具
NetName[NetName["CUSTOM_ELEMENT"] = 19] = "CUSTOM_ELEMENT";
NetName[NetName["CUSTOM_THROUGH_INFO"] = 20] = "CUSTOM_THROUGH_INFO";
NetName[NetName["CUSTOM_DO_JOIN"] = 21] = "CUSTOM_DO_JOIN";
NetName[NetName["CUSTOM_ORDER_STATUS"] = 22] = "CUSTOM_ORDER_STATUS";
NetName[NetName["CUSTOM_ORDER_INFO"] = 23] = "CUSTOM_ORDER_INFO";
NetName[NetName["CUSTOM_BEFOR_SUBMIT"] = 24] = "CUSTOM_BEFOR_SUBMIT";
NetName[NetName["CUSTOM_QUESTION_SUBMIT"] = 25] = "CUSTOM_QUESTION_SUBMIT";
NetName[NetName["CUSTOM_THROUGH_SUBMIT"] = 26] = "CUSTOM_THROUGH_SUBMIT";
NetName[NetName["CUSTOM_PRIZE_DETAIL"] = 27] = "CUSTOM_PRIZE_DETAIL";
//插件
NetName[NetName["PLUG_DO_JOIN"] = 28] = "PLUG_DO_JOIN";
NetName[NetName["PLUG_ORDER_STATUS"] = 29] = "PLUG_ORDER_STATUS";
NetName[NetName["PLUG_OPTION_INFO"] = 30] = "PLUG_OPTION_INFO";
NetName[NetName["PLUG_UNBLOCKING"] = 31] = "PLUG_UNBLOCKING";
NetName[NetName["PLUG_PRIZE_INFO"] = 32] = "PLUG_PRIZE_INFO";
//全局
NetName[NetName["GET_ROLE"] = 33] = "GET_ROLE";
NetName[NetName["SET_ROLE"] = 34] = "SET_ROLE";
NetName[NetName["GET_CREDITS"] = 35] = "GET_CREDITS";
NetName[NetName["ADD_TIMES"] = 36] = "ADD_TIMES";
NetName[NetName["COLLECT_RULE"] = 37] = "COLLECT_RULE";
NetName[NetName["OPEN_COLLECT"] = 38] = "OPEN_COLLECT";
NetName[NetName["WINNERS"] = 39] = "WINNERS";
NetName[NetName["GET_TOKEN"] = 40] = "GET_TOKEN";
//宠物养成
NetName[NetName["PET_ADOPTE"] = 41] = "PET_ADOPTE";
NetName[NetName["PET_STATUS"] = 42] = "PET_STATUS";
NetName[NetName["PET_INFO"] = 43] = "PET_INFO";
NetName[NetName["PET_FEED"] = 44] = "PET_FEED";
NetName[NetName["PET_TOYS"] = 45] = "PET_TOYS";
NetName[NetName["PET_TOY_EXCHANGE"] = 46] = "PET_TOY_EXCHANGE";
NetName[NetName["PET_TOY_USE"] = 47] = "PET_TOY_USE";
NetName[NetName["PET_COLLECT"] = 48] = "PET_COLLECT";
NetName[NetName["PET_GET_RANK_LIST"] = 49] = "PET_GET_RANK_LIST";
NetName[NetName["PET_GET_FOOD_PILES"] = 50] = "PET_GET_FOOD_PILES";
NetName[NetName["PET_COLLECT_FOOD"] = 51] = "PET_COLLECT_FOOD";
//外来宠物养成
NetName[NetName["PETS_GET_HOME_INFO"] = 52] = "PETS_GET_HOME_INFO";
NetName[NetName["PETS_GET_ACT_TOYS"] = 53] = "PETS_GET_ACT_TOYS";
NetName[NetName["PETS_GET_USER_TOYS"] = 54] = "PETS_GET_USER_TOYS";
NetName[NetName["PETS_USE_TOYS"] = 55] = "PETS_USE_TOYS";
NetName[NetName["PETS_TOY_EXCHANGE"] = 56] = "PETS_TOY_EXCHANGE";
NetName[NetName["PETS_BATCHOLLECT_FOOD"] = 57] = "PETS_BATCHOLLECT_FOOD";
NetName[NetName["PETS_VISI_STATISTICS"] = 58] = "PETS_VISI_STATISTICS";
NetName[NetName["PETS_GET_VISIT_INFO"] = 59] = "PETS_GET_VISIT_INFO";
NetName[NetName["PETS_VISIT_DETAIL"] = 60] = "PETS_VISIT_DETAIL";
NetName[NetName["PETS_COLLECT_GIFT_RECORD"] = 61] = "PETS_COLLECT_GIFT_RECORD";
//签到
NetName[NetName["SIGN_INFO"] = 62] = "SIGN_INFO";
NetName[NetName["SIGN_DO_SIGN"] = 63] = "SIGN_DO_SIGN";
//查询奖品记录
NetName[NetName["GET_RECORD"] = 64] = "GET_RECORD";
})(NetName = exports.NetName || (exports.NetName = {}));
//# sourceMappingURL=NetName.js.map
\ No newline at end of file
{"version":3,"file":"NetName.js","sourceRoot":"","sources":["../../../../libs/tw/enum/NetName.ts"],"names":[],"mappings":";;AAAA,IAAY,OA0EX;AA1ED,WAAY,OAAO;IACf,IAAI;IACJ,+CAAa,CAAA;IACb,2DAAe,CAAA;IACf,iDAAU,CAAA;IACV,+DAAiB,CAAA;IACjB,mDAAW,CAAA;IACX,iEAAkB,CAAA;IAClB,iDAAU,CAAA;IACV,qDAAY,CAAA;IACZ,+CAAS,CAAA;IACT,oEAAmB,CAAA;IACnB,0DAAc,CAAA;IACd,8DAAgB,CAAA;IAChB,8DAAgB,CAAA;IAChB,oDAAW,CAAA;IACX,kEAAkB,CAAA;IAClB,oEAAmB,CAAA;IACnB,sFAA4B,CAAA;IAC5B,8EAAwB,CAAA;IACxB,MAAM;IACN,0DAAc,CAAA;IACd,oEAAmB,CAAA;IACnB,0DAAc,CAAA;IACd,oEAAmB,CAAA;IACnB,gEAAiB,CAAA;IACjB,oEAAmB,CAAA;IACnB,0EAAsB,CAAA;IACtB,wEAAqB,CAAA;IACrB,oEAAmB,CAAA;IACnB,IAAI;IACJ,sDAAY,CAAA;IACZ,gEAAiB,CAAA;IACjB,8DAAgB,CAAA;IAChB,4DAAe,CAAA;IACf,4DAAe,CAAA;IACf,IAAI;IACJ,8CAAQ,CAAA;IACR,8CAAQ,CAAA;IACR,oDAAW,CAAA;IACX,gDAAS,CAAA;IACT,sDAAY,CAAA;IACZ,sDAAY,CAAA;IACZ,4CAAO,CAAA;IACP,gDAAS,CAAA;IACT,MAAM;IACN,kDAAU,CAAA;IACV,kDAAU,CAAA;IACV,8CAAQ,CAAA;IACR,8CAAQ,CAAA;IACR,8CAAQ,CAAA;IACR,8DAAgB,CAAA;IAChB,oDAAW,CAAA;IACX,oDAAW,CAAA;IACX,gEAAiB,CAAA;IACjB,kEAAkB,CAAA;IAClB,8DAAgB,CAAA;IAChB,QAAQ;IACR,kEAAkB,CAAA;IAClB,gEAAiB,CAAA;IACjB,kEAAkB,CAAA;IAClB,wDAAa,CAAA;IACb,gEAAiB,CAAA;IACjB,wEAAqB,CAAA;IACrB,sEAAoB,CAAA;IACpB,oEAAmB,CAAA;IACnB,gEAAiB,CAAA;IACjB,8EAAwB,CAAA;IACxB,IAAI;IACJ,gDAAS,CAAA;IACT,sDAAY,CAAA;IAEZ,QAAQ;IACR,kDAAU,CAAA;AACd,CAAC,EA1EW,OAAO,GAAP,eAAO,KAAP,eAAO,QA0ElB"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var TwLang = (function () {
function TwLang() {
}
TwLang.lang_001 = "单例模式,无法重复初始化";
TwLang.lang_002 = "积分不足";
TwLang.lang_003 = "次数不足";
TwLang.lang_004 = "今日";
TwLang.lang_005 = "剩余{0}次";
TwLang.lang_006 = "{0}{1}/次";
TwLang.lang_007 = "请先登录";
TwLang.lang_008 = '您成功击败了{0}的玩家';
TwLang.lang_009 = '本次成绩:{0}';
TwLang.lang_010 = '最佳成绩:{0}';
TwLang.lang_011 = '累计总成绩:{0}';
TwLang.lang_012 = '游戏结束时间为:{0}';
TwLang.lang_013 = '游戏结束一天内开奖';
TwLang.lang_014 = "对不起,你还未有通关成绩";
TwLang.lang_015 = "你的最佳成绩为{0}{1},排名第{2}名";
TwLang.lang_016 = '分';
TwLang.lang_017 = '成功击败了{0}%的玩家';
TwLang.lang_018 = '当前排名:{0}';
TwLang.lang_019 = '抱歉,您未上榜';
TwLang.lang_020 = '您的排名:{0}';
TwLang.lang_021 = '恭喜您获得了:{0}';
TwLang.lang_022 = '很遗憾,没有中奖哦!';
TwLang.lang_023 = '您的用户ID是:{0}';
TwLang.lang_024 = '您未参与游戏';
return TwLang;
}());
exports.TwLang = TwLang;
__reflect(TwLang.prototype, "\"e:/yzw_hjcd/egret/libs/tw/util/TwLang\".TwLang");
//# sourceMappingURL=TwLang.js.map
\ No newline at end of file
{"version":3,"file":"TwLang.js","sourceRoot":"","sources":["../../../../libs/tw/util/TwLang.ts"],"names":[],"mappings":";;;;;AAAA;IAAA;IA2BA,CAAC;IA1BiB,eAAQ,GAAG,cAAc,CAAC;IAC1B,eAAQ,GAAG,MAAM,CAAC;IAClB,eAAQ,GAAG,MAAM,CAAC;IAClB,eAAQ,GAAG,IAAI,CAAC;IAChB,eAAQ,GAAG,QAAQ,CAAC;IACpB,eAAQ,GAAG,UAAU,CAAC;IACtB,eAAQ,GAAG,MAAM,CAAC;IAClB,eAAQ,GAAG,cAAc,CAAC;IAC1B,eAAQ,GAAG,UAAU,CAAC;IACtB,eAAQ,GAAG,UAAU,CAAC;IACtB,eAAQ,GAAG,WAAW,CAAC;IACvB,eAAQ,GAAG,aAAa,CAAC;IACzB,eAAQ,GAAG,WAAW,CAAC;IACvB,eAAQ,GAAG,cAAc,CAAC;IAC1B,eAAQ,GAAG,uBAAuB,CAAC;IACnC,eAAQ,GAAG,GAAG,CAAC;IACf,eAAQ,GAAG,cAAc,CAAC;IAC1B,eAAQ,GAAG,UAAU,CAAC;IACtB,eAAQ,GAAG,SAAS,CAAC;IACrB,eAAQ,GAAG,UAAU,CAAC;IACtB,eAAQ,GAAG,YAAY,CAAC;IACxB,eAAQ,GAAG,YAAY,CAAC;IACxB,eAAQ,GAAG,aAAa,CAAC;IACzB,eAAQ,GAAG,QAAQ,CAAC;IAGtC,aAAC;CAAA,AA3BD,IA2BC;AA3BY,wBAAM;AAAN,UAAA,MAAM,+DA2BlB,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getResPath = function () { return resPath || ''; };
exports.getSkinPath = function (key) { return "resource/skins/" + key + "Skin.exml"; };
//# sourceMappingURL=utils.js.map
\ No newline at end of file
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;AAAa,QAAA,UAAU,GAAG,cAAM,OAAA,OAAO,IAAI,EAAE,EAAb,CAAa,CAAC;AACjC,QAAA,WAAW,GAAG,UAAC,GAAG,IAAK,OAAA,oBAAkB,GAAG,cAAW,EAAhC,CAAgC,CAAA"}
\ No newline at end of file
{
"engineVersion": "5.2.7",
"compilerVersion": "5.2.7",
"template": {},
"target": {
"current": "web"
},
"eui": {
"exmlRoot": [
"resource/eui_skins"
],
"themes": [
"resource/default.thm.json"
],
"exmlPublishPolicy": "commonjs"
},
"modules": [
{
"name": "egret"
},
{
"name": "eui"
},
{
"name": "assetsmanager"
},
{
"name": "tween"
},
{
"name": "game"
},
{
"name": "promise"
}
]
}
\ No newline at end of file
This diff is collapsed.
export as namespace SVGA;
declare global {
const SVGA: {
Parser: typeof Parser,
EgretMovieClip: typeof EgretMovieClip,
}
}
export class VideoEntity {
videoSize: { width: number, height: number }
FPS: number
frames: number
}
export class Parser {
load(url: string, success: (videoItem: VideoEntity) => void, failure?: (err: Error) => void): void
}
export class EgretMovieClip extends egret.DisplayObjectContainer {
/**
* 锁步,只关心每帧间隔时间,不管浏览器帧率
* 默认false
*/
lockStep: boolean;
/**
* 当前帧数
* 1最小
*/
readonly currentFrame: number;
/**
* 是否播放
*/
readonly isPlaying: boolean;
/**
* 正序还是反序
*/
readonly isFront: boolean;
/**
* 所有帧数
*/
totalFrames: number;
/**
*
* @param imagekey 要替换的图片key值
* @param imageUrl 图片路径或_png
*/
setImage(imagekey: string, imageUrl: string): void
/**
* 停止
*/
stop(): void;
/**
* 播放
*/
play(): void;
/**
* 进入下一帧
*/
nextFrame(): void;
/**
* 进入上一帧
*/
prevFrame(): void;
/**
* 停在指定帧
* @param frameIndex
*/
gotoAndStop(frameIndex: number): void;
/**
* 从某帧开始播放
* @param frameIndex 1开始
* @param isFront 默认true正向播放
*/
gotoAndPlay(frameIndex: number, isFront: boolean): void;
readonly isInTimeFrame: boolean;
/**
* 帧数范围播放
* @param beginFrame 开始播放的帧序号,默认第一帧
* @param endFrame 结束播放的帧序号,默认最后一帧
* @param loops 循环次数, 默认1次,负数为无限次,无限循环callback无效,因为永远不会完成,用正常的complete监听最后一帧或第一帧
* @param callback 所有播放完的回调
*/
startAniRange(beginFrame: number, endFrame: number, loops: number, callback?: Function): void
constructor(mv: VideoEntity)
}
declare var resPath:string;
declare var requirelogin:Function;
declare var CFG;
declare var __debug__:number;
declare var __t0__:number;
declare interface IBoxItem {
award: number;
skin: string;
offset: number[];
}
/**
* 1.捞一次扣一次积分,不管捞没捞到宝箱,不管宝箱是否被猴子抢走;2.只有捞到宝箱,参与了一次抽奖才扣积分
*/
declare var __mode__:number;
declare var __award_thanks_score__:number;
declare var __boxmap__: { [key: string]: IBoxItem };
declare var __bgUrl__:string;
declare var __monkeyHandSize__:number;
declare var __boxMoveSpeed__:number;
declare var __BOX_CREATE_INTERVAL__:number;
declare var __boxOpenState__:string;
\ No newline at end of file
/**
* @note 函数 window.downloadApp
* @modify by zsl@duiba.com.cn
* @date 2016-07-31
* @modify 2016-09-01
*/
;
(function($) {
var ua = navigator.userAgent.toLowerCase();
// -------------------------- downloadApp主要函数 --------------------------//
var downloadApp = function() {
if (window.downloadAppConfig) {
if (ua.match(/iphone/ig) || ua.match(/ipad/ig)){
//ios
download();
}else{
if (window.downloadAppConfig.confirm || window.downloadAppConfig.confirm == 'true') {
$.modal({
type: 'confirm',
title: '下载确认',
section: '即将开始下载,是否继续',
callback: {
save: function() {
if (window.downloadAppConfig.stats) {
$.ajax({
url: window.downloadAppConfig.stats,
complete: function() {
download();
}
})
} else {
download();
}
}
}
})
}else{
download();
}
}
}else {
console.error('请先配置参数window.downloadAppConfig');
}
}
// -------------------------- format函数 --------------------------//
var formatUrl = function(downloadUrl) {
if (downloadUrl.indexOf('dbnewopen') != -1) {
window.location.href = downloadUrl;
} else {
if (downloadUrl.indexOf('?') !== -1) {
// modify by zsl date2016-07-28
if (downloadUrl.indexOf('#') !== -1) {
// 如果包含#号
window.location.href = downloadUrl.split('#')[0] + '&dbnewopen#' + downloadUrl.split('#')[1];
}else {
window.location.href = downloadUrl + '&dbnewopen';
}
} else if (downloadUrl !== '') {
window.location.href = downloadUrl + '?dbnewopen';
}
}
}
// -------------------------- URL处理函数 --------------------------//
var download = function() {
var openUrl = window.downloadAppConfig.openUrl || '';
var downloadUrl = '';
// 淘客url处理 start ------------------------------------------------------------
var TKHelper,
isSpecial = false;
if ( window.TBSDK_ADA !== undefined ) {
TKHelper = function(downloadUrl) {
var isTBSDK = function() {
isSpecial = true;
if (window.isSpecialApp) {
window.location.href = downloadUrl;
} else {
window.BC_SDK.openPage({
url: downloadUrl
});
}
};
// 如果包含手淘url 唤起手淘App的功能
if (downloadUrl.indexOf('taoquan.taobao.com') !== -1 || downloadUrl.indexOf('shop.m.taobao.com') !== -1 ) {
window.BC_SDK = TBSDK_ADA.init({
"appkey": '23402401',
openTBAPP: true
});
isTBSDK();
}
// 如果是s.click.taobao.com的URL,点击则调用百川goTaoke方法唤起手淘
if(downloadUrl.indexOf('s.click.taobao.com') !== -1) {
window.BC_SDK = TBSDK_ADA.init({
"appkey": '23454468',
"appSecret": '3846ae97316a0b31321a8f493f826986',
openTBAPP: true
});
isTBSDK();
}
};
}
// 淘客url处理 end -----------------------------------------------------------
// 特殊处理
var handleSpecial = function(downloadUrl) {
// 如果downloadUrl是weixin直接打开url(加了&dbnewopen SDK唤起weixin 中间会产生一个空白页)
if (downloadUrl && downloadUrl.indexOf('weixin://') !== -1) {
isSpecial = true;
window.location.href = downloadUrl;
return;
}
// @special openUrl为微信服务,
if (openUrl && openUrl.indexOf('weixin://') !== -1) {
return;
}
// 如果含有手淘url 唤起手淘App的功能
if (window.TBSDK_ADA !== undefined ) {
TKHelper(downloadUrl);
}
};
if (ua.match(/iphone/ig) || ua.match(/ipad/ig)) {
// ios
downloadUrl = window.downloadAppConfig.iosDownloadUrl;
handleSpecial(downloadUrl);
if(isSpecial){
return;
}
if (ua.match(/MicroMessenger/ig)) {
formatUrl(downloadUrl);
} else {
if (openUrl) {
window.location.href = openUrl;
} else {
if (downloadUrl.indexOf('itunes.apple.com') != -1) {
var ifr = document.createElement('iframe');
ifr.src = downloadUrl;
ifr.style.display = 'none';
window.setTimeout(function() {
document.body.appendChild(ifr);
}, 300)
} else {
formatUrl(downloadUrl);
}
}
}
} else {
// android
downloadUrl = window.downloadAppConfig.androidDownloadUrl;
handleSpecial(downloadUrl);
if(isSpecial){
return;
}
// 如果有oepnUrl
if (openUrl) {
window.location.href = openUrl;
return;
}
if (downloadUrl.indexOf('.apk') != -1 || downloadUrl.indexOf('dbnewopen') != -1) {
window.location.href = downloadUrl;
} else {
formatUrl(downloadUrl);
}
}
}
window.downloadApp = downloadApp;
})(Zepto);
declare class CertificateSkin extends eui.Skin{
}
declare class ConfirmSkin extends eui.Skin{
}
declare class endSkin extends eui.Skin{
}
declare class FinishSkin extends eui.Skin{
}
declare class GuideSkin extends eui.Skin{
}
declare class HeadItemSkin extends eui.Skin{
}
declare class MsgSkin extends eui.Skin{
}
declare class NewFile extends eui.Skin{
}
declare class NoCreditsSkin extends eui.Skin{
}
declare class NoPrizeSkin extends eui.Skin{
}
declare class PKPrizeSkin extends eui.Skin{
}
declare class PKRuleSkin extends eui.Skin{
}
declare class PKScoreSkin extends eui.Skin{
}
declare class PKSkin extends eui.Skin{
}
declare class PlaceSkin extends eui.Skin{
}
declare class PrizeSkin extends eui.Skin{
}
declare class RankItemSkin extends eui.Skin{
}
declare class RankSkin extends eui.Skin{
}
declare class RecordMapSkin extends eui.Skin{
}
declare class RecordSkin extends eui.Skin{
}
declare class RuleSkin extends eui.Skin{
}
declare class ShareSkin extends eui.Skin{
}
declare class SloganSkin extends eui.Skin{
}
declare class StartSkin extends eui.Skin{
}
declare class TransRecordItemSkin extends eui.Skin{
}
declare module skins{
class VScrollBarSkin extends eui.Skin{
}
}
declare class WaitingSkin extends eui.Skin{
}
declare module ui{
class IconButtonSkin extends eui.Skin{
}
}
declare module ui{
class MusicBtnSkin extends eui.Skin{
}
}
declare module ui{
class ProgressBarSkin extends eui.Skin{
}
}
declare module ui{
class SliderSkin extends eui.Skin{
}
}
declare module ui{
class startBtnSkin extends eui.Skin{
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ES6Promise=e()}(this,function(){"use strict";function t(t){return"function"==typeof t||"object"==typeof t&&null!==t}function e(t){return"function"==typeof t}function n(t){I=t}function r(t){J=t}function o(){return function(){return process.nextTick(a)}}function i(){return"undefined"!=typeof H?function(){H(a)}:c()}function s(){var t=0,e=new V(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){return t.port2.postMessage(0)}}function c(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;G>t;t+=2){var e=$[t],n=$[t+1];e(n),$[t]=void 0,$[t+1]=void 0}G=0}function f(){try{var t=require,e=t("vertx");return H=e.runOnLoop||e.runOnContext,i()}catch(n){return c()}}function l(t,e){var n=arguments,r=this,o=new this.constructor(p);void 0===o[ee]&&k(o);var i=r._state;return i?!function(){var t=n[i-1];J(function(){return x(i,o,t,r._result)})}():E(r,o,t,e),o}function h(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(p);return w(n,t),n}function p(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function d(){return new TypeError("A promises callback cannot return that same promise.")}function _(t){try{return t.then}catch(e){return ie.error=e,ie}}function y(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function m(t,e,n){J(function(t){var r=!1,o=y(n,e,function(n){r||(r=!0,e!==n?w(t,n):S(t,n))},function(e){r||(r=!0,j(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,j(t,o))},t)}function b(t,e){e._state===re?S(t,e._result):e._state===oe?j(t,e._result):E(e,void 0,function(e){return w(t,e)},function(e){return j(t,e)})}function g(t,n,r){n.constructor===t.constructor&&r===l&&n.constructor.resolve===h?b(t,n):r===ie?j(t,ie.error):void 0===r?S(t,n):e(r)?m(t,n,r):S(t,n)}function w(e,n){e===n?j(e,v()):t(n)?g(e,n,_(n)):S(e,n)}function A(t){t._onerror&&t._onerror(t._result),P(t)}function S(t,e){t._state===ne&&(t._result=e,t._state=re,0!==t._subscribers.length&&J(P,t))}function j(t,e){t._state===ne&&(t._state=oe,t._result=e,J(A,t))}function E(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+re]=n,o[i+oe]=r,0===i&&t._state&&J(P,t)}function P(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?x(n,r,o,i):o(i);t._subscribers.length=0}}function T(){this.error=null}function M(t,e){try{return t(e)}catch(n){return se.error=n,se}}function x(t,n,r,o){var i=e(r),s=void 0,u=void 0,c=void 0,a=void 0;if(i){if(s=M(r,o),s===se?(a=!0,u=s.error,s=null):c=!0,n===s)return void j(n,d())}else s=o,c=!0;n._state!==ne||(i&&c?w(n,s):a?j(n,u):t===re?S(n,s):t===oe&&j(n,s))}function C(t,e){try{e(function(e){w(t,e)},function(e){j(t,e)})}catch(n){j(t,n)}}function O(){return ue++}function k(t){t[ee]=ue++,t._state=void 0,t._result=void 0,t._subscribers=[]}function Y(t,e){this._instanceConstructor=t,this.promise=new t(p),this.promise[ee]||k(this.promise),B(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&S(this.promise,this._result))):j(this.promise,q())}function q(){return new Error("Array Methods must be provided an Array")}function F(t){return new Y(this,t).promise}function D(t){var e=this;return new e(B(t)?function(n,r){for(var o=t.length,i=0;o>i;i++)e.resolve(t[i]).then(n,r)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function K(t){var e=this,n=new e(p);return j(n,t),n}function L(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function N(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function U(t){this[ee]=O(),this._result=this._state=void 0,this._subscribers=[],p!==t&&("function"!=typeof t&&L(),this instanceof U?C(this,t):N())}function W(){var t=void 0;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if("undefined"!=typeof egret_native&&egret_native.capability&&!egret_native.capability("Promise")&&(n=void 0),n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(e){}if("[object Promise]"===r&&!n.cast)return}t.Promise=U}var z=void 0;z=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var B=z,G=0,H=void 0,I=void 0,J=function(t,e){$[G]=t,$[G+1]=e,G+=2,2===G&&(I?I(a):te())},Q="undefined"!=typeof window?window:void 0,R=Q||{},V=R.MutationObserver||R.WebKitMutationObserver,X="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),Z="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,$=new Array(1e3),te=void 0;te=X?o():V?s():Z?u():void 0===Q&&"function"==typeof require?f():c();var ee=Math.random().toString(36).substring(16),ne=void 0,re=1,oe=2,ie=new T,se=new T,ue=0;return Y.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===ne&&t>n;n++)this._eachEntry(e[n],n)},Y.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===h){var o=_(t);if(o===l&&t._state!==ne)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===U){var i=new n(p);g(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},Y.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===ne&&(this._remaining--,t===oe?j(r,n):this._result[e]=n),0===this._remaining&&S(r,this._result)},Y.prototype._willSettleAt=function(t,e){var n=this;E(t,void 0,function(t){return n._settledAt(re,e,t)},function(t){return n._settledAt(oe,e,t)})},U.all=F,U.race=D,U.resolve=h,U.reject=K,U._setScheduler=n,U._setAsap=r,U._asap=J,U.prototype={constructor:U,then:l,"catch":function(t){return this.then(null,t)}},U.polyfill=W,U.Promise=U,U}),ES6Promise.polyfill();
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
import { NetManager } from "../../../libs/tw/manager/NetManager";
import { DataManager } from "../../../libs/tw/manager/DataManager";
/**
* 开始游戏
* @param callback
* @param isAgain
* @param credits
* @param customizedType
*/
const doStart = (callback: Function, isAgain = false, credits?: number, customizedType?: number) => {
if (window['requirelogin'] && window['config_notrequirelogin'] === undefined) {
window['requirelogin']();
return;
}
NetManager.ins.doStart((success: boolean) => {
if (success) {
getStartOrderStatus(callback, customizedType);
} else {
callback(success);
}
},
isAgain,
credits,
customizedType);
}
/**
* 查询订单结果
* @param callback
* @param ticketId
* @param customizedType
*/
const getStartOrderStatus = (callback: Function, customizedType?: number) => {
NetManager.ins.getStartStatus(
callback,
DataManager.ins.doStartData.ticketId,
() => { return DataManager.ins.getStartStatusData.code != 1; },
5,
customizedType);
}
export default doStart;
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment