예제 #1
0
파일: User.cs 프로젝트: shoferb/OYAOB
 public bool AddRoomToSpectetorGameList(IGame game)
 {
     lock (padlock)
     {
         try
         {
             if (game != null)
             {
                 bool alreadyIn = HasThisSpectetorGame(game);
                 if (!alreadyIn)
                 {
                     userDataProxy.AddGameToUserSpectetorGames(this.id, game.Id, game.GameNumber);
                     return(true);
                 }
             }
             return(false);
         }
         catch
         {
             return(false);
         }
     }
 }