ox
ox copied to clipboard
Pooling system for entities
We don't want the garbage collector firing up all the time so, lets pool entities.
This could be made easier if disabled entities were added to a list of... disabled entities. We then iterate through this list and check the type - if it matches, great, enable that. Otherwise, spawn a new entity up to a limit cap that the user sets.