private static void loadMod(IModBase mod, string filePath) { if (mod == null) { return; } NumberOfLoadedMods++; if (!_loadedMods.ContainsKey(mod.Author)) { _loadedMods[mod.Author] = new List <string>(); } _loadedMods[mod.Author].Add(mod.ModName); _loadedModInstances[getModKey(mod)] = mod; _loadedModFolderPaths[getModKey(mod)] = Path.GetDirectoryName(filePath); Console.WriteLine("Loaded mod: {0}", mod.ModName); Console.WriteLine("Author: {0}", mod.Author); Console.WriteLine("Version: {0}", mod.Version); }
private static void loadMod(IModBase mod, string filePath) { if (mod == null) { return; } NumberOfLoadedMods++; if (!_loadedMods.ContainsKey(mod.Author)) { _loadedMods[mod.Author] = new List<string>(); } _loadedMods[mod.Author].Add(mod.ModName); _loadedModInstances[getModKey(mod)] = mod; _loadedModFolderPaths[getModKey(mod)] = Path.GetDirectoryName(filePath); Console.WriteLine("Loaded mod: {0}",mod.ModName); Console.WriteLine("Author: {0}",mod.Author); Console.WriteLine("Version: {0}",mod.Version); }
private static string getModKey(IModBase mod) { return(mod == null ? null : String.Format("{0}.{1}", mod.Author, mod.ModName)); }
private static string getModKey(IModBase mod) { return mod == null ? null : String.Format("{0}.{1}", mod.Author, mod.ModName); }