public static void Clear()
        {
            TextureReplacements.Clear();
            TextureResolutions.Clear();
            FilesExist.Clear();
            MusicManager.ReloadMusic();
            SoundEffectManager.ReloadSounds();
            ModelManager.Clear();
            TextureManager.TextureList.Clear();
            // TODO
            //Water.ClearAnimationResources();
            //Whirlpool.LoadedWaterTemp = false;
            //Waterfall.ClearAnimationResources();

            Logger.Debug("---Cleared ContentPackManager---");
        }
        public static ContentManager GetContentManager(string file, string fileEndings)
        {
            if (Core.GameOptions.ContentPackNames.Any())
            {
                foreach (var contentPackName in Core.GameOptions.ContentPackNames)
                {
                    var contentPath = Path.Combine("ContentPacks", contentPackName);

                    foreach (var fileEnding in fileEndings.Split(Convert.ToChar(",")))
                    {
                        var path = Path.Combine(GameController.GamePath, contentPath, file + fileEnding);

                        if (!FilesExist.ContainsKey(path))
                        {
                            FilesExist.Add(path, File.Exists(path));
                        }

                        if (FilesExist[path])
                        {
                            return(new ContentManager(Core.GameInstance.Services, contentPath));
                        }
                    }
                }
            }

            GameMode gameMode = GameModeManager.ActiveGameMode;

            if (!Equals(gameMode.ContentFolder, new ContentFolder()))
            {
                if (fileEndings.Split(Convert.ToChar(",")).Any(fileEnding => gameMode.ContentFolder.CheckExists(file + fileEnding) == ExistenceCheckResult.FileExists))
                {
                    return(new ContentManager(Core.GameInstance.Services, gameMode.ContentFolder.Path));
                }
            }

            return(new ContentManager(Core.GameInstance.Services, "Content"));
        }