mirror of
https://github.com/Memorix101/UnityXNA/
synced 2024-12-30 15:25:35 +01:00
46 lines
771 B
C#
46 lines
771 B
C#
|
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;
|
|||
|
private Vector4 color ;
|
|||
|
|
|||
|
public SpriteFont Font {
|
|||
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
public DrawStringCall(SpriteFont font, string value, Vector2 position, Vector4 color)
|
|||
|
{
|
|||
|
this.font = font;
|
|||
|
this.value = value;
|
|||
|
this.position = position;
|
|||
|
this.color = color;
|
|||
|
}
|
|||
|
|
|||
|
}
|