예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 private static string getModKey(IModBase mod)
 {
     return(mod == null ? null : String.Format("{0}.{1}", mod.Author, mod.ModName));
 }
예제 #4
0
 private static string getModKey(IModBase mod)
 {
     return mod == null ? null : String.Format("{0}.{1}", mod.Author, mod.ModName);
 }