mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 05:01:53 +00:00
Implemented disposing for component
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user