示例#1
0
        public void HandlePlayerGet(string cardId, int turn)
        {
            if (string.IsNullOrEmpty(cardId))
            {
                return;
            }
            LogEvent("PlayerGet", cardId);
            _game.PlayerGet(cardId, false, turn);

            if (cardId == "GAME_005" && _game.CurrentGameStats != null)
            {
                _game.CurrentGameStats.Coin = true;
                Logger.WriteLine("Got coin", "GameStats");
            }

            _game.AddPlayToCurrentGame(PlayType.PlayerGet, turn, cardId);
            GameEvents.OnPlayerGet.Execute(GameV2.GetCardFromId(cardId));
        }