KavTest/KavTest/Components/SpriteComponent.cs

19 lines
398 B
C#
Raw Normal View History

2020-12-04 23:40:27 +00:00
using Encompass;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace KavTest
{
public struct SpriteComponent : IComponent
{
public Texture2D Texture { get; }
public Vector2 Origin { get; }
public SpriteComponent(Texture2D texture, Vector2 origin)
{
Texture = texture;
Origin = origin;
}
}
}