var AppList = AppList||{};
var RouteList = RouteList||{};
var RpcList = RpcList||{};
//--------------AppList---------------
AppList.app = "youle";

//-----------RouteList-------------
RouteList.platform = "platform";
RouteList.agent="agent";
RouteList.room="room";


//----------------RpcList--------------
RpcList.player_login = "player_login";
RpcList.self_join_room = "self_join_room";
RpcList.create_room = "create_room";
RpcList.self_break_room = "self_break_room";
RpcList.other_break_room = "other_break_room";
RpcList.other_join_room = "other_join_room";
RpcList.self_exit_room = "self_exit_room";
RpcList.other_exit_room = "other_exit_room";
RpcList.self_apply_free_room = "self_apply_free_room";
RpcList.other_apply_free_room = "other_apply_free_room";
RpcList.self_agree_free_room = "self_agree_free_room";
RpcList.other_agree_free_room = "other_agree_free_room";
RpcList.self_refuse_free_room = "self_refuse_free_room";
RpcList.other_refuse_free_room = "other_refuse_free_room";
RpcList.free_room = "free_room";
RpcList.over_game = "over_game";
RpcList.get_player_grade1 = "get_player_grade1";
RpcList.get_player_grade2 = "get_player_grade2";
RpcList.update_roomcard = "update_roomcard";
RpcList.other_offline = "other_offline";
RpcList.other_online = "other_online";
RpcList.send_voice = "send_voice";
RpcList.play_voice = "play_voice";
RpcList.send_text = "send_text";
RpcList.receive_chat = "receive_chat";
RpcList.get_player_task = "get_player_task";
RpcList.player_finish_task = "player_finish_task";
RpcList.get_task_award = "get_task_award";
RpcList.can_award = "can_award";
RpcList.kick_offline = "kick_offline";
RpcList.call_phone = "call_phone";
RpcList.other_callphone = "other_callphone";
RpcList.hangup_phone = "hangup_phone";
RpcList.other_hangup = "other_hangup";
RpcList.self_makewar = "self_makewar";
RpcList.other_makewar = "other_makewar";
RpcList.agentserver_game="agentserver_game";
RpcList.send_gift="send_gift";
RpcList.other_send_gift="other_send_gift";
RpcList.send_voice="send_voice";
RpcList.play_voice="play_voice";
RpcList.connect_roomserver="connect_roomserver";
RpcList.connect_agentserver="connect_agentserver";
RpcList.broadcast="broadcast";
RpcList.send_phiz="send_phiz";
RpcList.submit_opinion = "submit_opinion";
RpcList.kick_server = "kick_server";
RpcList.get_paylist = "get_paylist";
RpcList.pay_succ = "pay_succ";
RpcList.submit_location = "submit_location";
RpcList.binding_invitecode = "binding_invitecode";
RpcList.update_bean = "update_bean";
RpcList.get_player_invitecode = "get_player_invitecode";
RpcList.beanroom_surrender = "beanroom_surrender";
RpcList.player_prepare = "player_prepare";
RpcList.share_room = "share_room";
RpcList.get_share_room = "get_share_room";
RpcList.quick_enter_share_room = "quick_enter_share_room";
RpcList.advanced_roomlist = "advanced_roomlist";
RpcList.advanced_createroom = "advanced_createroom";
RpcList.change_room = "change_room";
RpcList.change_seat = "change_seat";
RpcList.set_bankpwd = "set_bankpwd";

RpcList.binding_phone = "binding_phone";

RpcList.send_phone_checkcode = "send_phone_checkcode";
RpcList.send_phone_code_wechat = "send_phone_code_wechat";

RpcList.get_treasurelist = "get_treasurelist";
RpcList.change_star = "change_star";

RpcList.submit_phoneinfo = "submit_phoneinfo";

RpcList.update_charm = "update_charm";

RpcList.setSign = "setSign";

RpcList.switchRoomList = "switchRoomList";

RpcList.getInfoByShortCode = "getInfoByShortCode";

