UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

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