Esempio n. 1
0
        ////

        private IDictionary <string, ISet <Mod> > GetModsByAuthor()
        {
            var mods = new Dictionary <string, ISet <Mod> >();

            foreach (var kv in ModListHelpers.GetLoadedModsByBuildInfo())
            {
                Services.Tml.BuildPropertiesEditor editor = kv.Key;
                Mod mod = kv.Value;

                foreach (string author in editor.Author.Split(',').Select(a => a.Trim()))
                {
                    mods.Append2D(author, mod);
                }
            }

            return(mods);
        }
 public static IDictionary <Services.Tml.BuildPropertiesEditor, Mod> GetModsByBuildInfo()
 {
     return(ModListHelpers.GetLoadedModsByBuildInfo());
 }
Esempio n. 3
0
 private IDictionary <string, Services.Tml.BuildPropertiesEditor> GetBuildPropsByModName()
 {
     return(ModListHelpers.GetLoadedModsByBuildInfo()
            .ToDictionary(kv => kv.Value.Name, kv => kv.Key));
 }