21 lines
No EOL
428 B
C#
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;
|
|
}
|
|
}
|
|
} |