/*var returnCitySN = {"cip": "171.34.213.118", "cid": "360000", "cname": "江西省"}*/

var C_Player;
var InfoSex=0;


var arrBan=[];
var RoomCode = "";
var RoomNum = -1;

var CombatCount = 0;
var CombatPage = 0;//战绩页码 
var CombatPageTwoIndex = 0;//大局标号
var CombatPageThreeIndex = 0;//小局标号

var CombatInfo = [];//战绩详情
var C_PageOneBtn = [];//战绩页一按钮id
var C_PageTwoBtn = [];//战绩页二按钮id
var CombatBackHeight = 0;//战绩背景高度 

var TaskInfo = [];//任务详情 
var VoteTime=0;//投票倒计时秒 

var GameData=GameData||{};
GameData.HallServer="";
GameData.Server="";
GameData.AjaxUrl="";
GameData.scrollmsg="";
GameData.wechat_gzh="";
GameData.wechat_kfh="";
GameData.qq = "";
GameData.tel = "";
GameData.gzhcolor1 = "";
GameData.gzhcolor2 = "";
GameData.telcolor = "";

GameData.errorMsg = null;
GameData.tcpConnect=true;
GameData.tcpConnectState = false;
GameData.TimerID=0;
GameData.TimerID_2=0;
GameData.timer=10000;
GameData.time_2=15000;
GameData.NetType=0;//是否为首次连接 
GameData.Protocol_H=1;
GameData.ProtocolIndex=true;
GameData.isLoad=true;
GameData.LoadCount=0;
GameData.Timesup=false;
GameData.InteractPlayer = -1;
GameData.isCallback=false;
GameData.isBoard=true;
GameData.ConnectType=false;//1->更换服务器不需要重连 
GameData.ConnectRpc="";//更换服务器成功后发包的RPC
GameData.ConnectPack={};//更换服务器成功后发包数据 
GameData.Battery = 0;//电量
GameData.NetWork = 0;//网络情况1 未连接网络  2 连接wifi  3 连接2G/3G/4G
GameData.WifiLevel = 0;//WiFi强度
GameData.wechat_ewm = "";//二维码 
GameData.appstate=true;//true程序前台运行false程序后台运行
GameData.OS = ConstVal.OS.other;//1->IOS 2->Android 3->wp 4->other
GameData.isLogin = false;//是否已登录 
GameData.leaveTime=0;//
GameData.disType = false;
GameData.reconnectTimer=0;
GameData.isClose = false;
GameData.isCloseTimer = null;
GameData.firstConnect = true;//第一次连接
GameData.firstConnect_Succ = false;//第一次连接成功 
GameData.firstConnect_Timer = null;//第一次连接定时器 
GameData.loginTimer = null;
GameData.tryTimes = 0;//链接尝试次数
GameData.isReconnect = false; 
GameData.isCreateEmotion = false;
GameData.ChatPage = 1;
GameData.slidEmotion = false;
GameData.communionHistory=[];//聊天历史//二维数组[[方位，类型（1-文字2语音），内容,时长]] 
GameData.createHistoryLen = 0;//以创建的精灵的长度
GameData.slideHistory = false; 
GameData.TcpTimer = null;//tcp连接失败判断定时器 
GameData.slideTask = false;//是否滑动任务 
GameData.copyTaskTagList = [];//任务复制精灵tag列表 



GameData.versionState = 0;//苹果审核结果 
GameData.visitorserver = "";//游客服务器地址 
GameData.isVisitor = false;

GameData.shakeID = 0;//摇一摇事件ID 
GameData.isRecord = false;

GameData.LaunchMode = ConstVal.Launch_mode.from_self;

GameData.Multiple = "";
GameData.OrgArr=[];
GameData.MultiArr = [];

GameData.isFirstLogin = true;//是否是第一次登陆 

GameData.payList = null;
GameData.payData = [0,0];

GameData.visitorClick = 0;
GameData.Scene = 0;

