uniqueIdGenerator.js 401 B

12345678910111213141516
  1. /**
  2. * Helper class used to generate session unique ID
  3. */
  4. export class UniqueIdGenerator {
  5. /**
  6. * Gets an unique (relatively to the current scene) Id
  7. */
  8. static get UniqueId() {
  9. const result = this._UniqueIdCounter;
  10. this._UniqueIdCounter++;
  11. return result;
  12. }
  13. }
  14. // Statics
  15. UniqueIdGenerator._UniqueIdCounter = 1;
  16. //# sourceMappingURL=uniqueIdGenerator.js.map