RpcList.optBanList = "optBanList";
RpcList.getShortCodeRankList = "getShortCodeRankList";

RpcList.setAllCharm = "setAllCharm";
RpcList.getVipRankList = "getVipRankList";
RpcList.playerBehavior = "playerBehavior";
RpcList.setVipForbidSelect = "setVipForbidSelect";

RpcList.topup_card = "topup_card";
RpcList.query_player2 = "query_player2";
RpcList.giveCoin = "giveCoin";

RpcList.getPlayerWhiteList = "getPlayerWhiteList";
RpcList.optWhiteList = "optWhiteList";

var h5RpcList={}
h5RpcList.joinRoom = "joinRoom";
//----------------------------end------------------------------ 

var ClickBtn = [3,5,7,13,14,15,10,11,12,25,17,9,47,51,53,55,58,59,76,60,61,74,75,80,115,183,150,151,153,181,201,202,183,184,185,205,206,207,208,209,210,211,212,166,167,168,169,170,124,127,130,
		133,233,245,246,247,253,248,249,253,256,257,258,259,260,261,262,263,550,177,283,375,391,392,393,394,395,396,397,
		398,399,400,401,402,403,366,367,386,464,234,345,483,484,493,509,512,513,514,515,519,520,521,568,569,570,571,572,579,
		602,626,604,656,661,662,663,664,665,666,667,668,669,670,671,3000,3004,3007,3008,3009,3010,3011,3014,3016,3017,3018,3019,
		3034,3035,3044,3045,3046,3047,3048,3049,3050,3051,3052,3053,3054,3055,3057,3043,3038,3039,3067,3068,3087,3088,3089,3096,3075,3076,3097,3111,3120,92,93,97, 
		99,104,105,106,107,3133,3139,3140,3144,3145,3149,3155,3159,679,3182,3184,3175,3194,3195,3199,3214,3215,3205,3206,3210,
		3203,3216,3217,3222,3231,3232,3233,3235,3240,3251,3253,3243,3244,3245,3255,3256,3258,3260,3264,3265,3266,3268,3269,3289,3281,3276,3274]; 
var C_PageOne = {
	Tag:1,
	X:1100,
	Y:160,
	H:80
};
var C_PageTwo = {
	Tag:1,
	X:1100,
	Y:160,
	H:80
};
var UnClickBtn = [8,50,225,227,228,229,699,161,162,164,165,370,426,427,428,429,430,431,432,433,434,435,446,447,448,449,450,451,452,453,454,455,468,469,470,471,472,473,474,475,476,477,498,499,500,501,
502,503,504,505,506,507,81,573,574,575,629,630,631,632,633,3056,3040,3058,3041,3061,3062,3071,3072,3069,3070,3090,3091,3092,3093,3094,3095,3098,3104,3108,3115,3116,3118,3119,
102,336,337,338,155,154,156,110,111,3127,3128,3141,3142,3146,3147,3151,3157,3099,3197,3212,3237,3246,3247,3248,3249,3250,3291,3280,3288,3283,3279,3292
];
var exceptSrc = [115,5,253,338,339,340,21,361,362,363,364,365,366,367,368,369,370,371,372,396];
var ConstVal=ConstVal||{};
ConstVal.Max = {	
	ShowChat:2000, 
	textlength:20,
	headImgTimer:200,
	heartbeat:30000	
};

ConstVal.Tips={
	width:30,
	time:3000,
	
};
ConstVal.Kick={
	text:"网络出现异常!",
	tip:"(请重启游戏)"
};
ConstVal.screenShotParam = 0.7;
ConstVal.ShareTaskId="TJnueK1103Xgwj2o79xM2nvSe0WN6rzp";

