/// <summary> /// 二次匹配初始化 /// </summary> public static void Init() { CMD_MAP_MATCH_result = -1; role_res = -1; seat_res = 0; seat_binary = 0; gameInfo = new Res_merge(); gameInfo_sitdown = new SitDown(); battleinfo = new BattleInfo(); playerid2 = 0; Round = 1; PreMove = 0; Pid_Tid = new Dictionary <int, int>(); Attacking = 0; Moving = false; GameChooseStatus = -1; GameLoading = 0; GameLoading_Cnt = 0; for (int i = 1; i <= 10; i++) { GameLoading_num[i] = 0; GameChoose_num[i] = 0; } for (int i = 0; i < 20; i++) { Skill_CD[i] = 0; } }
public static void CMD_MAP_MATCH(NetworkMsg msg) { Res_merge xmsg = new Res_merge(); using (MemoryStream stream = new MemoryStream(msg.data)) { xmsg = ProtoBuf.Serializer.Deserialize <Res_merge>(stream); } CMD_MAP_MATCH_result = xmsg.m_nresultid; if (CMD_MAP_MATCH_result == (int)ResultID.result_id_success) { gameInfo = xmsg; } }