aboutsummaryrefslogtreecommitdiff
path: root/V3/Screens/IDrawable.cs
blob: b940d94d14580d5543e58b3f90952a12ea5622c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace V3.Screens
{
    /// <summary>
    /// An object that can be drawn using a sprite batch.
    /// </summary>
    public interface IDrawable
    {
        /// <summary>
        /// Draws this object using the given sprite batch.
        /// </summary>
        /// <param name="gameTime">a snapshot of the game time</param>
        /// <param name="spriteBatch">the sprite batch to use for drawing
        /// this object</param>
        void Draw(GameTime gameTime, SpriteBatch spriteBatch);
    }
}