ConstVal.iMessage={
	text_y1:-60,
	text_y2:25,
	icon_x:20,
	icon_y1:-65,
	icon_y2:20,
	close_x:1205,
	close_y1:-60,
	close_y2:25,
	bg_y1:-85,
	bg_y2:0,
	time:500,
	x1:85,
	x2:1205,
	y:0,
	h:85,
	speed:0.05,
	max_length:60
};
ConstVal.Emotion = {
	//动画帧间隔200
	mode:1,//表情播放时间模式1->按帧数确定时间2->按照show_time_list确定 
	count:20,
	f_spid:467,
	tag:1,
	rate:100,
	col_num:4,//一行上的个数
	spid_list:[528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547],//表情精灵列表序号对应
	src_list:[147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166],//表情对应资源号
	frame_list:[5,25,31,30,14,7,8,17,3,8,30,14,35,24,23,15,6,24,31,9],//表情对应帧数 
	show_time_list:[147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166],//表情播放时间
	x:20,
	y:20,
	dis_x:20,
	dis_y:20,
	w:100,
	h:100,
	clip_x:0,
	clip_y:0,
	clip_h:0,
	clip_w:0
	
}
ConstVal.Com_History = {
	//动画帧间隔200
	f_spid:696,
	head_tag:1,
	page_count:5,
	text_width:12.5, 
	bubble_tag:10000,
	content_tag:20000,
	time_tag:30000,
	time_length:[10,30,60,90,120,300],
	bubble_width:[100,140,180,220,260,300,340],//气泡长度 
	head_res_id:116,
	head_x:20,
	head_y:30,
	head_h:60,
	head_dis_y:35,
	time_bubble_dis_x:10,
	head_bubble_dis_x:78,
	bubble_content_dis_x:25,
	head_bubble_dis_y:0,
	head_content_1_dis_y:13, 
	head_content_2_dis_y:13,
	time_bubble_dis_y:13,
	clip_x:0,
	clip_y:0,
	clip_h:0,
	clip_w:0

}
ConstVal.Task = {
	f_spid:176,//父精灵 
	bg_spid:120,//背景精灵 
	task_des_spid:135,//任务描述精灵 
	reward_des_spid:307,//任务奖励描述 
	proc_bg_spid:311,//任务进度背景 
	proc_spid:315,//任务进度前景 
	proc_des_spid:319,//任务进度文字描述 
	get_reward_btn_spid:124,//领取任务按钮 
	isreward_spid:328,//已领取 
	tofinish_btn_spid:125,//去完成任务 
	//tag值 
	bg_tag:1,
	task_des_tag:1000,
	reward_des_tag:2000,
	proc_bg_tag:3000,
	proc_tag:4000,
	proc_des_tag:5000,
	get_reward_btn_tag:6000,
	isreward_tag:7000,
	tofinish_btn_tag:8000,
	//位置 
	bg_x:0,
	bg_y:0,
	bg_w:0,//动态获取
	bg_dis_x:0, 
	
	task_des_x:30,
	task_des_y:30,
	
	reward_des_y:265,
	proc_bg_y:380,
	proc_y:380,
	proc_des_y:380,
	get_reward_btn_y:368,
	isreward_y:365,
	tofinish_btn_y:330,
	
	clip_x:110,
	clip_y:170,
	clip_w:0,
	clip_h:0	
}
ConstVal.Launch_mode={
	name:"Launchtype",
	from_hall:1,
	from_self:0
};
ConstVal.OS = {//操作系统类型 
	apple:1,//苹果 
	android:2,//安卓 
	winphone:3,//windowsphone 
	other:4//其他 
};
ConstVal.InterEffSoundsList = ["00001.mp3","00002.mp3","00003.mp3","00004.mp3"];
ConstVal.soudsSpidList = [235,13,5,6,7,9,339,11,12,14,15,249,10,376,377,378,379,380,381,382,383,384,385,150,153,151,283,181,513,233,185]; 
ConstVal.Broadcast = {
	textwidth:18,
	speed:0.1,
	clip_x:0,
	clip_y:0,
	clip_w:0,
	clip_h:0
};
ConstVal.Notice = {
	replaceOldWord:"#",
	replaceNewWord:"\n",
	lineHeight:60,
	textHeight:30,
	textWidth:14,
	clip_x:0,
	clip_y:0,
	clip_w:725,
	clip_h:450,
	img_clip_x:366,
	img_clip_y:156,
	img_clip_w:765,
	img_clip_h:483,
};
ConstVal.payConfig = {
	enablePay:false
};

