28 lines
786 B
C#
28 lines
786 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 Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Content;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using MonoGameView.DataModels.Models;
|
|
|
|
namespace CzokoŚmieciarka.MonoGameView.DataModels.Models
|
|
{
|
|
public class House : IDrawables
|
|
{
|
|
private Coords Coords;
|
|
|
|
public House(Coords coords)
|
|
{
|
|
Coords = coords;
|
|
}
|
|
public void Draw(SpriteBatch batch, int size)
|
|
{
|
|
batch.Draw(ImageContainer.GetImage("house"), new Rectangle(Coords.X * 500 / size, Coords.Y * 500 / size, 500 / size, 500 / size), Color.White);
|
|
}
|
|
}
|
|
}
|