mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
move characteristics
This commit is contained in:
1 parent
e6fa17a911
commit
7e2fba35d0
7 files changed
+9
-9
No files matched your search
@@ -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";
|
||||
|
||||
+2
-2
@@ -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;
|
||||
|
||||
File renamed without changes.
@@ -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";
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
characteristics,
|
||||
type CharacteristicName,
|
||||
type CharacteristicOutput,
|
||||
} from "./characteristics";
|
||||
} from "../config/characteristics";
|
||||
import type { TankState } from "./tankState";
|
||||
|
||||
export type ComputedCharacteristics = Record<
|
||||
|
||||
Reference in new issue
Block a user