playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
22 lines (19 loc) • 383 B
JavaScript
import { VersionedObject } from './versioned-object.js';
class ScopeId {
toJSON(key) {
return undefined;
}
setValue(value) {
this.value = value;
this.versionObject.increment();
}
getValue() {
return this.value;
}
constructor(name){
this.name = name;
this.value = null;
this.versionObject = new VersionedObject();
}
}
export { ScopeId };