public AchievementDetail(IMiniGameInfo.Type _gameType) { gameType = _gameType; countWin = 0; countDraw = 0; countLose = 0; }
public MiniGameDetail(IMiniGameInfo.Type _gameType) { tableData = new TableData(); listServerDetail_Normal = new List <SubServerDetail>(); listServerDetail_Error = new List <SubServerDetail>(); gameType = _gameType; }
void AddNewGameDetail(IMiniGameInfo.Type _gameType) { if (listMiniGameDetail == null) { listMiniGameDetail = new List <MiniGameDetail>(); } listMiniGameDetail.Add(new MiniGameDetail(_gameType)); }
void AddNewAchievementDetail(IMiniGameInfo.Type _gameType) { if (listAchievementDetail == null) { listAchievementDetail = new List <AchievementDetail>(); } AchievementDetail _achievementDetail = new AchievementDetail(_gameType); listAchievementDetail.Add(_achievementDetail); }
public void RemoveTotalBetInGameInfo(IMiniGameInfo.Type _gameType) { if (listTotalBetInGameInfo == null) { return; } for (int i = 0; i < listTotalBetInGameInfo.Count; i++) { if (listTotalBetInGameInfo[i].gameType == _gameType) { listTotalBetInGameInfo.RemoveAt(i); break; } } }
public MiniGameDetail GetMiniGameDetail(IMiniGameInfo.Type _gameType) { if (listMiniGameDetail == null || listMiniGameDetail.Count == 0) { return(null); } for (int i = 0; i < listMiniGameDetail.Count; i++) { if (listMiniGameDetail[i].gameType == _gameType) { return(listMiniGameDetail[i]); } } return(null); }
public AchievementDetail GetAchievementDetail(IMiniGameInfo.Type _gameType) { if (listAchievementDetail == null || listAchievementDetail.Count == 0) { return(null); } for (int i = 0; i < listAchievementDetail.Count; i++) { if (listAchievementDetail[i].myGameInfo.gameType == _gameType) { return(listAchievementDetail[i]); } } return(null); }
public IMiniGameInfo GetMiniGameInfo(IMiniGameInfo.Type _gameType) { if (listMiniGames == null || listMiniGames.Count == 0) { Debug.LogError("listMiniGames is NULL"); return(null); } for (int i = 0; i < listMiniGames.Count; i++) { if (listMiniGames [i].gameType == _gameType) { return(listMiniGames [i]); } } return(null); }
public TotalBetInGameInfo GetTotalBetInGameInfo(IMiniGameInfo.Type _gameType) { if (listTotalBetInGameInfo == null || listTotalBetInGameInfo.Count == 0) { #if TEST Debug.LogError(">>> listTotalBetInGameInfo is null or count = 0"); #endif return(null); } for (int i = 0; i < listTotalBetInGameInfo.Count; i++) { if (listTotalBetInGameInfo[i].gameType == _gameType) { return(listTotalBetInGameInfo[i]); } } return(null); }
public void SetTotalBetInGameInfo(IMiniGameInfo.Type _gameType, long _totalBet) { if (listTotalBetInGameInfo == null) { #if TEST Debug.LogError(">>> listTotalBetInGameInfo is null"); #endif } else { for (int i = 0; i < listTotalBetInGameInfo.Count; i++) { if (listTotalBetInGameInfo[i].gameType == _gameType) { listTotalBetInGameInfo[i].totalBet = _totalBet; return; } } #if TEST Debug.LogError(">>> Không tìm được game " + _gameType.ToString()); #endif } }
public void AddNewTotalBetInGameInfo(IMiniGameInfo.Type _gameType) { if (listTotalBetInGameInfo == null) { listTotalBetInGameInfo = new List <TotalBetInGameInfo>(); listTotalBetInGameInfo.Add(new TotalBetInGameInfo(_gameType)); } else { bool _isExist = false; for (int i = 0; i < listTotalBetInGameInfo.Count; i++) { if (listTotalBetInGameInfo[i].gameType == _gameType) { _isExist = true; break; } } if (!_isExist) { listTotalBetInGameInfo.Add(new TotalBetInGameInfo(_gameType)); } } }
public TotalBetInGameInfo(IMiniGameInfo.Type _gameType) { gameType = _gameType; totalBet = 0; }