﻿namespace ECS
{
    class MainClass
    {
        public static void Main()
        {
            SystemManager.Instance.AddSystem(new Systems.Render());
            SystemManager.Instance.AddSystem(new Systems.Physics());

            var e = new Entity();

            e.AddComponent(new Components.Position { X = 0.0f, Y = 0.0f });
            e.AddComponent(new Components.Velocity { X = 0.1f, Y = 0.1f });
            e.AddComponent(new Components.Sprite { Filename = "ball.png" });

            EntityManager.Instance.AddEntity(e);

            while (true)
            {
                SystemManager.Instance.Process();
            }
        }
    }
}