ConstVal.loginButton = {
	key:"loginimage",
	type1:[1,22],//0->类型值 1->图片资源ID 
	type2:[2,203]
}

ConstVal.userAgent = {
	paraName:"",
	uAgent_1:1,
	uAgent_2:2,
	uAgent_3:3
};
ConstVal.worldRoom = {
	f_sp_1:522,
	f_sp_2:523,
	bg_sp_1:524,
	bg_sp_2:525,
	top_sp_1:526,
	top_sp_2:563,
	des_sp_1:527,
	des_sp_2:564,
	starbg_sp_1:566,
	starbg_sp_2:567,
	star_sp_1:562,
	star_sp_2:565,
	mult_sp_1:3020,
	mult_sp_2:3021,
	join_sp_1:3022,
	join_sp_2:3023,
	pCount_sp_1:3024,
	leave_sp_2:3025,
	topImg_sp:96,
	title_sp:3165,
	
	multIcon_sp:94,
	multImg_sp:95,
	imgList:[361,362,363,364,365,366,367,368,369,370,371,372],
	multIcon_y:100,
	multImg_y:119,
	topImg_y:25,
	multImgWidth:25,
	multIconImgSpace:20,
	
	pCountIcon_sp_2:3026,
	pCount_sp_2:3027,
	roomCode_sp_2:3028,
	
	
	bg_sp_tag_1:1,	
	top_sp_tag_1:2000,	
	des_sp_tag_1:4000,	
	starbg_sp_tag_1:6000,	
	star_sp_tag_1:8000,	
	mult_sp_tag_1:10000,	
	pCount_sp_tag_1:12000,
	join_sp_tag_1:14000,
	multIcon_tag:16000,
	multImg_tag:18000,
	topImg_tag:20000,
	
	
	bg_sp_tag_2:1,
	top_sp_tag_2:2000,
	des_sp_tag_2:4000,
	starbg_sp_tag_2:6000,
	star_sp_tag_2:8000,
	mult_sp_tag_2:10000,
	leave_sp_tag_2:12000,
	roomCode_sp_tag_2:14000,
	pCountIcon_sp_tag_2:16000,
	join_sp_tag_2:18000,
	pCount_sp_tag_2:20000,
	title_tag:40000,
	
	clip_x_1:0,
	clip_x_2:0,
	clip_y_1:0,
	clip_y_2:0,
	clip_w_1:1050,
	clip_w_2:1150,
	clip_h_1:512,
	clip_h_2:465,
	
	bg_sp_x_1:0,
	bg_sp_x_2:0,
	bg_sp_y_1:0,
	bg_sp_y_2:0,
	//bg_sp_y_2:43,
	bg_sp_space_1:6,
	bg_sp_space_2:15,
	top_sp_x_1:25,
	top_sp_x_2:25,
	top_sp_y_1:35,
	top_sp_y_2:20,
	top_sp_width_1:20,
	top_sp_width_2:13,
	top_sp_space_1:6,
	top_sp_space_2:6,
	des_sp_x_1:25,
	des_sp_x_2:30,
	title_sp_x:20,
	title_sp_y:3,
	des_sp_y_1:80,
	des_sp_y_2:45,
	des_sp_width_1:11,
	des_sp_width_2:11,
	des_sp_space_1:6,
	des_sp_space_2:6,
	
	//mult_sp_x_1:10000,
	pCount_sp_x_1:80,
	join_sp_x_1:302,//靠右显示 
	mult_sp_y_1:74,
	pCount_sp_y_1:193,
	join_sp_y_1:193,
	
	mult_sp_x_2:30,
	roomCode_sp_x_2:775,
	pCountIcon_sp_x_2:170,
	join_sp_x_2:700,//靠右显示
	leave_sp_x_2:700,//靠右显示 
	
	pCountIcon_pCount_space_2:10,
	pCount_space_2:8,
	
	//mult_sp_y_2:72,
	//roomCode_sp_y_2:25,
	//pCountIcon_sp_y_2:76,
	//join_sp_y_2:72,
	//leave_sp_y_2:23,
	//pCount_sp_y_2:81,
	
	mult_sp_y_2:92,
	roomCode_sp_y_2:45,
	pCountIcon_sp_y_2:96,
	join_sp_y_2:92,
	leave_sp_y_2:45,
	pCount_sp_y_2:101,
	
	
	starbg_sp_x_1:35,
	starbg_sp_x_2:35,
	starbg_sp_y_1:182,
	starbg_sp_y_2:182,
	starbg_sp_space_1:6,
	starbg_sp_space_2:6,
	
	star_sp_x_1:35,
	star_sp_x_2:35,
	star_sp_y_1:189,
	star_sp_y_2:189,
	star_sp_space_1:6,
	star_sp_space_2:6,	
	
	mult_sp_w_1:13,
	join_sp_w_1:10,
	
	join_sp_w_2:12,
	leave_sp_w_2:12,
	mult_sp_w_2:13,
	roomCode_sp_w_2:16,
	
	bgSpaceX:438,
	bgSpaceY:250,
};
ConstVal.snrRoomList ={
	f_spid:611,
	bg_spid:622,
	rcode_bg_spid:623,
	rcode_spid:624,
	close_spid:625,
	update_spid:626,
	switch_spid:627,
	info_spid:600,
	profit_spid:601,
	video_spid:3138,
	
	bg_tag:1,
	rcode_bg_tag:200,
	rcode_tag:400,
	close_tag:600,
	update_tag:800,
	switch_tag:1000,
	info_tag:1200,
	profit_tag:1400,
	video_tag:1600,
	
	clip_x:0,
	clip_y:0,
	clip_w:900,
	clip_h:0,
	
	bg_x:15,
	rcode_bg_x:33,
	rcode_x:35,
	close_x:70,
	update_x:20,
	switch_x:150,
	info_x:35,
	profit_x:150,
	video_x:420,
	
	bg_y:10,
	rcode_bg_y:260,
	rcode_y:28,
	close_y:260,
	update_y:90,
	switch_y:90,
	info_y:80,
	profit_y:25,
	video_y:20,
	
	profit_w:12,
	
	bg_space:5,
	rcode_bg_space:35,
	rcode_space:50,
	close_space:300,
	update_space:400,
	switch_space:500,
	
	bksp:3137,
	
	
};
ConstVal.rankList ={
	f_spid:609,
	bg_spid:610,
	badge_spid:629,
	headimg_spid:630,
	headfront_spid:631,
	name_spid:632,
	star_spid:633,
	
	bg_tag:1,
	badge_tag:100,
	headimg_tag:200,
	headfront_tag:300,
	name_tag:400,
	star_tag:500,

	clip_x:0,
	clip_y:0,
	clip_w:0,
	clip_h:511,

	bg_x:0,
	badge_x:-20,
	headimg_x:93,
	headfront_x:85,
	name_x:190,
	star_x:190,

	bg_y:0,
	badge_y:-5,
	headimg_y:12,
	headfront_y:5,
	name_y:8,
	star_y:42,


	space:13,
	
	headsrc:262

};
ConstVal.MenuScene = {
	createBtn_1:[780,182],//有星星场 
	joinBtn_1:[780,320],
	starBtn:[780,458],
	createBtn_2:[780,230],
	joinBtn_2:[780,405]
};
//仓库 
ConstVal.wareHouse = {
	tableBgX:[41,33],
	tableTextX:[57,51],
	passWordLength:6,
};
ConstVal.sysNotice = {
	f_spid:3109,
	bubble_spid:163,
	msg_spid:3110,
	
	msg_width:11,
	msg_tag:50000,
	msg_rOld:"#",
	msg_rNew:"\n",
	lineHeight:25,
	limit:10000,
	bubble_tag:1,
	x:20,
	y:20,
	spaceX:40,
	spaceY:40,
	
	bm_space_x:20,
	bm_space_y:35,
	
	
	lineSpace:30,// 行距
	noteSpace:40,//每条的距离 
	clip_x:0,
	clip_y:0,
	clip_h:0,
	clip_w:0
}
ConstVal.starConfig = {
	resList:[214,214],
}
ConstVal.Animation = {
	time1:1200,
	time2:2000,
	fundTime:5230,
	deltaTime:1000,
};
ConstVal.myRoomList ={
	maxLength:5,
	fSpid:98,
	
	bgSp:100,
	roomCodeSp:102,
	
	bgTag:1,
	roomCodeTag:100,
	placeX:0,
	placeY:95,
	bgX:8,
	bgY:55,
	space:5,
	
	rCodeX:140,
	rCodeY:85,
	//clip_x:8,
	//clip_y:160,
	//clip_w:265,
	//clip_h:450,
	
	roomCodeWidth:14,
}
ConstVal.netType = 0;
ConstVal.isGameHall = false;

