UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

16 lines (13 loc) 275 B
import { Version } from './version.js'; let idCounter = 0; class VersionedObject { increment() { this.version.revision++; } constructor(){ idCounter++; this.version = new Version(); this.version.globalId = idCounter; } } export { VersionedObject };