@animech-public/playcanvas
Version:
PlayCanvas WebGL game engine
27 lines (26 loc) • 468 B
TypeScript
/**
* Base class that implements reference counting for objects.
*
* @ignore
*/
export class RefCountedObject {
/**
* @type {number}
* @private
*/
private _refCount;
/**
* Increments the reference counter.
*/
incRefCount(): void;
/**
* Decrements the reference counter.
*/
decRefCount(): void;
/**
* The current reference count.
*
* @type {number}
*/
get refCount(): number;
}