refactor: tighten project structure and strengthen tooling
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { useSyncExternalStore } from "react";
|
||||
import type { CameraMode } from "@/types/debug";
|
||||
import { Debug } from "@/utils/debug/Debug";
|
||||
|
||||
export function useCameraMode(): CameraMode {
|
||||
const debug = Debug.getInstance();
|
||||
|
||||
return useSyncExternalStore(
|
||||
(listener) => debug.subscribe(listener),
|
||||
() => debug.getCameraMode(),
|
||||
() => debug.getCameraMode(),
|
||||
);
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
// src/hooks/useAudio.ts
|
||||
@@ -1 +0,0 @@
|
||||
// src/hooks/useCinematic.ts
|
||||
@@ -1 +0,0 @@
|
||||
// src/hooks/useGameState.ts
|
||||
@@ -1 +0,0 @@
|
||||
// src/hooks/useInteraction.ts
|
||||
@@ -1 +0,0 @@
|
||||
// src/hooks/useLOD.ts
|
||||
@@ -1 +0,0 @@
|
||||
// src/hooks/useZoneDetection.ts
|
||||
Reference in New Issue
Block a user