diff --git a/packages/website-ue/src/components/TankopediaCharacteristics/index.tsx b/packages/website-ue/src/components/TankopediaCharacteristics/index.tsx index bb6a30f3c..a20febb8f 100644 --- a/packages/website-ue/src/components/TankopediaCharacteristics/index.tsx +++ b/packages/website-ue/src/components/TankopediaCharacteristics/index.tsx @@ -1,11 +1,11 @@ import { useCharacteristicRenderer } from "../../hooks/useCharacteristicRenderer"; import { useStrings } from "../../hooks/useStrings"; -import type { CharacteristicOutput } from "../../tankopedia/characteristics"; +import type { CharacteristicOutput } from "../../config/characteristics"; import { characteristicsOrder, type CharacteristicRenderConfig, type CharacteristicsGroup, -} from "../../tankopedia/characteristicsOrder"; +} from "../../config/characteristicsOrder"; import type { ComputedCharacteristics } from "../../tankopedia/computeCharacteristics"; import { Heading } from "../Heading"; import { Text } from "../Text"; diff --git a/packages/website-ue/src/tankopedia/characteristics.ts b/packages/website-ue/src/config/characteristics.ts similarity index 98% rename from packages/website-ue/src/tankopedia/characteristics.ts rename to packages/website-ue/src/config/characteristics.ts index 8fc25bd62..c1ce827fb 100644 --- a/packages/website-ue/src/tankopedia/characteristics.ts +++ b/packages/website-ue/src/config/characteristics.ts @@ -7,8 +7,8 @@ import { } from "@protos/blitz_static_tank_upgrade_single_stage"; import type { Tank } from "@protos/tank"; import { radToDeg } from "three/src/math/MathUtils.js"; -import { applyPitchYawLimits } from "./applyPitchYawLimits"; -import { TerrainHardness, type TankState } from "./tankState"; +import { applyPitchYawLimits } from "../tankopedia/applyPitchYawLimits"; +import { TerrainHardness, type TankState } from "../tankopedia/tankState"; export type CharacteristicOutput = number | number[] | string | null; diff --git a/packages/website-ue/src/tankopedia/characteristicsOrder.tsx b/packages/website-ue/src/config/characteristicsOrder.tsx similarity index 100% rename from packages/website-ue/src/tankopedia/characteristicsOrder.tsx rename to packages/website-ue/src/config/characteristicsOrder.tsx diff --git a/packages/website-ue/src/hooks/useCharacteristicRenderer.tsx b/packages/website-ue/src/hooks/useCharacteristicRenderer.tsx index 180882ea8..d32b8cc59 100644 --- a/packages/website-ue/src/hooks/useCharacteristicRenderer.tsx +++ b/packages/website-ue/src/hooks/useCharacteristicRenderer.tsx @@ -1,11 +1,11 @@ import { literalsArray } from "@blitzkit/i18n"; import { useMemo, type ReactNode } from "react"; import { Text } from "../components/Text"; -import type { CharacteristicOutput } from "../tankopedia/characteristics"; +import type { CharacteristicOutput } from "../config/characteristics"; import { characteristicsOrder, type CharacteristicRenderConfig, -} from "../tankopedia/characteristicsOrder"; +} from "../config/characteristicsOrder"; import { useGameStrings } from "./useGameStrings"; import { useLocale } from "./useLocale"; import { useStrings } from "./useStrings"; diff --git a/packages/website-ue/src/hooks/useCompatibility.ts b/packages/website-ue/src/hooks/useCompatibility.ts index 2f0f6bc67..527af3b84 100644 --- a/packages/website-ue/src/hooks/useCompatibility.ts +++ b/packages/website-ue/src/hooks/useCompatibility.ts @@ -10,7 +10,7 @@ import type { Sets } from "@protos/sets"; import type { Tank } from "@protos/tank"; import { useSets } from "./useSets"; import type { ComputedCharacteristics } from "../tankopedia/computeCharacteristics"; -import { GunType } from "../tankopedia/characteristics"; +import { GunType } from "../config/characteristics"; export function useCompatibility( tank: Tank, diff --git a/packages/website-ue/src/stores/tankopedia.ts b/packages/website-ue/src/stores/tankopedia.ts index 3223c0f11..e7eb79e4e 100644 --- a/packages/website-ue/src/stores/tankopedia.ts +++ b/packages/website-ue/src/stores/tankopedia.ts @@ -2,7 +2,7 @@ import type { Tank } from "@protos/tank"; import { Varuna } from "varuna"; import { createTankState } from "../tankopedia/createTankState"; import { type TankState } from "../tankopedia/tankState"; -import { characteristicsOrder } from "../tankopedia/characteristicsOrder"; +import { characteristicsOrder } from "../config/characteristicsOrder"; interface Tankopedia { disturbed: boolean; diff --git a/packages/website-ue/src/tankopedia/computeCharacteristics.ts b/packages/website-ue/src/tankopedia/computeCharacteristics.ts index 1faedc4d4..cdc07b762 100644 --- a/packages/website-ue/src/tankopedia/computeCharacteristics.ts +++ b/packages/website-ue/src/tankopedia/computeCharacteristics.ts @@ -11,7 +11,7 @@ import { characteristics, type CharacteristicName, type CharacteristicOutput, -} from "./characteristics"; +} from "../config/characteristics"; import type { TankState } from "./tankState"; export type ComputedCharacteristics = Record<