GameData.urlFail = false;
GameData.BroadcastArray = [];
GameData.isBoardcast = false;

GameData.tcpState = [0,0];
GameData.Notice ={
	heigth:0,
	lineSum:0,
	width:0
}
GameData.marketID = 0;
GameData.getJSONState = false;//JSON获取成功状态 
GameData.Config = null;//服务器配置json 
GameData.AgentLoginImg = "";//代理商图片
GameData.TopUpUrl = "";//索要房卡地址 

GameData.tryConnect = false;
GameData.hallConfigName = ["enablePay",
	"logoffCallback",//不通知
	'worldRoomList',//星星争霸是否可用
	'max:',
	'min',
	'unit',
	'shareMsg',
	'autoWorldRoomList',//是否自动弹出星星争霸场
	'rankList',//是否显示排行榜按钮1模拟排行2真实排行
	'groupMsg',//试玩群信息
	'isReSetOwnerNote',//是否替换签名
	'activity',//是否显示活动如果显示则为[x,y,w,h/*,isOpen,btnUrl,url,actid*/]
	'actData:',//常驻活动按钮 [imgUrl,isOpen,jumpUrl,actUrl]
	'shareButton:',//是否显示分享到平台
	'enableQuickEnter',//是否隐藏快速加入
	'storeUrl',//商城url
	'bagUrl',//背包url
	'shareDesc',//平台分享描述信息
	'wareHouse',//是否开启仓库功能0->不开启1->开启保险箱不开启赠送2->开启赠送不开启保险箱3->开启星星赠送(开启保险箱)4->开启房卡赠送(开启保险箱)5->开启星星房卡赠送(开启保险箱)
	'betaText',//版本号后的beta显示内容
	'launchImgUrl',//启动页图片地址
	'shareType:',//分享朋友圈类型0->链接分享 1->图片分享
	'shareImgUrl',//分享朋友圈图片链接
	'launchWaitTime',//启动等待时间
	'shareBgUrl',//分享背景图片
	'qqLogin',//是否显示qq登录
	'androidPay',//是否开启安卓支付
	'channelKey',//支付key
	'payCSS',//支付css
	'payJS',//支付js
	'openVideo'
	];//是否开启视频];
GameData.hallConfig = {
	enablePay:0,
	logoffCallback:0,//不通知 
	worldRoomList:0,//星星争霸是否可用 
	max:100,
	min:0,
	unit:1,
	shareMsg:"",
	autoWorldRoomList:0,//是否自动弹出星星争霸场
	rankList:0,//是否显示排行榜按钮1模拟排行2真实排行 
	groupMsg:"",//试玩群信息
	isReSetOwnerNote:0,//是否替换签名
	activity:0,//是否显示活动如果显示则为[x,y,w,h/*,isOpen,btnUrl,url,actid*/]	
	actData:0,//常驻活动按钮 [imgUrl,isOpen,jumpUrl,actUrl]
	shareButton:1,//是否显示分享到平台
	enableQuickEnter:1,//是否隐藏快速加入 
	storeUrl:"",//商城url
	bagUrl:"",//背包url 
	shareDesc:"",//平台分享描述信息 
	wareHouse:0,//是否开启仓库功能0->不开启1->开启保险箱不开启赠送2->开启赠送不开启保险箱3->开启星星赠送(开启保险箱)4->开启房卡赠送(开启保险箱)5->开启星星房卡赠送(开启保险箱) 
	betaText:"",//版本号后的beta显示内容 
	launchImgUrl:"",//启动页图片地址 
	shareType:0,//分享朋友圈类型0->链接分享 1->图片分享 
	shareImgUrl:"",//分享朋友圈图片链接 
	launchWaitTime:10,//启动等待时间 
	shareBgUrl:"",//分享背景图片 
	qqLogin:0,//是否显示qq登录 
	androidPay:0,//是否开启安卓支付 
	channelKey:"",//支付key 
	payCSS:"",//支付css
	payJS:"",//支付js
	openVideo:0,//是否开启视频 
};
GameData.starName = "星星"; 
GameData.roomCardName = "房卡";
GameData.gameConfig = {};

