Esempio n. 1
0
 private static void Postfix(ref List <ElementLoader.ElementEntry> __result)
 {
     PipLib.Logger.Info("Loading elements...");
     foreach (var mod in PipLib.Mods)
     {
         ElementManager.CollectElements(System.IO.Path.Combine(PLUtil.GetAssemblyDir(mod.GetType()), PLUtil.DIR_ELEMENTS), __result);
     }
     ElementManager.RegisterSubstances();
     Debug.Log("Ignore any messages below about \"missing substance for element\"!");
 }
Esempio n. 2
0
 internal static KMod.Mod GetKMod(IPipMod mod)
 {
     return(Global.Instance.modManager.mods.Find(m => m.label.id == System.IO.Path.GetFileName(PLUtil.GetAssemblyDir(mod.GetType()))));
 }