using MonoGame.FourEngine.Components;
using MonoGame.FourEngine.Entities;
using MonoGame.FourEngine.Resources;

namespace MonoGame.FourEngine.Tiled
{
    public class TiledEntity : BasicEntity
    {
        public int Layer => SpriteComponent.Layer;

        protected override SpriteDefinition SpriteDefinition { get; }

        public TiledEntity(SpriteDefinition spriteDefinition)
        {
            SpriteDefinition = spriteDefinition;
            Components.Add(SpriteComponent = new SpriteComponent(SpriteDefinition));
        }

        protected override void CreateComponents()
        {
            // Don't do anything
        }
    }
}