116 lines
5.2 KiB
JavaScript
116 lines
5.2 KiB
JavaScript
"use strict";
|
|
cc._RF.push(module, '61d4ccY2ztLMYIh8WvqPPAw', 'GameAppStart');
|
|
// Script/module/GameStart/GameAppStart.ts
|
|
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Fx = void 0;
|
|
var GameConfig_1 = require("../Config/GameConfig");
|
|
var HttpUtil_1 = require("../Crypto/HttpUtil");
|
|
var AudioManager_1 = require("../Music/AudioManager");
|
|
var Notification_1 = require("../Notification/Notification");
|
|
var Storage_1 = require("../Storage/Storage");
|
|
var GameTool_1 = require("../Tool/GameTool");
|
|
var Fx = /** @class */ (function () {
|
|
function Fx() {
|
|
}
|
|
Fx.prototype.init = function () {
|
|
console.log("1初始化");
|
|
//基础状态信息
|
|
this.StateInfo = {
|
|
debugMode: true,
|
|
networkConnected: true,
|
|
networkType: 'none',
|
|
isOnForeground: true //当前是否是在前台
|
|
};
|
|
//应用系统信息
|
|
//配置文件
|
|
Fx.GameConfig = GameConfig_1.GameConfig;
|
|
Fx.HttpUtil = HttpUtil_1.default;
|
|
Fx.GameTool = GameTool_1.GameTool;
|
|
Fx.AudioManager = AudioManager_1.default;
|
|
Fx.Notifications = Notification_1.Notifications;
|
|
Fx.StorageMessage = Storage_1.StorageMessage;
|
|
Fx.ShareInfo = {
|
|
queryId: -1 //分享id
|
|
};
|
|
/*
|
|
* 客户端埋点分享类型
|
|
*/
|
|
Fx.BurialShareType = {
|
|
Default: "default",
|
|
Invite: "invite",
|
|
DailyInviteRoomJoin: 'invite_join_room',
|
|
DailyInviteFriend: 'invite_friend',
|
|
DailyInviteGroup: 'invate_group',
|
|
DailyInviteGroupAlive: 'invate_alive',
|
|
DailyInviteGroupReward: 'invate_rewared',
|
|
DailyInviteGroupBox: 'invate_box',
|
|
DailyInviteGroupBall: 'invate_ball',
|
|
MatchResult: 'matchResult',
|
|
MatchFix5: 'MatchFix5',
|
|
MatchFix20: 'MatchFix20',
|
|
MatchFix100: 'MatchFix100',
|
|
MatchFix500: 'MatchFix500',
|
|
NewerRedEnvelope: 'newerRedEnvelope',
|
|
CoinRoomResult: 'coinRoomResult',
|
|
HighRate: "highRate",
|
|
CoinRoomWinStreak: 'coinRoomWinStreak',
|
|
CoinRoomBankruptcy1: 'coinRoomBankruptcy1',
|
|
CoinRoomBankruptcy2: 'coinRoomBankruptcy2',
|
|
CoinRoomBankruptcy3: 'coinRoomBankruptcy3',
|
|
};
|
|
/*
|
|
* 分享到哪儿给奖励 group frined all
|
|
*/
|
|
Fx.ShareWhereReward = {
|
|
Group: "group",
|
|
Friend: "friend",
|
|
All: "all",
|
|
};
|
|
//用于存储消息的ID
|
|
Fx.storageType = {
|
|
storageTypeCustom: 1000101,
|
|
};
|
|
//用于存储提示语 按照步骤提示
|
|
Fx.tipType = {
|
|
tipOne: '神农氏回到家中,开始整理今天收集来的物品。当他第一次拿出或说出一种植物时,请告诉他这是新植物。',
|
|
tipTwo: '如果他拿出或说出的植物你今天看到过,请告诉他上次是看到的;如果你听他说过,则请告诉他上次是听到的。',
|
|
tipErrNew: '这是这局游戏第一次出现{植物}',
|
|
tipErrOld: '{植物}刚才出现过呢',
|
|
tipErrHear: '上次遇到{植物}时,似乎不是听到的吧',
|
|
tipErrSee: '上次遇到{植物}时,似乎不是看到的吧',
|
|
tipErrLast: '之前确实看到过{植物},但最近一次似乎不是看到的呢',
|
|
};
|
|
//暂时不用
|
|
// fx.clickStatEventType = {
|
|
// clickStatEventTypeVideoAD : 20173201,//视频播放完成
|
|
// clickStatEventTypeClickAdVideo : 20173202,//视频播放为完成
|
|
// clickStatEventTypeBannerAD : 20173203,//banner播放为完成
|
|
// clickStatEventTypeUserFrom : 99990001,//用户来源
|
|
// clickStatEventTypeShare : 99990002,//用户分享
|
|
// clickStatEventTypeClickAdBtn : 99990007,//点击分流icon
|
|
// clickStatEventTypeBannerAD2 : 67890033, // banner广告干预
|
|
// clickStatEventTypeSubmitVersionInfo : 9999, //上报微信版本及基础库信息
|
|
// clickStatEventTypeClickFirstAd : 99990003, //分流icon显示
|
|
// clickStatEventTypeClickSecondAd : 99990004, //玩家点击分流按钮
|
|
// clickStatEventTypeWxLoginStart : 10001,//微信登录开始
|
|
// clickStatEventTypeWxLoginSuccess : 10002,//微信登录成功
|
|
// clickStatEventTypeWxLoginFailed : 10003,//微信登录失败
|
|
// clickStatEventTypeAuthorizationStart : 10003,//授权开始
|
|
// clickStatEventTypeAuthorizationSuccess : 10004,//授权成功
|
|
// clickStatEventTypeAuthorizationFailed : 10005,//授权失败
|
|
// clickStatEventTypeLoginSDKStart : 10007,//登录SDK开始
|
|
// clickStatEventTypeLoginSDKSuccess : 10008,//登录SDK成功
|
|
// clickStatEventTypeLoginSDKFailed : 10009,//登录SDK时失败
|
|
// clickStatEventTypeTCP_Start : 10009,//TCP连接开始
|
|
// clickStatEventTypeTCP_Success : 10010,//TCP连接成功
|
|
// clickStatEventTypeTCP_Failed : 10011,//TCP连接失败
|
|
// };
|
|
};
|
|
return Fx;
|
|
}());
|
|
exports.Fx = Fx;
|
|
;
|
|
|
|
cc._RF.pop(); |