コード例 #1
0
ファイル: NMSGame.cs プロジェクト: dkv01/withSIX.Desktop
 public NMSMod(IModContent mod, IAbsoluteDirectoryPath source, IAbsoluteDirectoryPath destination,
               IAbsoluteDirectoryPath gameDir)
 {
     _mod         = mod;
     _source      = source;
     _destination = destination;
     _gameDir     = gameDir;
 }
コード例 #2
0
 public StellarisMod(IAbsoluteDirectoryPath contentPath, IAbsoluteDirectoryPath modPath, IModContent mod)
     : base(contentPath, mod)
 {
     _modPath   = modPath;
     _mod       = mod;
     _sourceZip =
         new Lazy <IAbsoluteFilePath>(
             () => SourcePath.DirectoryInfo.EnumerateFiles("*.zip").First().ToAbsoluteFilePath());
 }
コード例 #3
0
 public SkyrimMod(IAbsoluteDirectoryPath contentPath, IAbsoluteDirectoryPath installPath, IModContent mod)
     : base(contentPath, mod) {
     _installPath = installPath;
 }
コード例 #4
0
ファイル: Arma3Game.cs プロジェクト: MaHuJa/withSIX.Desktop
            /*
        void ProcessModIfHasAdditionalGameRequirements(IModContent mod) {
            var requirements = mod.GetGameRequirements().Select(_aiaGames.Find).ToArray();
            if (!requirements.Any())
                return;

            var existingGames = requirements.Where(x => x.InstalledState.IsInstalled);
            if (!aiamods.ContainsIgnoreCase(mod.PackageName))
                ProcessNonAiaMods(mod, existingGames);
            else
                HandleAiaMods(mod, existingGames);
        }
                
            static bool IsAiaMod(IModContent x) {
                return aiamods.ContainsIgnoreCase(x.PackageName);
            }
                */

            static bool IsAiaSAMod(IModContent x) {
                return aiaStandaloneMods.ContainsIgnoreCase(x.PackageName);
            }
コード例 #5
0
 protected abstract Task UninstallMod(IModContent mod);
コード例 #6
0
 private StellarisMod CreateMod(IModContent x)
     => new StellarisMod(GetContentSourceDirectory(x), GetModInstallationDirectory(), x);
コード例 #7
0
 protected override Task InstallMod(IModContent mod) {
     var m = CreateMod(mod);
     return m.Install(true);
 }
コード例 #8
0
ファイル: NMSGame.cs プロジェクト: dkv01/withSIX.Desktop
 protected override Task UninstallMod(IModContent mod) => CreateMod(mod).Uninstall();
コード例 #9
0
 public StarboundMod(IModContent mod, IAbsoluteDirectoryPath sourceDir, IAbsoluteDirectoryPath modDir,
                     IAbsoluteDirectoryPath gameDir) : base(sourceDir, mod)
 {
     _modDir  = modDir;
     _gameDir = gameDir;
 }
コード例 #10
0
 public StarboundMod(IModContent mod, IAbsoluteDirectoryPath sourceDir, IAbsoluteDirectoryPath modDir,
     IAbsoluteDirectoryPath gameDir) : base(sourceDir, mod) {
     _modDir = modDir;
     _gameDir = gameDir;
 }
コード例 #11
0
 private StarboundMod CreateMod(IModContent mod)
     =>
     new StarboundMod(mod, GetContentSourceDirectory(mod), GetModInstallationDirectory(),
         InstalledState.Directory);
コード例 #12
0
 protected override Task UninstallMod(IModContent mod) {
     throw new NotImplementedException();
 }
コード例 #13
0
 static string SubMod(IModContent mod, string name) => mod.PackageName + "/" + name;
コード例 #14
0
ファイル: Arma3Game.cs プロジェクト: MaHuJa/withSIX.Desktop
 static bool IsIronFrontFullOrLiteMod(IModContent x) {
     return ifMainModFolders.ContainsIgnoreCase(x.PackageName) ||
            ifMainModFoldersLite.ContainsIgnoreCase(x.PackageName) ||
            ifModFolders.ContainsIgnoreCase(x.PackageName)
            || ifModFoldersLite.ContainsIgnoreCase(x.PackageName);
 }
コード例 #15
0
ファイル: NMSGame.cs プロジェクト: dkv01/withSIX.Desktop
 protected override Task InstallMod(IModContent mod) => CreateMod(mod).Install(true);
コード例 #16
0
ファイル: SkyrimGame.cs プロジェクト: dkv01/withSIX.Desktop
        protected override Task InstallMod(IModContent mod)
        {
            var m = CreateMod(mod);

            return(m.Install(true));
        }
コード例 #17
0
ファイル: NMSGame.cs プロジェクト: dkv01/withSIX.Desktop
 private NMSMod CreateMod(IModContent mod)
 => new NMSMod(mod, GetContentSourceDirectory(mod), GetModInstallationDirectory(), InstalledState.Directory);
コード例 #18
0
ファイル: SkyrimGame.cs プロジェクト: dkv01/withSIX.Desktop
 private SkyrimMod CreateMod(IModContent x)
 => new SkyrimMod(GetContentSourceDirectory(x), GetModInstallationDirectory(), x);
コード例 #19
0
 public StellarisMod(IAbsoluteDirectoryPath contentPath, IAbsoluteDirectoryPath modPath, IModContent mod)
     : base(contentPath, mod) {
     _modPath = modPath;
     _mod = mod;
     _sourceZip =
         new Lazy<IAbsoluteFilePath>(
             () => SourcePath.DirectoryInfo.EnumerateFiles("*.zip").First().ToAbsoluteFilePath());
 }
コード例 #20
0
ファイル: SkyrimGame.cs プロジェクト: dkv01/withSIX.Desktop
 public SkyrimMod(IAbsoluteDirectoryPath contentPath, IAbsoluteDirectoryPath installPath, IModContent mod)
     : base(contentPath, mod)
 {
     _installPath = installPath;
 }
コード例 #21
0
 protected override Task UninstallMod(IModContent mod) {
     var m = CreateMod(mod);
     return m.Uninstall();
 }
コード例 #22
0
        protected override Task UninstallMod(IModContent mod)
        {
            var m = CreateMod(mod);

            return(m.Uninstall());
        }
コード例 #23
0
 protected SteamMod(IAbsoluteDirectoryPath sourcePath, IModContent mod)
 {
     SourcePath = sourcePath;
     Mod        = mod;
 }
コード例 #24
0
 private Fallout4Mod CreateMod(IModContent x)
 => new Fallout4Mod(GetContentSourceDirectory(x), GetModInstallationDirectory());
コード例 #25
0
ファイル: CIV5Game.cs プロジェクト: dkv01/withSIX.Desktop
 protected override Task UninstallMod(IModContent mod)
 {
     throw new NotImplementedException();
 }
コード例 #26
0
ファイル: Arma3Game.cs プロジェクト: MaHuJa/withSIX.Desktop
 void ProcessAiaLiteMod(IModContent mod) {
     _additionalAiA.AddRange(GetModPaths(mod));
     if (_ifa > IfaState.None)
         HandleIfa();
 }