UNPKG

@animech-public/playcanvas

Version:
27 lines (26 loc) 468 B
/** * 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; }