TEMPLATE NAME: Dumpster
CORE VERSION: 1.0.202
TEMPLATE VERSION: 1.0.0
TEMPLATE DESCRIPTION:
A simple lua class that handles cleaning objects in a nice interface up once you are done with them. It removes the need to remember what objects you need to destroy/disconnect. Inspired by Roblox's Janitor and Maid, and directly based off of the original Roblox Dumpster.
TEMPLATE VERSION NOTES:
1.0.0 - Initial release
API:
local d = Dumpster.New()
> Creates a new dumpster
d:Dump(item)
> Stores a function, CoreObject, or EventListener to destroy later
d:Burn()
> Destroys all stored items and clears itself