KumiScript/renderer/Scene.cs

30 lines
591 B
C#
Raw Normal View History

2024-01-26 05:37:51 +00:00
namespace KumiScript.Renderer
{
public class Scene
{
List<SceneElement> _elements;
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);
}
}
}