KumiScript/renderer/SceneElement.cs

21 lines
428 B
C#
Raw Normal View History

2024-01-26 05:37:51 +00:00
namespace KumiScript.Renderer
{
public class SceneElement
{
IDrawable _elem;
int _x;
int _y;
public SceneElement(IDrawable elem, int xPos, int yPos)
{
_elem = elem;
_x = xPos;
_y = yPos;
}
public void Draw(int sceneX, int sceneY)
{
_elem.Draw(_x + sceneX, _y + sceneY);
return;
}
}
}