Replaced RefCounted with RefCounter

This commit is contained in:
Simon Lübeß
2021-10-13 09:52:12 +02:00
parent 2cd9ab3e69
commit 84daee95e4
18 changed files with 60 additions and 25 deletions
+17
View File
@@ -0,0 +1,17 @@
using System;
namespace GlitchyEngine.Core
{
/**
* Provides a reference counter that, when reaching 0, automatically deletes itself.
* Implements the IDisposable interface so that it can be used with a using-Block so that the counter
* will be decremented automatically after leaving the block.
*/
public class RefCounter : System.RefCounted, IDisposable
{
public void Dispose()
{
ReleaseRef();
}
}
}