From ced3d03bdb3ce866d832e03fb212865140905a9a Mon Sep 17 00:00:00 2001 From: Thomas Leyh Date: Sun, 24 Jul 2016 08:14:18 +0200 Subject: Add project files. --- V3/Screens/IDrawable.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 V3/Screens/IDrawable.cs (limited to 'V3/Screens/IDrawable.cs') diff --git a/V3/Screens/IDrawable.cs b/V3/Screens/IDrawable.cs new file mode 100644 index 0000000..b940d94 --- /dev/null +++ b/V3/Screens/IDrawable.cs @@ -0,0 +1,19 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; + +namespace V3.Screens +{ + /// + /// An object that can be drawn using a sprite batch. + /// + public interface IDrawable + { + /// + /// Draws this object using the given sprite batch. + /// + /// a snapshot of the game time + /// the sprite batch to use for drawing + /// this object + void Draw(GameTime gameTime, SpriteBatch spriteBatch); + } +} -- cgit v1.2.1