GameData.playerHeadImgState = false;//玩家主界面头像加载状态 
GameData.matchhtml = "";//比赛链接地址 

GameData.Validator = null;
GameData.loginBtnType = ConstVal.loginButton.type1[0];//登录按钮样式 
GameData.netWorkSate = false;

GameData.heartBeatTimer = null;//心跳事件定时器ID
GameData.heartBeatStage = false;//提示框是否处于心跳提示事件 

GameData.telSpid = 179;//拨打电话精灵号 
GameData.matchInfo = null;//比赛场信息 

GameData.agentmode = 1;//邀请码模式 

GameData.infMode = 0;//是否为无限局 
GameData.infClickCount = 0;//点击次数 

GameData.checkType = 1;//确认面板事件类型 1->解散房间 2->退出房间 3->投降 
GameData.roomList = [];//房间列表

GameData.sendLoginTimer = null;//发送重连登录包定时器 
GameData.loginList = [];//
GameData.isConnected = false;

GameData.isSendLoginState = false;//是否在等待登录包
GameData.isSendLoginTimer = null;//登录包收包定时器 
GameData.isTcpConnect = false;//是否在连接状态 

GameData.TcpID = 0;//tcpid 
GameData.websocketList=[];
GameData.pack="";
GameData.infoSeat = -1;

GameData.sendLoginTimes = 0;

GameData.backUrl = "";

GameData.playerid = "";

GameData.serverConfig = {};

GameData.userAgent = ConstVal.userAgent.uAgent_1;

GameData.getbattery = "";
GameData.getbatteryPack = {};

GameData.getnetwork = "";
GameData.getnetworkPack = {};

GameData.getVersionState = "";
GameData.getVersionStatePack = {};

GameData.getchannelName = "";
GameData.getchannelNamePack = {};

GameData.getmarketname = "";
GameData.getmarketnamePack = {};

GameData.gamepastetext = "";
GameData.gamepastetextPack = {};
GameData.worldRoomSys=[];

//玩家房间数据
GameData.worldRoomPly=[];

GameData.worldRoomSysSlide = false;
GameData.worldRoomPlySlide = false;

GameData.menuNotice = null;

GameData.advertInfo_1 = {
	type:0,//是否使用默认的文字通知 
	imgUrl:"",//图片地址 
	imgAdUrl:"",//图片跳转链接地址 
	height:1,//图片高度 
	msg:"",
	url:"",
};
GameData.advertInfo_2 = {
	type:0,
	imgUrl:"",
	imgAdUrl:"",
	height:1,
	msg:"",
	url:"",
};
GameData.advertInfo_0 = {
	type:0,
	imgUrl:"",
	imgAdUrl:"",
	height:1,
	msg:"",
	url:"",
};
GameData.noticePage = 0;
GameData.noticePara = [[0,0],[0,0],[0,0]];

GameData.snrOption = {
	profit:0,
	roomcode:"",	
};
GameData.snrRoomList = {
	roomlist:[],
	roomtype:[],
	tea:1000,
	shortcode:888
};
GameData.snrRoomListSlide = false;
GameData.snrOptionLength = 0;
GameData.snrOptionRoomTag = 0;
GameData.snrOptionMode = 0;
GameData.snrOptionRoomtype = "";
GameData.snrOptionDes = "";
GameData.snrOptionProfit=0;

GameData.shortCode = "";

GameData.isShowWorldRoomList = true;
GameData.shareMsg = "";

GameData.rankList = [];
GameData.rankListTag = 0;
GameData.ranListLength = 0;
GameData.rankListSlide = false;

GameData.h5Version = 0;
//
var shareParam = {
    appid: "14936872341446",
    devkey: "14915485974028"
}

