98 lines
3.4 KiB
JavaScript
98 lines
3.4 KiB
JavaScript
"use strict";
|
|
cc._RF.push(module, '61d4ccY2ztLMYIh8WvqPPAw', 'GameAppStart');
|
|
// Script/module/GameStart/GameAppStart.ts
|
|
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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");
|
|
window.initMgr = function () {
|
|
if (cc.fx) {
|
|
return;
|
|
}
|
|
cc.fx = {};
|
|
console.log("初始化");
|
|
//基础状态信息
|
|
cc.fx.StateInfo = {
|
|
debugMode: true,
|
|
networkConnected: true,
|
|
networkType: 'none',
|
|
isOnForeground: true //当前是否是在前台
|
|
};
|
|
//应用系统信息
|
|
//配置文件
|
|
cc.fx.GameConfig = GameConfig_1.GameConfig;
|
|
cc.fx.HttpUtil = HttpUtil_1.default;
|
|
cc.fx.GameTool = GameTool_1.GameTool;
|
|
cc.fx.AudioManager = AudioManager_1.default;
|
|
cc.fx.Notifications = Notification_1.Notifications;
|
|
cc.fx.StorageMessage = Storage_1.StorageMessage;
|
|
cc.fx.ShareInfo = {
|
|
queryId: -1 //分享id
|
|
};
|
|
/*
|
|
* 客户端埋点分享类型
|
|
*/
|
|
cc.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
|
|
*/
|
|
cc.fx.ShareWhereReward = {
|
|
Group: "group",
|
|
Friend: "friend",
|
|
All: "all",
|
|
};
|
|
//暂时不用
|
|
cc.fx.clickStatEventType = {
|
|
clickStatEventTypeVideoAD: 20173201,
|
|
clickStatEventTypeClickAdVideo: 20173202,
|
|
clickStatEventTypeBannerAD: 20173203,
|
|
clickStatEventTypeUserFrom: 99990001,
|
|
clickStatEventTypeShare: 99990002,
|
|
clickStatEventTypeClickAdBtn: 99990007,
|
|
clickStatEventTypeBannerAD2: 67890033,
|
|
clickStatEventTypeSubmitVersionInfo: 9999,
|
|
clickStatEventTypeClickFirstAd: 99990003,
|
|
clickStatEventTypeClickSecondAd: 99990004,
|
|
clickStatEventTypeWxLoginStart: 10001,
|
|
clickStatEventTypeWxLoginSuccess: 10002,
|
|
clickStatEventTypeWxLoginFailed: 10003,
|
|
clickStatEventTypeAuthorizationStart: 10003,
|
|
clickStatEventTypeAuthorizationSuccess: 10004,
|
|
clickStatEventTypeAuthorizationFailed: 10005,
|
|
clickStatEventTypeLoginSDKStart: 10007,
|
|
clickStatEventTypeLoginSDKSuccess: 10008,
|
|
clickStatEventTypeLoginSDKFailed: 10009,
|
|
clickStatEventTypeTCP_Start: 10009,
|
|
clickStatEventTypeTCP_Success: 10010,
|
|
clickStatEventTypeTCP_Failed: 10011,
|
|
};
|
|
};
|
|
|
|
cc._RF.pop(); |