diff --git a/src/MovingBall.bf b/src/MovingBall.bf index 2bc268e..0bec0a9 100644 --- a/src/MovingBall.bf +++ b/src/MovingBall.bf @@ -6,8 +6,8 @@ struct MovingBall : IArchetypeable { public void Instantiate(ECS ecs, Entity e) { - ecs.Components.AddComponentToEntity(e, ecs.Components.GetId(typeof(Position).GetFullName(.. scope .())), &Position()); - ecs.Components.AddComponentToEntity(e, ecs.Components.GetId(typeof(Velocity).GetFullName(.. scope .())), &Velocity()); - ecs.Components.AddComponentToEntity(e, ecs.Components.GetId(typeof(Sprite).GetFullName(.. scope .())), &Sprite()); + ecs.Components.AddToEntity(e, ecs.Components.GetId(typeof(Position).GetFullName(.. scope .())), &Position()); + ecs.Components.AddToEntity(e, ecs.Components.GetId(typeof(Velocity).GetFullName(.. scope .())), &Velocity()); + ecs.Components.AddToEntity(e, ecs.Components.GetId(typeof(Sprite).GetFullName(.. scope .())), &Sprite()); } } \ No newline at end of file diff --git a/src/Program.bf b/src/Program.bf index c4da795..d4f4baf 100644 --- a/src/Program.bf +++ b/src/Program.bf @@ -25,7 +25,7 @@ class Program uint64 entityCounter = 0; - for(int32 i < 50000) + for(int32 i < 50) { entityCounter++; ecs.Entities.Create(MovingBall());