playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
19 lines (18 loc) • 310 B
JavaScript
class Version {
globalId = 0;
revision = 0;
equals(other) {
return this.globalId === other.globalId && this.revision === other.revision;
}
copy(other) {
this.globalId = other.globalId;
this.revision = other.revision;
}
reset() {
this.globalId = 0;
this.revision = 0;
}
}
export {
Version
};