Fixed Regression Issue With `IDisposable` Components
Summary
While this isn't a massive release it does have a few small changes in terms of how component removal is handled.
So first of all a HUGE thanks to DoctorDepthum
on the discord who noticed the regression of the IDisposable
handling of components within entities, this has been rectified now so components with IDisposable
are now correctly disposed.
So just to clarify when you remove a component now, the underlying logic that runs in the ComponentPool
will check if the pool contains reference types, and if so null out the index, and check if the component implements IDisposable
and if so will trigger the disposable logic, then finally release the index for future consumption.