18 lines
391 B
C#
18 lines
391 B
C#
|
using Encompass;
|
||
|
using Microsoft.Xna.Framework.Graphics;
|
||
|
|
||
|
namespace PongFE.Components
|
||
|
{
|
||
|
public struct Texture2DComponent : IComponent, IDrawableComponent
|
||
|
{
|
||
|
public Texture2D Texture { get; }
|
||
|
public int Layer { get; }
|
||
|
|
||
|
public Texture2DComponent(Texture2D texture, int layer)
|
||
|
{
|
||
|
Texture = texture;
|
||
|
Layer = layer;
|
||
|
}
|
||
|
}
|
||
|
}
|