void ShowPurchase(StreamlootsPurchase purchase) { CardDto cardDto = new CardDto(purchase); ShowCardEvent(cardDto); OnCardsPurchased(this, new CardEventArgs(cardDto)); }
void ShowCardRedeemed(StreamlootsCard card) { CardDto cardDto = new CardDto(card); ShowCardEvent(cardDto); OnCardRedeemed(this, new CardEventArgs(cardDto)); }
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 "); }
public CardEventArgs(CardDto cardDto) { CardDto = cardDto; }
void ShowCardEvent(CardDto cardDto) { }