Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to be able to release collections of nodes that are no longer required. #10

Open
alecmce opened this issue Oct 16, 2011 · 1 comment

Comments

@alecmce
Copy link
Owner

alecmce commented Oct 16, 2011

We reference collections of nodes in a system using

System.onRegister
{
nodes = game.getNodes(NodeClass);
}

we should probably do the inverse in onRemove, or at least offer the functionality:

System.onRemove
{
game.releaseNodes(nodes);
}

This functionality would probably actually sit in NodesManager.release

@richardlord
Copy link
Contributor

That sounds like a good idea. You'll want reference counting on the collections in case multiple systems use the same collection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants