public override void Unload() { Instance = null; parts = null; effects = null; modPartRecipes = null; modToolRecipes = null; base.Unload(); }
public override void Load() { Instance = this; parts = new Dictionary <string, PartType>(); effects = new Dictionary <string, EffectType>(); modPartRecipes = new List <object[]>(); modToolRecipes = new List <object[]>(); doneCrossModContent = false; herosMod = ModLoader.GetMod("HEROsMod"); cheatSheet = ModLoader.GetMod("CheatSheet"); if (!Main.dedServ) { DismantleUserInterface = new UserInterface(); CheatDismantleUserInterface = new UserInterface(); } GHelper.AddPart(PartData.UnknownPart); GHelper.AddPart(PartData.CopperPickaxeHead); }