using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework; namespace Objektindus { class Silt : IManguKujund { protected string sisu; protected Vector2 asukoht; protected SpriteFont font = null; public Silt(string sisu, float x, float y) { this.sisu = sisu; asukoht = new Vector2(x, y); } #region IManguKujund Members public void Update(Game1 mang) { } public virtual void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch joonistaja) { joonistaja.DrawString(font, sisu, asukoht, Color.Black); } public void LoadContent(Microsoft.Xna.Framework.Content.ContentManager laadija) { font = laadija.Load("Courier New"); } #endregion } }