public WingmanPatchServiceBuilder(ISourceFileService sourceFileService, FilePatcher filePatcher, AssetPatcher assetPatcher, DirectoryBuildContextFactory contextFactory, IModBuilder modBuilder, ILogger <ModPatchService <WingmanMod> > logger)
 {
     _fileService  = sourceFileService;
     _filePatcher  = filePatcher;
     _assetPatcher = assetPatcher;
     _ctxFactory   = contextFactory;
     _modBuilder   = modBuilder;
     _tgtLogger    = logger;
 }
Beispiel #2
0
        public static ModManager Load(string path, IModBuilder builder)
        {
            var modder = new ModManager();

            foreach (var subpath in SystemIO.FileSystem.Directory.EnumerateDirectories(path))
            {
                modder.mods.Add(builder.Build(subpath));
            }

            modder.dictTerrainDefs = MergeTerrainDefs(modder.mods.SelectMany(x => x.terrainDefs));

            return(modder);
        }
Beispiel #3
0
 public Facade()
 {
     modBuilder = new Mod.Builder();
 }