コード例 #1
0
 public void AskBackRound()
 {
     lock (_moveLock)
     {
         if (PreviousRound?.CanExecute(null) == true)
         {
             PreviousRound.Execute(null);
         }
     }
 }
コード例 #2
0
 public IGame ToDomainModel()
 {
     return(new Game.Game(Host)
     {
         Id = Id,
         EasyCode = EasyCode,
         Players = Players?.Select(p => p as IPlayer)?.ToList(),
         CurrentRound = CurrentRound?.ToDomainModel(),
         PreviousRound = PreviousRound?.ToDomainModel(),
         PreviousRounds = PreviousRounds?.Select(pr => pr.ToDomainModel())?.ToList()
     });
 }