PongFE/PongFE/Components/UITextComponent.cs

18 lines
353 B
C#

using Encompass;
using SpriteFontPlus;
namespace PongFE.Components
{
public struct UITextComponent : IComponent
{
public DynamicSpriteFont Font { get; }
public string Text { get; }
public UITextComponent(DynamicSpriteFont font, string text)
{
Font = font;
Text = text;
}
}
}