public static HeroesXml Initialize(string parentFile, string xmlBaseFolder, bool logger, int?currentBuild)
        {
            HeroesXml heroesXml = new HeroesXml(parentFile, xmlBaseFolder, logger, currentBuild);

            heroesXml.Parse();
            return(heroesXml);
        }
예제 #2
0
        private HeroBuildsXml(string parentFile, string xmlBaseFolder, HeroesXml heroesXml, bool logger, int?build = null)
            : base(build ?? 0, logger)
        {
            XmlParentFile = parentFile;
            XmlBaseFolder = xmlBaseFolder;
            HeroesXml     = heroesXml;

            if (build == null)
            {
                SetDefaultBuildDirectory();
            }
            else
            {
                SelectedBuild = build.Value;
            }

            XmlFolder = Path.Combine(xmlBaseFolder, SelectedBuild.ToString());
        }
예제 #3
0
        public static HeroBuildsXml Initialize(string parentFile, string xmlBaseFolder, HeroesXml heroesXml, bool logger, int?build = null)
        {
            if (heroesXml == null)
            {
                return(null);
            }

            HeroBuildsXml xml = new HeroBuildsXml(parentFile, xmlBaseFolder, heroesXml, logger, build);

            xml.Parse();
            return(xml);
        }