Concord
Concord copied to clipboard
Component:removed callback for Component clean-up
This callback helps you clean-up the data stored inside a component the moment you remove it.
This is useful because by the time Pool:onEntityRemoved is called, the Component has already been removed and can't be cleaned up.
We may need to call this callback if Entity:give is called and the Component already exists in the Entity