ConstVal.vipRoomList1 = {
	f_spid:3172,
	bg_spid:3176,
	title_spid:3177,
	code_spid:3178,
	owner_spid:3179,
	count_spid:3180,
	del_spid:3181,
	des_spid:3189,
	enter_spid:3192,
	
	bg_tag:1,
	title_tag:1000,
	code_tag:2000,
	owner_tag:3000,
	count_tag:4000,
	des_tag:5000,
	del_tag:6000,
	enter_tag:7000,
	
	clip_x:0,
	clip_y:0,
	clip_w:0,
	clip_h:460,
	
	space:199,
	
	title_x:20,
	code_x:70,
	des_x:25,
	owner_x:270,
	count_x:525,
	del_x:583,
	enter_x:514,
	
	title_y:3,
	code_y:148,
	des_y:50,
	owner_y:146,
	count_y:146,
	del_y:0,
	enter_y:42,	
	
}
ConstVal.vipRoomList2 = {
	f_spid:3185,
	bg_spid:3186,
	code_spid:3187,
	count_spid:3188,

	bg_tag:1,
	code_tag:1000,
	count_tag:2000,

	clip_x:0,
	clip_y:0,
	clip_w:0,
	clip_h:460,

	spaceX:285,
	spaceY:145,

	code_x:56,
	count_x:50,


	code_y:25,
	count_y:65,
	
	countW:12,

}
ConstVal.blackList = {
	f_spid:3204,
	bg_spid:3207,
	id_spid:3209,
	del_spid:3208,

	bg_tag:1,
	id_tag:10000,
	del_tag:20000,

	clip_x:0,
	clip_y:0,
	clip_w:0,
	clip_h:0,

	id_x:25,
	del_x:330,

	id_y:12,
	del_y:4,
	
	space:8,



};

ConstVal.vipRank = {
	f_spid:3227,
	bg_spid:3223,
	txt_spid:3229,
	rank_spid:3228,
	score_spid:3230,
	
	bg_tag:1,
	txt_tag:10000,
	rank_tag:20000,
	score_tag:30000,
	
	clip_x:0,
	clip_y:0,
	clip_w:0,
	clip_h:0,
	
	txt_x:70,
	rank_x:0,
	score_x:230,
	
	txt_y:10,
	rank_y:4,
	score_y:10,
	
	rank_space:10,
	
	space:8,
	rank_w:25,
	
	
};
ConstVal.whiteList = {
	f_spid:3272,
	bg_spid:3277,
	id_spid:3279,
	del_spid:3278,
	charm_spid:3292,

	bg_tag:1,
	id_tag:10000,
	del_tag:20000,
	charm_tag:30000,

	clip_x:0,
	clip_y:0,
	clip_w:0,
	clip_h:0,

	id_x:25,
	del_x:450,
	charm_x:200,

	id_y:12,
	del_y:4,
	charm_y:12,
	

	space:8,



};




