Пример #1
0
 public override void Unload()
 {
     Instance        = null;
     modifierForgeUI = null;
     mapDeviceUI     = null;
     PoMDataLoader.Unload();
 }
Пример #2
0
        public override void Load()
        {
            Instance = this;

            AddPrefix("", new PoMPrefix());

            ModNet.ModNet.Initialize();
            PoMDataLoader.RegisterMod(this);
        }
Пример #3
0
        public override void PostSetupContent()
        {
            PoMDataLoader.Initialize();

            if (Main.netMode != 2)
            {
                new ModifierForgeUI().Initialize();
                modifierForgeUI = new UserInterface();
                ModifierForgeUI.HideUI();

                new MapDeviceUI().Initialize();
                mapDeviceUI = new UserInterface();
                MapDeviceUI.HideUI();
            }
        }