export enum privacy_type{ yue_zhan, liu_yan, zhan_ji, } export enum room_rival_type{ play, robot, } export enum robot_ai_level{ xiaobai, chuji, gaoshou, } export enum quit_room_type{ zheng_chang_tui_chu_room, bei_ti_chu_room, } export enum privacy_select{ suo_you_ren, jin_hao_you, ju_jue, } export enum shop_item_type{ ti_li_ka, fu_huo_ka, ti_shi_ka, hui_qi_ka, fen_xi_ka, suan_li_ka, } export enum item_type{ dao_ju, qi_pan, qi_zi, tou_xiang_kuang, ji_shi_qi, qi_pao, yuan_bao, tong_qian, qi_hun, } export enum zhuang_ban_type{ qi_pan, qi_zi, tou_xiang_kuang, ji_shi_qi, qi_pao, } export enum shop_type{ dao_ju, zhuang_ban, huo_bi, } export enum matching_5_10_20_type{ _null, _5, _10, _20, } export enum room_type{ _null, _jing_dian_hao_you, _mei_miao_die_jia_hao_you, _jifen_5, _jifen_10, _jifen_20, } export enum xiaoxi_item_type{ haoyou, shipin, canju, } export enum xiaoxi_haoyou_status_type{ _null, xian_guang, dui_zhan, } export class Constant { public static GAME_NAME = 'archero';//游戏名称 public static GAME_VERSION = 'v2.1.2';//游戏版本 public static GAME_FRAME = 60; //游戏当前帧率 public static GAME_INIT_FRAME = 60; //游戏开发基础帧率 public static GAME_NAME_CH = "幽灵射手";//游戏中文名称 public static RECV_HEART_BEAT ='1' //收到服务器心跳结果 public static RECV_CHEAK_HEART_BEAT = '2' //服务器查询我的心跳 public static PAGE_XIAQI = "xiaqi" public static PAGE_XUEQI = "xueqi" public static PAGE_QIJIE = "qijie" public static PAGE_FAXIAN ="faxian" public static PAGE_WODE = "wode" //事件列表 public static EVENT_TYPE = { MSG_LOGON: "logon",//登陆 MSG_CREATE_ROOM: "addroom",//创建房间 MSG_JOIN_ROOM: "joinroom",//加入房间 MSG_READY:"prepareroom",//准备 MSG_ROOM_STATUS:"roomstatus",//房间状态 MSG_QUIT_ROOM:"quitroom",//离开 MSG_DISMISS_ROOM:"dismiss",//解散 MSG_OWN_PLAYCHESS:"own_playchess",//下棋 MSG_RIVAL_PLAYCHESS:"rival_playchess",//对手下棋 MSG_SETTLEMENT:"finish_game",//结算 MSG_FINAL_GAME:"final_game",//绝杀 MSG_HE_QI_GAME:"heqi_game",//和棋 MSG_REN_SHU_GAME:"renshu_game",//认输 MSG_KICK_ROOM:"kickroom",//踢出 MSG_EXTRUSION_LINE:"extrusion_line",//被登陆 MSG_PVP_TIME:"pvp_time", MSG_HEQI_QINGQIU:"qingqiu_heqi_game",// 请求和棋 MSG_HEQI_JIESHOU:"jieshou_heqi_game",// 接收和棋 MSG_HEQI_TONGZHI:"tongzhi_heqi_game",//通知和棋 MSG_HUIQI_QINGQIU:"qingqiu_huiqi_game",// 请求悔棋 MSG_HUIQI_JIESHOU:"jieshou_huiqi_game",// 接收悔棋 MSG_HUIQI_TONGZHI:"tongzhi_huiqi_game",//通知悔棋 MSG_START_HUIQI:"start_huiqi",//开始悔棋 MSG_RELINK:"relink", //重连 MSG_HEART_BEAT:"MSG_HEART_BEAT",// MSG_MATCHING_5_10_20: "matching_5_10_20",//匹配5,10,20 MSG_FIND_MATCHING_5_10_20: "find_matching_5_10_20",//寻找对局 MSG_OPEN_MATCHING_5_10_20: "open_matching_5_10_20",//开启匹配,等待对手加入 MSG_CANCEL_MATCHING_5_10_20: "cancel_matching_5_10_20",//取消匹配 } //事件列表 public static UI_EVENT = { UI_MSG_ready: "Ready",// UI_MSG_5_10_20_ready: "UI_MSG_5_10_20_ready",// UI_MSG_SHOW_FIREND: "UI_MSG_SHOW_FIREND",// UI_MSG_SHOW_RENJI: "UI_MSG_SHOW_RENJI",// UI_MSG_SHOW_JIFEN: "UI_MSG_SHOW_JIFEN",// UI_MSG_SHOW_LOGIN: "UI_MSG_SHOW_LOGIN",// UI_MSG_UPDATE_MENU_STATUS: "UI_MSG_UPDATE_MENU_STATUS",// UI_MSG_BTN_HEQI: "UI_MSG_BTN_HEQI",// UI_MSG_BTN_HUIQI: "UI_MSG_BTN_HUIQI",// UI_MSG_BTN_SHOW_CHAT: "UI_MSG_BTN_SHOW_CHAT",// UI_MSG_BTN_HIDE_CHAT: "UI_MSG_BTN_HIDE_CHAT",// UI_MSG_SHOW_SELF_EMOTE: "UI_MSG_SHOW_SELF_EMOTE",// UI_MSG_SHOW_RIVAL_EMOTE: "UI_MSG_SHOW_RIVAL_EMOTE",// UI_MSG_SHOW_SELF_CHAT: "UI_MSG_SHOW_SELF_CHAT",// UI_MSG_SHOW_RIVAL_CHAT: "UI_MSG_SHOW_RIVAL_CHAT",// UI_MSG_UPDATE_PRIVACY: "UI_MSG_UPDATE_PRIVACY",// UI_MSG_UPDATE_SELECT_TOUXIANGKUANG: "UI_MSG_UPDATE_SELECT_TOUXIANGKUANG",// UI_MSG_UPDATE_SELECT_JISHIQI: "UI_MSG_UPDATE_SELECT_JISHIQI",// UI_MSG_UPDATE_SELECT_QIPAO: "UI_MSG_UPDATE_SELECT_QIPAO",// } public static CHECK_PRIVACY = [ { tag:"约战邀请", select_list:["所有人可约战","仅好友可约战","拒绝约战"], }, { tag:"留言", select_list:["所有人可留言","仅好友可留言","拒绝留言"], }, { tag:"象棋-战绩", select_list:["所有人可查看","仅好友可查看","拒绝查看"], }, ] //sever public static SEVER_INFO = { IP: "120.79.128.142",// PORT: "9502" } public static LOGIN_TIME = 0; }