protected EntityCreator(ILocalisationApiHelper localisationApiHelper, ICWParserHelper cwParserHelper) { LocalisationApiHelper = localisationApiHelper; CWParserHelper = cwParserHelper; ParseFileMask = StellarisDirectoryHelper.TextMask; AbortOnFailure = false; }
private ScriptedVariableAccessor(IEnumerable <CWKeyValue> keyValues, ICWParserHelper cwParserHelper) { DirectoryWalker = null; CWParserHelper = cwParserHelper; variables = new Dictionary <string, string>(); keyValues.Where(kv => IsVariable(kv.Key)).ForEach(kv => variables[kv.Key] = kv.Value); }
public TechTreeGraphCreator(ILocalisationApiHelper localisationApiHelper, ICWParserHelper cwParserHelper, StellarisDirectoryHelper stellarisDirectoryHelper, IEnumerable <StellarisDirectoryHelper> modDirectoryHelpers) : base(localisationApiHelper, cwParserHelper) { this.stellarisDirectoryHelper = stellarisDirectoryHelper; this.modDirectoryHelpers = modDirectoryHelpers; IgnoreFiles = new List <string>(); IgnoreFiles.AddRange(new [] { "00_tier.txt", "00_category.txt", "eac_category.txt" }); }
public DependantsGraphCreator(ILocalisationApiHelper localisationApiHelper, ICWParserHelper cwParserHelper, StellarisDirectoryHelper stellarisDirectoryHelper, IEnumerable <StellarisDirectoryHelper> modDirectoryHelpers, ModEntityData <Tech> techsAndDependencies) { this.localisationApiHelper = localisationApiHelper; this.cwParserHelper = cwParserHelper; this.stellarisDirectoryHelper = stellarisDirectoryHelper; this.modDirectoryHelpers = modDirectoryHelpers; this.techsAndDependencies = techsAndDependencies; }
internal ScriptedVariableAccessor(StellarisDirectoryHelper stellarisDirectoryHelper, IEnumerable <StellarisDirectoryHelper> modDirectoryHelpers, IDirectoryWalker directoryWalker, ICWParserHelper cwParserHelper) { DirectoryWalker = directoryWalker; CWParserHelper = cwParserHelper; variables = new Dictionary <string, string>(); foreach (var directoryHelper in StellarisDirectoryHelper.CreateCombinedList(stellarisDirectoryHelper, modDirectoryHelpers)) { if (Directory.Exists(directoryHelper.ScriptedVariables)) { var modVariables = ParseScriptedVariables(directoryHelper.ScriptedVariables); variables.PutAll(modVariables); } else { Log.Logger.Debug("{0} does not contain scripted variables", directoryHelper.ModName); } } }
public BuildingGraphCreator(ILocalisationApiHelper localisationApiHelper, ICWParserHelper cwParserHelper) : base(localisationApiHelper, cwParserHelper) { }
public DecisionGraphCreator(ILocalisationApiHelper localisationApiHelper, ICWParserHelper cwParserHelper) : base(localisationApiHelper, cwParserHelper) { }
public ShipComponentSetGraphCreator(ILocalisationApiHelper localisationApiHelper, ICWParserHelper cwParserHelper) : base(localisationApiHelper, cwParserHelper) { }
public ShipComponentGraphCreator(ILocalisationApiHelper localisationApiHelper, ICWParserHelper cwParserHelper) : base(localisationApiHelper, cwParserHelper) { excludes.Add("STARBASE_COMBAT_COMPUTER_1"); excludes.Add("STARBASE_COMBAT_COMPUTER_2"); excludes.Add("STARBASE_COMBAT_COMPUTER_3"); }