static void AddMod(ProtoMod modInfo, Type entryType) { ModEntryPoint entryPoint = (ModEntryPoint)Activator.CreateInstance(entryType); var newmod = new SRMod(modInfo.ToModInfo(), entryPoint, modInfo.path); Mods.Add(modInfo.id, newmod); }
public SRMod(SRModInfo info, IModEntryPoint entryPoint) { this.ModInfo = info; this.EntryType = entryPoint.GetType(); if (entryPoint is ModEntryPoint) { entryPoint2 = (ModEntryPoint)entryPoint; useNewEntry = true; } this.entryPoint = entryPoint; }
public SRMod(SRModInfo info, ModEntryPoint entryPoint, String path) : this(info, entryPoint) { this.Path = path; }
public SRMod(SRModInfo info, ModEntryPoint entryPoint) { this.ModInfo = info; this.EntryType = entryPoint.GetType(); this.entryPoint = entryPoint; }