2024-01-26 05:37:51 +00:00
|
|
|
namespace KumiScript.Renderer
|
|
|
|
{
|
|
|
|
public class Scene
|
|
|
|
{
|
|
|
|
List<SceneElement> _elements;
|
2024-07-12 00:17:00 +00:00
|
|
|
public Scene()
|
2024-01-26 05:37:51 +00:00
|
|
|
{
|
|
|
|
_elements = new List<SceneElement>(16);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void DrawScene()
|
|
|
|
{
|
|
|
|
foreach (SceneElement e in _elements)
|
|
|
|
{
|
|
|
|
e.Draw(0, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public void AddElement(SceneElement e)
|
|
|
|
{
|
|
|
|
_elements.Add(e);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
public bool RemoveElement(SceneElement e)
|
|
|
|
{
|
|
|
|
return _elements.Remove(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|