Beispiel #1
0
        private void LoadModules()
        {
            StashNearby = new StashToNearbyChestsModule(this);
            if (Config.StashToNearbyChests)
            {
                StashNearby.Activate();
            }

            CategorizeChests = new CategorizeChestsModule(this);
            if (Config.CategorizeChests)
            {
                CategorizeChests.Activate();
            }

            CraftFromChests = new CraftFromChestsModule(this);
            if (Config.CraftFromChests)
            {
                CraftFromChests.Activate();
            }

            StashFromAnywhere = new StashFromAnywhereModule(this);
            if (Config.StashAnywhere)
            {
                StashFromAnywhere.Activate();
            }
        }
        private void UnloadModules()
        {
            StashNearby.Deactivate();
            StashNearby = null;

            CategorizeChests.Deactivate();
            CategorizeChests = null;

            CraftFromChests.Deactivate();
            CraftFromChests = null;
        }