feat: environment options

This commit is contained in:
TrèsAbhi committed 2024-02-06 15:35:48 -06:00
1 parent bf59d127f9
commit 8bb5032ee4
3 files changed
+47 -11

No files matched your search

+3
View File
@@ -2,6 +2,7 @@ import { produce } from 'immer';
import { Vector3Tuple } from 'three';
import { create } from 'zustand';
import { persist, subscribeWithSelector } from 'zustand/middleware';
import { ENVIRONMENTS } from '../app/tools/tankopedia/[id]/components/Lighting';
import { TankType, TreeType } from '../components/Tanks';
import {
EngineDefinition,
@@ -30,6 +31,7 @@ interface TankopediaPersistent {
calibratedShells: boolean;
};
visual: {
environment: (typeof ENVIRONMENTS)[number];
controlsEnabled: boolean;
showGrid: boolean;
greenPenetration: boolean;
@@ -98,6 +100,7 @@ export const useTankopediaPersistent = create<TankopediaPersistent>()(
calibratedShells: false,
},
visual: {
environment: 'warehouse',
controlsEnabled: true,
showGrid: true,
greenPenetration: false,