static void LoadMods() { foreach (var definition in definitions) { var mainAssemblyPath = Path.Combine(definition.path, definition.manifest.Main); var type = FindModType(mainAssemblyPath, definition.manifest.MainClass); if (type != null) { IkenFelineMod mod = (IkenFelineMod)Activator.CreateInstance(type, definition.manifest); Mods.Add(mod.Manifest.ModId, mod); mod.Load(); } } }
public ModLogger(IkenFelineMod mod) { this.mod = mod; }