コード例 #1
0
        void ShowPurchase(StreamlootsPurchase purchase)
        {
            CardDto cardDto = new CardDto(purchase);

            ShowCardEvent(cardDto);
            OnCardsPurchased(this, new CardEventArgs(cardDto));
        }
コード例 #2
0
        void ShowCardRedeemed(StreamlootsCard card)
        {
            CardDto cardDto = new CardDto(card);

            ShowCardEvent(cardDto);
            OnCardRedeemed(this, new CardEventArgs(cardDto));
        }
コード例 #3
0
        public void Initialize()
        {
            const string cardFolder  = @"D:\Dropbox\DX\Twitch\CodeRushed\MrAnnouncerBot\OverlayManager\wwwroot\GameDev\Assets\DragonH\Cards";
            string       pngFileName = System.IO.Path.Combine(cardFolder, $"{CardDto.GetFileName(CardName)}.png");

            PngFileFound = System.IO.File.Exists(pngFileName);
            if (PngFileFound)
            {
                CardImageName = System.IO.Path.GetFileNameWithoutExtension(pngFileName);
            }
            else
            {
                System.Diagnostics.Debugger.Break();
            }
            IsSecret = CardName.StartsWith("Secret ");
        }
コード例 #4
0
 public CardEventArgs(CardDto cardDto)
 {
     CardDto = cardDto;
 }
コード例 #5
0
 void ShowCardEvent(CardDto cardDto)
 {
 }