KumiScript/renderer/SceneElement.cs
2024-01-25 23:37:51 -06:00

21 lines
No EOL
428 B
C#

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;
}
}
}