UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

25 lines (24 loc) 459 B
/** * Base class that implements reference counting for objects. */ export class RefCountedObject { /** * @type {number} * @private */ private _refCount; /** * Increments the reference counter. */ incRefCount(): void; /** * Decrements the reference counter. */ decRefCount(): void; /** * Gets the current reference count. * * @type {number} */ get refCount(): number; }