diff --git a/src/util/appConfig.ts b/src/util/appConfig.ts index b87e463..2d10cbc 100644 --- a/src/util/appConfig.ts +++ b/src/util/appConfig.ts @@ -16,6 +16,7 @@ export class AppConfig { newRelicAccount: null, physicsEnabled: false, demoCompleted: false, + flyMode: false }; this.onConfigChangedObservable.add((config) => { this._currentConfig = config; @@ -31,6 +32,11 @@ export class AppConfig { this.onConfigChangedObservable.notifyObservers(this._currentConfig, 2); } + public setFlyMode(value: boolean) { + this._currentConfig.flyMode = value; + this.onConfigChangedObservable.notifyObservers(this._currentConfig, 2); + } + public setCreateSnap(value: number) { this._currentConfig.createSnap = value; this.onConfigChangedObservable.notifyObservers(this._currentConfig, 2); @@ -61,4 +67,10 @@ export class AppConfig { this.onConfigChangedObservable.notifyObservers(this._currentConfig, 2); } + + public setPhysicsEnabled(physicsEnabled: boolean) { + this._currentConfig.physicsEnabled = physicsEnabled; + this.onConfigChangedObservable.notifyObservers(this._currentConfig, 2); + + } } \ No newline at end of file diff --git a/src/util/appConfigType.ts b/src/util/appConfigType.ts index 2775f22..4149d2a 100644 --- a/src/util/appConfigType.ts +++ b/src/util/appConfigType.ts @@ -10,5 +10,6 @@ export type AppConfigType = { newRelicAccount?: string, demoCompleted?: boolean, passphrase?: string, + flyMode?: boolean, } \ No newline at end of file