Example #1
0
        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);
        }
Example #2
0
 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;
 }
Example #3
0
 public SRMod(SRModInfo info, ModEntryPoint entryPoint, String path) : this(info, entryPoint)
 {
     this.Path = path;
 }
Example #4
0
 public SRMod(SRModInfo info, ModEntryPoint entryPoint)
 {
     this.ModInfo    = info;
     this.EntryType  = entryPoint.GetType();
     this.entryPoint = entryPoint;
 }