GGAlanSmithee / Entities

efficient and easy-to-use Entity-Component System in JavaScript
http://ggalansmithee.github.io/Entities/
MIT License
4 stars 1 forks source link

remove `onInit` #106

Open GGAlanSmithee opened 5 years ago

GGAlanSmithee commented 5 years ago

See #90 for background

The EntityManager.onInit makes little sense. When should it be ran? WHen the system is initialized, or when a new entity is created, or at another time? How could it be triggered from the inside of the EntityManager but allow for passing options from the outside?

Initializing an entity is the job of the EntityFactory