mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Replaced RefCounted with RefCounter
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user