feat: More Control Over Displayables

This commit is contained in:
2023-11-27 10:37:39 +03:00
parent cd75c14d83
commit 12bbfdceaf
12 changed files with 676 additions and 86 deletions

View File

@@ -0,0 +1,8 @@
using Microsoft.Xna.Framework.Graphics;
namespace Syntriax.Engine.Core.Abstract;
public interface IDisplayable
{
public void Draw(SpriteBatch spriteBatch);
}

View File

@@ -8,10 +8,6 @@ namespace Syntriax.Engine.Core.Abstract;
public interface ISprite
{
Action<ISprite>? OnTextureChanged { get; set; }
Action<ISprite>? OnColorChanged { get; set; }
Action<ISprite>? OnDepthChanged { get; set; }
Texture2D Texture2D { get; set; }
Color Color { get; set; }
float Depth { get; set; }
}