Feat/map-environment #6
@@ -6,7 +6,7 @@ export function useGraphicsSettings(): GraphicsState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function useSetGraphicsSettings(): (
|
export function useSetGraphicsSettings(): (
|
||||||
graphics: Partial<GraphicsState>
|
graphics: Partial<GraphicsState>,
|
||||||
) => void {
|
) => void {
|
||||||
return useWorldSettingsStore((state) => state.setGraphics);
|
return useWorldSettingsStore((state) => state.setGraphics);
|
||||||
}
|
}
|
||||||
@@ -33,19 +33,19 @@ export function useGrassDensity(): number {
|
|||||||
|
|
||||||
export function useGraphicsSetters() {
|
export function useGraphicsSetters() {
|
||||||
const setDynamicGrass = useWorldSettingsStore(
|
const setDynamicGrass = useWorldSettingsStore(
|
||||||
(state) => state.setDynamicGrass
|
(state) => state.setDynamicGrass,
|
||||||
);
|
);
|
||||||
const setDynamicTrees = useWorldSettingsStore(
|
const setDynamicTrees = useWorldSettingsStore(
|
||||||
(state) => state.setDynamicTrees
|
(state) => state.setDynamicTrees,
|
||||||
);
|
);
|
||||||
const setDynamicClouds = useWorldSettingsStore(
|
const setDynamicClouds = useWorldSettingsStore(
|
||||||
(state) => state.setDynamicClouds
|
(state) => state.setDynamicClouds,
|
||||||
);
|
);
|
||||||
const setShadowsEnabled = useWorldSettingsStore(
|
const setShadowsEnabled = useWorldSettingsStore(
|
||||||
(state) => state.setShadowsEnabled
|
(state) => state.setShadowsEnabled,
|
||||||
);
|
);
|
||||||
const setGrassDensity = useWorldSettingsStore(
|
const setGrassDensity = useWorldSettingsStore(
|
||||||
(state) => state.setGrassDensity
|
(state) => state.setGrassDensity,
|
||||||
);
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user