Terraria.ModLoader.PlayerHooks.GetMapBackgroundImage C# (CSharp) 메소드

GetMapBackgroundImage() 공개 정적인 메소드

public static GetMapBackgroundImage ( Player player ) : Microsoft.Xna.Framework.Graphics.Texture2D
player Player
리턴 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;
        }