GameData.shareTimeline = {//朋友圈 
    title: "",
    desc:  "",
    link:  "",
    imgUrl: ""
}
GameData.shareAppMessage = {//好友
    title: "",
    desc:  "",
    link:  "",
    imgUrl: ""
}
GameData.gameData = "";
GameData.fromH5GameData = {};
GameData.isJoinRoomFromH5 = false;
GameData.h5ShareImage = "";
GameData.screenShotStage = 0;
GameData.screenShotSpidList = [];

GameData.ownerNote = "";
GameData.isDebugger = 0;

GameData.returnUrl = "";

GameData.configData = "";
GameData.h5ShareUrl = "";

GameData.inputPanelData = "";
GameData.inputCallBack = null;

GameData.isShowNeighbor = true;

GameData.nameImgFrame_1 = 1;//房卡图片帧数 
GameData.nameImgFrame_2 = 1;//星星图片帧数
GameData.surrendCount = 0;


GameData.htmlCode = "";
GameData.htmlId = "";

GameData.serverIndex = 0;//连接地址下标 
GameData.tryReconnectTimes = 0;
GameData.isChangeServer = false;

GameData.shareFrom = 0;//0->框架分享  1->游戏分享
GameData.activityType = 0;//子游戏调用类型 
GameData.activityData = null;//子游戏调用类型
GameData.shareTimes = 0;//分享次数 

GameData.sharePostUrl = "http://localhost:4477/testurl";//截图分享链接 
//保险箱 
GameData.wareHouse = {
	page:1,//当前页 
	safeInputType:1,//保险箱存入取出类型 
	safeInputCount:-1,//保险箱存入取出数量
	safePassWord:-1,//保险箱存入取出密码 
	inputNumber:0,//输入的数字
	selectType:1,//选择的当前输入框 
	initPassWord1:-1,//初始化密码 
	initPassWord2:-1,//确认初始化密码
	pId:0,//赠送id
	pImg:"",//赠送头像
	pNickName:"",//赠送昵称 
	pInputType:1,//赠送类型 
	pInputId:-1,//输入id
	pInputCount:-1,//赠送数量
	pInputPassWord:-1,//赠送密码 
	
	 
};
GameData.openVideo = 0;//是否开启视频功能 
GameData.imgAdIsSlide = false;
GameData.launchImgLoaded = false;//启动页图片是否从网络加载完成 
GameData.configSuccess = false;//配置文件读取成功 
GameData.launchWaitTime = 0;
GameData.adTimer = null;

GameData.sysNotice = [];//系统公告 {msg:"",read:false,line:1}
GameData.sysCreateLength = 0;

GameData.selectSysNotice = false;//是否勾选发送系统公告 
GameData.sysNoticeCost = 0;
GameData.sysNoticeLimit = 0;


GameData.mainMenuAniTimer = null;
GameData.worldRoomPage = 0;

GameData.createMyRoomListLength = 0;

GameData.starCount = 0;
GameData.roomCardCount=0;

GameData.loginPlayerid = false;//登录是否带上playerid 

GameData.matchId = null;

GameData.chatLine = null;
GameData.chatInfo = null;
GameData.isService = false;

GameData.submitLocation = false;
GameData.submitPhoneInfo = false;
GameData.submitAddressBook = false;
GameData.getConfigTimer = null;

GameData.clickChat = 0;

