UNPKG

@animech-public/playcanvas

Version:
22 lines (19 loc) 362 B
import { VersionedObject } from './versioned-object.js'; class ScopeId { constructor(name) { this.name = name; this.value = null; this.versionObject = new VersionedObject(); } toJSON(key) { return undefined; } setValue(value) { this.value = value; this.versionObject.increment(); } getValue() { return this.value; } } export { ScopeId };