init
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
import { _decorator } from "cc";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
//全局变量
|
||||
@ccclass
|
||||
export default class GlobalValue {
|
||||
static IsTest = false; //测试环境
|
||||
/**是否开启GM */
|
||||
static GMSwtitch = false;
|
||||
/**关卡数据中途缓存开关 */
|
||||
static LvHuancun = false;
|
||||
/**分享关注id */
|
||||
static ShareTocusid = "share_tocusid";
|
||||
public static m_DomainData: any = {};
|
||||
// public static m_loginData = {};
|
||||
public static g_ChannelCfg = {};
|
||||
|
||||
// public static g_SvrPlayer = {};
|
||||
|
||||
// public static g_ServerList = {};
|
||||
// public static g_ServerInfo = {};
|
||||
// public static g_HotArea = '';
|
||||
// public static nSessionKey = '';
|
||||
// public static nloginKey = '';
|
||||
// public static n_UtdId_Svr = 0;
|
||||
// public static nServerId = '';
|
||||
// public static nServerPid = '';
|
||||
// public static ServerName = '';
|
||||
// public static Socket_ip = '';
|
||||
// public static Socket_prot = 0;
|
||||
// public static S_ServerInfo: { hottype: number, name: string } = null;
|
||||
// public static g_server_ver = "";//当前版本号
|
||||
|
||||
// public static g_autoLoginGame: boolean = true;//是否跳过登录页,直接进入游戏
|
||||
// // public static g_Guide: boolean = false;//是否执行新手引导
|
||||
public static g_InGameScene = 0;//小程序获取当前进页面的来源
|
||||
// public static g_WXClub = 0;//小程序是否关注游戏圈
|
||||
// public static g_WXOpenId = '';//微信登录openid
|
||||
// public static g_WXUId = '';//微信登录uid
|
||||
// public static SHowNotice = false;//展示公告弹框
|
||||
// public static LoadRootNode = false;//公告数据
|
||||
// public static NoticeData = null;//公告数据
|
||||
// public static Game_ChangeSev = false;//游戏内切换服务器
|
||||
public static g_InviteCode = ''; //玩家是否是通过邀请号进入的游
|
||||
|
||||
// public static isWhiteList = false;//是否是白名单用户
|
||||
|
||||
// public static game_account = '';
|
||||
// public static sdk_account = '';
|
||||
// public static sdk_avatar = '';
|
||||
// public static sdk_nickName = '';//记录SDK返回的玩家昵称(比如tap平台的昵称)
|
||||
// public static game_nickName = '';//游戏服分配的玩家昵称或玩家自己改动的昵称
|
||||
// public static loginType = "";
|
||||
// public static wx_appid = "";
|
||||
// public static ADcanPlay = true;
|
||||
// public static GamePlayerID = '';
|
||||
// public static g_sceneTopFit = 0; //摄像头距离顶部的距离
|
||||
// public static sendAdTime = 0
|
||||
// public static userIp = '';
|
||||
// public static createRoleTime = 0
|
||||
// public static g_faclv = 1
|
||||
}
|
||||
Reference in New Issue
Block a user