Пример #1
0
 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;
 }
Пример #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);
        }
Пример #3
0
 public Facade()
 {
     modBuilder = new Mod.Builder();
 }