Closed spaceemotion closed 10 years ago
Sorry, been busy with a move. Sounds logical, I'll make the change. Feel free to submit a pull request as well. :)
Doesn't look like this is going to work. Since I moved the EntityManager to the managers package. It needs the Entity constructor to be public. I don't think this is too bad though. Since creating and inserting entities manually will cause errors if you don't set the entity id correctly. Not sure if there's a better way to protect against this..
The constructor of
Entity
is public, so I can theoretically still create entities through the constructor. Making it package-protected would force the "user" to create new entities through the world