Simplified dispose function of DisposableComponents

This commit is contained in:
Simon Lübeß
2021-12-30 16:52:13 +01:00
parent b3ab30e72a
commit b555cc37d1
7 changed files with 26 additions and 29 deletions
@@ -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);
}
}
}