feat: More Control Over Displayables
This commit is contained in:
8
Engine.Core/Abstract/IDisplayable.cs
Normal file
8
Engine.Core/Abstract/IDisplayable.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
namespace Syntriax.Engine.Core.Abstract;
|
||||
|
||||
public interface IDisplayable
|
||||
{
|
||||
public void Draw(SpriteBatch spriteBatch);
|
||||
}
|
@@ -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; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user