organize data configs by domain
This commit is contained in:
@@ -19,7 +19,7 @@ import {
|
|||||||
GRAB_THROW_BOOST_MAX,
|
GRAB_THROW_BOOST_MAX,
|
||||||
GRAB_THROW_BOOST_MIN,
|
GRAB_THROW_BOOST_MIN,
|
||||||
GRAB_THROW_BOOST_STEP,
|
GRAB_THROW_BOOST_STEP,
|
||||||
} from "@/data/grabConfig";
|
} from "@/data/interaction/grabConfig";
|
||||||
import { useDebugFolder } from "@/hooks/debug/useDebugFolder";
|
import { useDebugFolder } from "@/hooks/debug/useDebugFolder";
|
||||||
import type { ColliderShape, Vector3Tuple } from "@/types/3d";
|
import type { ColliderShape, Vector3Tuple } from "@/types/3d";
|
||||||
|
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ import {
|
|||||||
INTERACTION_DEBUG_SPHERE_COLOR,
|
INTERACTION_DEBUG_SPHERE_COLOR,
|
||||||
INTERACTION_DEBUG_SPHERE_OPACITY,
|
INTERACTION_DEBUG_SPHERE_OPACITY,
|
||||||
INTERACTION_DEBUG_SPHERE_SEGMENTS,
|
INTERACTION_DEBUG_SPHERE_SEGMENTS,
|
||||||
} from "@/data/debugConfig";
|
} from "@/data/debug/debugConfig";
|
||||||
import { Debug } from "@/utils/debug/Debug";
|
import { Debug } from "@/utils/debug/Debug";
|
||||||
import { useDebugFolder } from "@/hooks/debug/useDebugFolder";
|
import { useDebugFolder } from "@/hooks/debug/useDebugFolder";
|
||||||
import { InteractionManager } from "@/stateManager/InteractionManager";
|
import { InteractionManager } from "@/stateManager/InteractionManager";
|
||||||
import { INTERACTION_RADIUS } from "@/data/interactionConfig";
|
import { INTERACTION_RADIUS } from "@/data/interaction/interactionConfig";
|
||||||
import type { Vector3Tuple } from "@/types/3d";
|
import type { Vector3Tuple } from "@/types/3d";
|
||||||
import type { InteractableHandle, InteractableKind } from "@/types/interaction";
|
import type { InteractableHandle, InteractableKind } from "@/types/interaction";
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
TRIGGER_DEFAULT_LABEL,
|
TRIGGER_DEFAULT_LABEL,
|
||||||
TRIGGER_DEFAULT_SOUND_VOLUME,
|
TRIGGER_DEFAULT_SOUND_VOLUME,
|
||||||
TRIGGER_DEFAULT_SPAWN_OFFSET,
|
TRIGGER_DEFAULT_SPAWN_OFFSET,
|
||||||
} from "@/data/triggerConfig";
|
} from "@/data/interaction/triggerConfig";
|
||||||
import { AudioManager } from "@/stateManager/AudioManager";
|
import { AudioManager } from "@/stateManager/AudioManager";
|
||||||
import type { ColliderShape, Vector3Tuple } from "@/types/3d";
|
import type { ColliderShape, Vector3Tuple } from "@/types/3d";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { INTERACT_KEY } from "@/data/keybindings";
|
import { INTERACT_KEY } from "@/data/input/keybindings";
|
||||||
import { useCameraMode } from "@/hooks/debug/useCameraMode";
|
import { useCameraMode } from "@/hooks/debug/useCameraMode";
|
||||||
import { useInteraction } from "@/hooks/useInteraction";
|
import { useInteraction } from "@/hooks/useInteraction";
|
||||||
|
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ import {
|
|||||||
DEBUG_CAMERA_DAMPING_FACTOR,
|
DEBUG_CAMERA_DAMPING_FACTOR,
|
||||||
DEBUG_CAMERA_MAX_DISTANCE,
|
DEBUG_CAMERA_MAX_DISTANCE,
|
||||||
DEBUG_CAMERA_MIN_DISTANCE,
|
DEBUG_CAMERA_MIN_DISTANCE,
|
||||||
} from "@/data/debugConfig";
|
} from "@/data/debug/debugConfig";
|
||||||
import {
|
import {
|
||||||
PLAYER_EYE_HEIGHT,
|
PLAYER_EYE_HEIGHT,
|
||||||
PLAYER_SPAWN_POSITION_GAME,
|
PLAYER_SPAWN_POSITION_GAME,
|
||||||
} from "@/data/playerConfig";
|
} from "@/data/player/playerConfig";
|
||||||
|
|
||||||
const DEBUG_CAMERA_TARGET = [
|
const DEBUG_CAMERA_TARGET = [
|
||||||
PLAYER_SPAWN_POSITION_GAME[0],
|
PLAYER_SPAWN_POSITION_GAME[0],
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
DEBUG_GRID_SECONDARY_COLOR,
|
DEBUG_GRID_SECONDARY_COLOR,
|
||||||
DEBUG_GRID_SIZE,
|
DEBUG_GRID_SIZE,
|
||||||
DEBUG_GRID_Y,
|
DEBUG_GRID_Y,
|
||||||
} from "@/data/debugConfig";
|
} from "@/data/debug/debugConfig";
|
||||||
import { Debug } from "@/utils/debug/Debug";
|
import { Debug } from "@/utils/debug/Debug";
|
||||||
|
|
||||||
export function DebugHelpers(): React.JSX.Element | null {
|
export function DebugHelpers(): React.JSX.Element | null {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { Environment as DreiEnvironment } from "@react-three/drei";
|
|||||||
import {
|
import {
|
||||||
GAME_SCENE_SKYBOX_PATH,
|
GAME_SCENE_SKYBOX_PATH,
|
||||||
PHYSICS_SCENE_BACKGROUND_COLOR,
|
PHYSICS_SCENE_BACKGROUND_COLOR,
|
||||||
} from "@/data/environmentConfig";
|
} from "@/data/world/environmentConfig";
|
||||||
import { useSceneMode } from "@/hooks/debug/useSceneMode";
|
import { useSceneMode } from "@/hooks/debug/useSceneMode";
|
||||||
|
|
||||||
export function Environment(): React.JSX.Element {
|
export function Environment(): React.JSX.Element {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import {
|
|||||||
SUN_Z_MAX,
|
SUN_Z_MAX,
|
||||||
SUN_Z_MIN,
|
SUN_Z_MIN,
|
||||||
SUN_Z_STEP,
|
SUN_Z_STEP,
|
||||||
} from "@/data/lightingConfig";
|
} from "@/data/world/lightingConfig";
|
||||||
import { useDebugFolder } from "@/hooks/debug/useDebugFolder";
|
import { useDebugFolder } from "@/hooks/debug/useDebugFolder";
|
||||||
|
|
||||||
type LightingState = {
|
type LightingState = {
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ import { useEffect, useRef } from "react";
|
|||||||
import { useThree } from "@react-three/fiber";
|
import { useThree } from "@react-three/fiber";
|
||||||
import { useGLTF } from "@react-three/drei";
|
import { useGLTF } from "@react-three/drei";
|
||||||
import * as THREE from "three";
|
import * as THREE from "three";
|
||||||
import { MAP_DEBUG_BOX_HELPER_COLOR } from "@/data/debugConfig";
|
import { MAP_DEBUG_BOX_HELPER_COLOR } from "@/data/debug/debugConfig";
|
||||||
import { useOctreeGraphNode } from "@/hooks/useOctreeGraphNode";
|
import { useOctreeGraphNode } from "@/hooks/useOctreeGraphNode";
|
||||||
import type { OctreeReadyHandler } from "@/types/3d";
|
import type { OctreeReadyHandler } from "@/types/3d";
|
||||||
import { Debug } from "@/utils/debug/Debug";
|
import { Debug } from "@/utils/debug/Debug";
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ import type { Octree } from "three/addons/math/Octree.js";
|
|||||||
import {
|
import {
|
||||||
PLAYER_SPAWN_POSITION_GAME,
|
PLAYER_SPAWN_POSITION_GAME,
|
||||||
PLAYER_SPAWN_POSITION_PHYSICS,
|
PLAYER_SPAWN_POSITION_PHYSICS,
|
||||||
} from "@/data/playerConfig";
|
} from "@/data/player/playerConfig";
|
||||||
import { useCameraMode } from "@/hooks/debug/useCameraMode";
|
import { useCameraMode } from "@/hooks/debug/useCameraMode";
|
||||||
import { useSceneMode } from "@/hooks/debug/useSceneMode";
|
import { useSceneMode } from "@/hooks/debug/useSceneMode";
|
||||||
import { DebugCameraControls } from "@/utils/debug/scene/DebugCameraControls";
|
import { DebugCameraControls } from "@/utils/debug/scene/DebugCameraControls";
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import {
|
|||||||
TEST_SCENE_TRIGGER_ROUGHNESS,
|
TEST_SCENE_TRIGGER_ROUGHNESS,
|
||||||
TEST_SCENE_TRIGGER_SEGMENTS,
|
TEST_SCENE_TRIGGER_SEGMENTS,
|
||||||
TEST_SCENE_TRIGGER_SOUND_PATH,
|
TEST_SCENE_TRIGGER_SOUND_PATH,
|
||||||
} from "@/data/testSceneConfig";
|
} from "@/data/debug/testSceneConfig";
|
||||||
import { useOctreeGraphNode } from "@/hooks/useOctreeGraphNode";
|
import { useOctreeGraphNode } from "@/hooks/useOctreeGraphNode";
|
||||||
import type { OctreeReadyHandler } from "@/types/3d";
|
import type { OctreeReadyHandler } from "@/types/3d";
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
MOVE_LEFT_KEY,
|
MOVE_LEFT_KEY,
|
||||||
MOVE_RIGHT_KEY,
|
MOVE_RIGHT_KEY,
|
||||||
PRIMARY_INTERACT_MOUSE_BUTTON,
|
PRIMARY_INTERACT_MOUSE_BUTTON,
|
||||||
} from "@/data/keybindings";
|
} from "@/data/input/keybindings";
|
||||||
import {
|
import {
|
||||||
PLAYER_ACCELERATION_MULTIPLIER,
|
PLAYER_ACCELERATION_MULTIPLIER,
|
||||||
PLAYER_AIR_CONTROL_FACTOR,
|
PLAYER_AIR_CONTROL_FACTOR,
|
||||||
@@ -22,7 +22,7 @@ import {
|
|||||||
PLAYER_MAX_DELTA,
|
PLAYER_MAX_DELTA,
|
||||||
PLAYER_WALK_SPEED,
|
PLAYER_WALK_SPEED,
|
||||||
PLAYER_XZ_DAMPING_FACTOR,
|
PLAYER_XZ_DAMPING_FACTOR,
|
||||||
} from "@/data/playerConfig";
|
} from "@/data/player/playerConfig";
|
||||||
import { InteractionManager } from "@/stateManager/InteractionManager";
|
import { InteractionManager } from "@/stateManager/InteractionManager";
|
||||||
import type { Vector3Tuple } from "@/types/3d";
|
import type { Vector3Tuple } from "@/types/3d";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user