@animech-public/playcanvas
Version:
PlayCanvas WebGL game engine
20 lines (18 loc) • 342 B
JavaScript
class Version {
constructor() {
this.globalId = 0;
this.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 };