//玩家买码 public static int PlayerMaiMa(this FiveStarRoom fiveStarRoom, int huPaiIndex, int operateType) { if (operateType != FiveStarOperateType.ZiMo) { return(0); } if (fiveStarRoom.RoomConfig.MaiMaType == FiveStarMaiMaType.ZiMo) { return(fiveStarRoom.BoradcastPlayerMaiMa()); } else if (fiveStarRoom.RoomConfig.MaiMaType == FiveStarMaiMaType.LiangDaoZiMo && fiveStarRoom.FiveStarPlayerDic[huPaiIndex].IsLiangDao) { return(fiveStarRoom.BoradcastPlayerMaiMa()); } return(0); }