mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: environment options
This commit is contained in:
1 parent
bf59d127f9
commit
8bb5032ee4
3 files changed
+47
-11
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user