Ejemplo n.º 1
0
        public override void Unload()
        {
            Instance = null;

            parts          = null;
            effects        = null;
            modPartRecipes = null;
            modToolRecipes = null;

            base.Unload();
        }
Ejemplo n.º 2
0
        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);
        }