GameData.phoneInfo = null;
GameData.addressBook = null;
//GameData.sysConfigName=[];
GameData.sysConfigName=["hideEscape","charmName","hideTaskBtn","miniPro","videoConfig","ofcShortCode","ofcTips","ofcWx","ofcImg",
"managerUrl","rebateConfig","gameNoticeShow","hallNoticeShow","ofcAutoEnter","vipFlushTime","vipWx","h5PayUrl","appShareH5",
"vipRankLimit","behaviorList","deviceLogin","hideWxShare","hideRoomCard","hideSpid","cdKey","otherShare","avatarRange","avatarUrl","whiteListManager","nnLocal"];
GameData.sysConfig={
	hideEscape:0,
	charmName:"魅力",
	hideTaskBtn:0,//是否隐藏任务按钮 
	miniPro:0,//是否小程序/小游戏 (隐藏更多选项、分享朋友圈、聊天按钮、录音调整)
	videoConfig:null,//{type:1,profitMode:1,profit:3}
	ofcShortCode:null,//官方短号
	ofcImg:"",//官方按钮链接 
	managerUrl:"",//管理后台地址
	rebateConfig:null,//抽成配置
	gameNoticeShow:0,//子游戏弹窗时间间隔 0每次都弹 -1不弹 
	hallNoticeShow:0,//大厅弹窗时间间隔 0每次都弹	-1不弹
	ofcAutoEnter:0,//是否自动进入官方短号 
	vipFlushTime:10000,//vip房间列表刷新间隔
	vipWx:"",//成为vip联系微信 
	h5PayUrl:"",//h5支付地址 
	appShareH5:"",//app分享的h5地址 
	vipRankLimit:10,//vip排行显示个数 
	behaviorList:null,//用户行为 
	deviceLogin:0,//是否显示设备登录显示了设备登录就会显示手机号登录就会隐藏微信登录 
	hideWxShare:0,//是否隐藏微信分享 
	hideRoomCard:1,//隐藏主界面房卡 1 不隐藏 2隐藏
	hideSpid:null,//隐藏的精灵id 
	cdKey:1,//是否显示CDKEY  1不显示 2显示 
	otherShare:1,//开启新分享 1 关闭2开启
	avatarRange:[100,10000],//设备登录的头像列表
	avatarUrl:"https://projectimage.tscce.cn/image_132/", 
	whiteListManager:2, //是否开启在游戏中管理白名单 
	nnLocal:2,//
	
};
GameData.inputCallBack2 = null;

GameData.topInfoTimer = null;

GameData.iscloseVideo = true;//是否开战关闭视频 
GameData.textCallback = null;

GameData.isLocation = false;
GameData.otherLocation = false;//
GameData.otherLocationTimes = 0;
GameData.otherLocationAllTimes = 1;


GameData.hallLogin = true;

GameData.senRoomState = 0;

GameData.rebateConfig = null;

GameData.vipRoomPage = 0;
GameData.vipRoomCode = 0;
GameData.vipRoomData = [];
GameData.vipRoomTimer1 = false;
GameData.vipRoomIsOpen = false;
GameData.vipRoomShortList = [];
GameData.vipRoomJump = false;
GameData.vipRoomPageOne = {
	cLength:0,
	slide:false,
}
GameData.vipRoomPageTwo = {
	cLength:0,
	slide:false,
	data:null,
}
GameData.tipTimer1 = null;
GameData.tipTimer2 = null;

GameData.initCard = 0;
GameData.initBean = 0;

GameData.brNumber=0;

GameData.isKick = false;

GameData.blackList = {
	data:[],
	length:0,
	breakRoom:false,
	selectTag:0,
	slide:false,
	inputId:"",
	idWidth:12,
}
GameData.allCharm = 0;
GameData.vipRank = {
	data:{
		rankList:[],
		myRank:1,
		myScore:100
	},
	length:0,
	//selectTag:0,
	slide:false,
	//inputId:"",
	//idWidth:12,
}
GameData.rankType = false;

GameData.coinMp3Time = 0;
GameData.coinMp3Length = 3000;
GameData.brRebateUnit = 10000;

GameData.phoneCodeTime = 0;
GameData.phoneCode = "";
GameData.phoneNumber = "";

GameData.phoneType = 0;

GameData.isGetPhoneInfo = false;
GameData.isDeviceLogin = false;
GameData.begin0 = false;

GameData.vipConfig = null;

GameData.feedMode = 0;

GameData.fromMiniProData = {};


GameData.shareFriendInfo = {};


GameData.deviceAvatarList = [];

GameData.whiteList = {
	data:[],
	length:0,
	breakRoom:false,
	selectTag:0,
	slide:false,
	inputId:"",
	inputCharm:"",
	searchId:"",
	idWidth:12,
	delPid:"",
}





