Terraria.ModLoader.PlayerHooks.GetMapBackgroundImage C# (CSharp) Method

GetMapBackgroundImage() public static method

public static GetMapBackgroundImage ( Player player ) : Microsoft.Xna.Framework.Graphics.Texture2D
player Player
return Microsoft.Xna.Framework.Graphics.Texture2D
        public static Texture2D GetMapBackgroundImage(Player player)
        {
            Texture2D texture = null;
            foreach (ModPlayer modPlayer in player.modPlayers)
            {
                texture = modPlayer.GetMapBackgroundImage();
                if (texture != null)
                {
                    return texture;
                }
            }
            return texture;
        }