/** * 玩家加入 * @param playerData 玩家信息 */ public void GC_BACCART_SYNC_JOIN(InputMessage data) { BaccartPlayerData playerData = new BaccartPlayerData(); playerData.playerId = data.GetLong(); //玩家d playerData.name = data.GetString(); //名字 playerData.img = data.GetString(); //图像 playerData.gold = data.GetLong(); //金币 playerData.vip = data.GetInt(); //vip playerData.pos = data.GetInt(); //位置 BaccartHandler.Instance().GC_BACCART_SYNC_JOIN(playerData); }
/** * 玩家加入 * @param playerDataList 玩家信息列表 * @param pearlRoadDataList 珠盘路 * @param betDataList 下注信息 * @param roomState 房间状态 * @param jackpot jackpot * @param roomId 房间id * @param remainCards 剩余牌数 * @param remainTime 剩余时间 */ public void GC_BACCART_JOIN(InputMessage data) { int i, size; ArrayList playerDataList = new ArrayList(); size = data.GetShort(); for (i = 0; i < size; i++) { BaccartPlayerData playerDataList_Datas = new BaccartPlayerData(); playerDataList_Datas.playerId = data.GetLong(); playerDataList_Datas.name = data.GetString(); //名字 playerDataList_Datas.img = data.GetString(); //图像 playerDataList_Datas.gold = data.GetLong(); playerDataList_Datas.vip = data.GetInt(); //vip playerDataList_Datas.pos = data.GetInt(); //位置 playerDataList.Add(playerDataList_Datas); } ArrayList pearlRoadDataList = new ArrayList(); size = data.GetShort(); for (i = 0; i < size; i++) { PearlRoadData pearlRoadDataList_Datas = new PearlRoadData(); pearlRoadDataList_Datas.baccartPair = data.GetInt(); //百家乐对子 pearlRoadDataList_Datas.baccartResult = data.GetInt(); //百家乐结果 pearlRoadDataList.Add(pearlRoadDataList_Datas); } ArrayList betDataList = new ArrayList(); size = data.GetShort(); for (i = 0; i < size; i++) { BaccartBetData betDataList_Datas = new BaccartBetData(); betDataList_Datas.betType = data.GetInt(); //押注类型 betDataList_Datas.betNum = data.GetLong(); betDataList.Add(betDataList_Datas); } int roomState = data.GetInt(); long jackpot = data.GetLong(); int roomId = data.GetInt(); int remainCards = data.GetInt(); long remainTime = data.GetLong(); BaccartHandler.Instance().GC_BACCART_JOIN(playerDataList, pearlRoadDataList, betDataList, roomState, jackpot, roomId, remainCards, remainTime); }