Ejemplo n.º 1
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 ");
        }