Files
Pong-2P/client/ScreenBounds.cs
2022-10-25 17:26:54 +02:00

27 lines
624 B
C#

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using MonoGame.Extended;
using MonoGame.Extended.Collisions;
namespace client
{
internal class ScreenBounds : IEntity
{
public IShapeF Bounds { get; }
public ScreenBounds(RectangleF rectangleF)
{
Bounds = rectangleF;
}
public void Draw(SpriteBatch spriteBatch)
{
spriteBatch.DrawRectangle((RectangleF)Bounds, Color.White, 3);
}
public void Update(GameTime gameTime) { }
public void OnCollision(CollisionEventArgs collisionInfos) { }
}
}