mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 05:01:53 +00:00
Simplified dispose function of DisposableComponents
This commit is contained in:
@@ -18,11 +18,9 @@ namespace GlitchyEngine.World
|
||||
_debugName = new String(name);
|
||||
}
|
||||
|
||||
public static void DisposeComponent(void* component)
|
||||
public void Dispose() mut
|
||||
{
|
||||
Self* self = (Self*)component;
|
||||
|
||||
DeleteAndNullify!(self._debugName);
|
||||
DeleteAndNullify!(_debugName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user