public AssetLoader GetStaticAssetLoadTree() { var loadTree = new AssetLoader(this); foreach (var imageName in GamePlatform.GetFilesAtContentDirectory("images")) { loadTree.AddImagePath("images/" + Path.GetFileNameWithoutExtension(imageName)); } foreach (var spriteFont in GamePlatform.GetFilesAtContentDirectory("fonts", "xnb")) { loadTree.AddSpritefontPath("fonts/" + Path.GetFileNameWithoutExtension(spriteFont)); } foreach (var soundEffect in GamePlatform.GetFilesAtContentDirectory("sounds", "xnb")) { loadTree.AddSoundPath("sounds/" + Path.GetFileNameWithoutExtension(soundEffect)); } return(loadTree); }