示例#1
0
 public AchievementDetail(IMiniGameInfo.Type _gameType)
 {
     gameType  = _gameType;
     countWin  = 0;
     countDraw = 0;
     countLose = 0;
 }
示例#2
0
    public MiniGameDetail(IMiniGameInfo.Type _gameType)
    {
        tableData = new TableData();
        listServerDetail_Normal = new List <SubServerDetail>();
        listServerDetail_Error  = new List <SubServerDetail>();

        gameType = _gameType;
    }
示例#3
0
 void AddNewGameDetail(IMiniGameInfo.Type _gameType)
 {
     if (listMiniGameDetail == null)
     {
         listMiniGameDetail = new List <MiniGameDetail>();
     }
     listMiniGameDetail.Add(new MiniGameDetail(_gameType));
 }
示例#4
0
    void AddNewAchievementDetail(IMiniGameInfo.Type _gameType)
    {
        if (listAchievementDetail == null)
        {
            listAchievementDetail = new List <AchievementDetail>();
        }
        AchievementDetail _achievementDetail = new AchievementDetail(_gameType);

        listAchievementDetail.Add(_achievementDetail);
    }
示例#5
0
 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;
         }
     }
 }
示例#6
0
 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);
 }
示例#7
0
 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);
 }
示例#8
0
 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);
 }
示例#9
0
 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);
 }
示例#10
0
 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
     }
 }
示例#11
0
 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));
         }
     }
 }
示例#12
0
 public TotalBetInGameInfo(IMiniGameInfo.Type _gameType)
 {
     gameType = _gameType;
     totalBet = 0;
 }