コード例 #1
0
ファイル: MyMod.cs プロジェクト: hamstar0/tml-wormholes-mod
        ////////////////

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

                this.UI = new WormholesUI();
            }
        }
コード例 #2
0
        ////////////////

        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();
            }
        }