29 lines
809 B
C#
29 lines
809 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using CzokoŚmieciarka.MonoGameView.DataModels.Interfaces;
|
|||
|
using CzokoŚmieciarka.MonoGameView.DataModels.Models;
|
|||
|
using Microsoft.Xna.Framework;
|
|||
|
using Microsoft.Xna.Framework.Content;
|
|||
|
using Microsoft.Xna.Framework.Graphics;
|
|||
|
|
|||
|
namespace MonoGameView.DataModels.Models
|
|||
|
{
|
|||
|
public class Grass : IDrawables
|
|||
|
{
|
|||
|
private Coords Coords;
|
|||
|
|
|||
|
public Grass(Coords coords)
|
|||
|
{
|
|||
|
Coords = coords;
|
|||
|
}
|
|||
|
|
|||
|
public void Draw(ContentManager content, SpriteBatch batch, int size)
|
|||
|
{
|
|||
|
batch.Draw(content.Load<Texture2D>("grass"), new Rectangle(Coords.X * 500 / size, Coords.Y * 500 / size, 500 / size, 500 / size), Color.White);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|