the new garbage system GarbageSystem
The class cannot be modified, however modifying the garbage system is desired.
We would like some script invokers that help us plug-in to and change the outcome of the garbage system
We want to:
- Run code when Insert function is used
- Override the result of Insert to manipulate if the item is added
- Run code before GarbageSystem deletes a entity
- Override whether the entity is actually deleted
Perhaps some sort of script invoker or an ability to override parts of the garbage system would help us.
We want to just "plug" into the GarbageSystem and run our own code when the Insert function runs, with this ability we could relinquish the entity into other systems before it's added or sometimes completely override the insertion.
In some casese, we want to run code for a special case before the GarbageSystem deletes something forever. Like dropping loot out of a dead body that is gonna get deleted, having a custom script which adds disintegration effects when garbage is deleted.