Exemplo n.º 1
0
        public static int GetPatchCount(this WingmanMod mod)
        {
            var allFilePatches = mod.FilePatches.SelectMany(fp => fp.Value).SelectMany(ps => ps.Patches).Count();
            var allPatches     = mod.AssetPatches.SelectMany(fp => fp.Value).SelectMany(ps => ps.Patches).Count();

            return(allFilePatches + allPatches);
        }
Exemplo n.º 2
0
        public static List <string> GetFilesModified(this WingmanMod mod)
        {
            var fp = mod.FilePatches?.Keys.ToList();
            var ap = mod.AssetPatches?.Keys.ToList();

            return(ap.Concat(fp).Distinct().ToList());
        }
Exemplo n.º 3
0
 public bool IsValid(WingmanMod mod)
 {
     return(mod is { FilePatches : { } } jsonMod&& (jsonMod.FilePatches.Any() ||
                                                    (jsonMod.AssetPatches != null && jsonMod.AssetPatches.Any())));
 }