Exemple #1
0
        public List <IGame> GetGameRoomsByGameMode(TexasHoldemShared.CommMessages.GameMode mode)
        {
            List <IGame>    toRet   = new List <IGame>();
            int             modeVal = GetGameModeValByName(mode);
            List <XElement> dbGames = _controller.GetGameRoomsByGameMode(modeVal);

            if (dbGames.Capacity == 0)
            {
                return(null);
            }
            foreach (XElement g in dbGames)
            {
                toRet.Add(GameRoomFromXElement(g));
            }
            return(toRet);
        }
Exemple #2
0
 private int GetGameModeValByName(TexasHoldemShared.CommMessages.GameMode mode)
 {
     return(_controller.GetGameModeValByName(mode.ToString()));
 }