コード例 #1
0
 public void BuyFundDriver(ConsoleKeyInfo keyInfo)
 {
     try
     {
         _game.BuyFundDriver((int)keyInfo.Key - 64);
     }
     catch (Exception exp)
     {
         PrettyConsole.WriteLineColor(ConsoleColor.Red, "Error: {0}", exp);
     }
     DisplayGameData(GetGameData());
 }
コード例 #2
0
        public BuyItemModel BuyFundDriver(int id)
        {
            var buyResult = _gameManager.BuyFundDriver(id);

            return(buyResult != null?_fundsDriverBuyinfoModelMapper.Map(buyResult) : null);
        }