Implemented disposing for component

This commit is contained in:
Simon Lübeß
2021-08-29 20:23:44 +02:00
parent b376525d30
commit 0e7217778f
2 changed files with 131 additions and 7 deletions
@@ -0,0 +1,12 @@
namespace GlitchyEngine.World
{
/// Provides a mechanism for a component to release resources once it is being removed.
public interface IDisposableComponent
{
/** @brief Disposes of the data of the given component.
* @Note This function will be called when the given component was removed from the entity
* or when the entity itself was removed.
*/
static void DisposeComponent(void* component);
}
}