public static HeroesXml Initialize(string parentFile, string xmlBaseFolder, bool logger, int?currentBuild) { HeroesXml heroesXml = new HeroesXml(parentFile, xmlBaseFolder, logger, currentBuild); heroesXml.Parse(); return(heroesXml); }
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()); }
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); }