2012-07-07 20:57:54 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Microsoft.Xna.Framework;
|
|
|
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
|
|
|
|
|
|
class DrawStringCall
|
|
|
|
|
{
|
|
|
|
|
private SpriteFont font;
|
|
|
|
|
private string value;
|
|
|
|
|
private Vector2 position;
|
2023-04-19 21:55:55 +02:00
|
|
|
|
private Vector4 color;
|
|
|
|
|
private Viewport viewport;
|
2012-07-07 20:57:54 +01:00
|
|
|
|
|
2023-04-19 21:55:55 +02:00
|
|
|
|
public SpriteFont Font {
|
2012-07-07 20:57:54 +01:00
|
|
|
|
get {
|
|
|
|
|
return this.font;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Vector2 Position {
|
|
|
|
|
get {
|
|
|
|
|
return this.position;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Value {
|
|
|
|
|
get {
|
|
|
|
|
return this.value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Vector4 Color {
|
|
|
|
|
get {
|
|
|
|
|
return this.color;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-04-19 21:55:55 +02:00
|
|
|
|
|
|
|
|
|
public Viewport Viewport
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.viewport;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DrawStringCall(SpriteFont font, string value, Vector2 position, Vector4 color, Viewport viewport)
|
2012-07-07 20:57:54 +01:00
|
|
|
|
{
|
|
|
|
|
this.font = font;
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.position = position;
|
|
|
|
|
this.color = color;
|
2023-04-19 21:55:55 +02:00
|
|
|
|
this.viewport = viewport;
|
2012-07-07 20:57:54 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|