Moloch icon indicating copy to clipboard operation
Moloch copied to clipboard

Reference-count wands

Open Lilith-In-Starlight opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. Before a recent commit, it was possible for Wands to be instanced but never added to the node tree, but there is still the issue of wands that are nowhere in the world still existing in memory. This shouldn't be too much of a problem, but it still would be better to get rid of these wands.

Describe the solution you'd like Turn wands into a Reference again. They only use the _ready() function and get_tree(), it seems like it should be possible to somehow implement these in non-nodes in some way.

Describe alternatives you've considered It would be possible to create a system that allows us to manually reference-count wands, but it would be possible to miscount due to this.

Lilith-In-Starlight avatar Sep 21 '23 15:09 Lilith-In-Starlight