diff --git a/src/models/Settings.ts b/src/models/Settings.ts new file mode 100644 index 0000000..de42870 --- /dev/null +++ b/src/models/Settings.ts @@ -0,0 +1,19 @@ +export class Settings { + static #instance: Settings; + + minValue: number; + maxDistance: number; + + private constructor() { + this.minValue = 500000; + this.maxDistance = 10000; + } + + static get(): Settings { + if (!Settings.#instance) { + Settings.#instance = new Settings(); + } + + return Settings.#instance; + } +} \ No newline at end of file