示例#1
0
        ////////////////

        public override void Load()
        {
            // Clients and single only
            if (Main.netMode != 2)
            {
                WormholePortal.Initialize();
                WormholesUI.Initialize();

                this.UI = new WormholesUI();
            }
        }
        ////////////////

        public override void Load()
        {
            WormholesMod.Instance = this;

            var hamhelpmod = ModLoader.GetMod("HamstarHelpers");
            var min_vers   = new Version(1, 2, 0);

            if (hamhelpmod.Version < min_vers)
            {
                throw new Exception("Hamstar Helpers must be version " + min_vers.ToString() + " or greater.");
            }

            this.LoadConfig();

            // Clients and single only
            if (Main.netMode != 2)
            {
                WormholePortal.Initialize();
                WormholesUI.Initialize();

                this.UI = new WormholesUI();
            }
        }