From 076cded36462ff769af4a2ca9cd31aa04d2a5fc9 Mon Sep 17 00:00:00 2001 From: "azykov@mail.ru" Date: Thu, 18 Jun 2026 10:28:31 +0300 Subject: [PATCH] DebugLabelsStore -> DebugLabelsState --- webclient/src/components/DebugLabel.tsx | 2 +- webclient/src/components/DebugLabelsView.tsx | 2 +- webclient/src/model/gameFactory.ts | 2 +- .../src/state/{debugLabelsStore.ts => debugLabelsState.ts} | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) rename webclient/src/state/{debugLabelsStore.ts => debugLabelsState.ts} (91%) diff --git a/webclient/src/components/DebugLabel.tsx b/webclient/src/components/DebugLabel.tsx index c5b409c..391acb8 100644 --- a/webclient/src/components/DebugLabel.tsx +++ b/webclient/src/components/DebugLabel.tsx @@ -3,7 +3,7 @@ import { useFrame } from "@react-three/fiber"; import { useRef } from "react"; import * as THREE from "three"; import type { RuntimeObjectInstance } from "../types"; -import { debugLabelsStore } from "../state/debugLabelsStore"; +import { debugLabelsStore } from "../state/debugLabelsState"; import { state } from "../state"; import { observer } from "mobx-react-lite"; import { formatV3 } from "../utils"; diff --git a/webclient/src/components/DebugLabelsView.tsx b/webclient/src/components/DebugLabelsView.tsx index 2769118..bd8f6d0 100644 --- a/webclient/src/components/DebugLabelsView.tsx +++ b/webclient/src/components/DebugLabelsView.tsx @@ -1,6 +1,6 @@ import { useEffect } from "react"; import { observer } from "mobx-react-lite"; -import { debugLabelsStore } from "../state/debugLabelsStore"; +import { debugLabelsStore } from "../state/debugLabelsState"; import { DebugLabel } from "./DebugLabel"; import type { RuntimeScene } from "../types"; diff --git a/webclient/src/model/gameFactory.ts b/webclient/src/model/gameFactory.ts index 8cd26f8..9d9b773 100644 --- a/webclient/src/model/gameFactory.ts +++ b/webclient/src/model/gameFactory.ts @@ -5,7 +5,7 @@ import { populateRuntimeScene } from "../utils/runtime"; import { ScriptGameEventBus } from "../scripts/eventBus"; import * as ScriptActions from "../scripts/actions"; import { positionOfObject } from "../scripts/positionOfObject"; -import { debugLabelsStore } from "../state/debugLabelsStore"; +import { debugLabelsStore } from "../state/debugLabelsState"; import type { ScriptCoroutines } from "../scripts/coroutines"; // // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/webclient/src/state/debugLabelsStore.ts b/webclient/src/state/debugLabelsState.ts similarity index 91% rename from webclient/src/state/debugLabelsStore.ts rename to webclient/src/state/debugLabelsState.ts index 8434e9e..59d3f1f 100644 --- a/webclient/src/state/debugLabelsStore.ts +++ b/webclient/src/state/debugLabelsState.ts @@ -1,6 +1,6 @@ import { makeAutoObservable } from "mobx"; -class DebugLabelsStore { +class DebugLabelsState { public labels = new Map>(); constructor() { @@ -36,4 +36,4 @@ class DebugLabelsStore { } } -export const debugLabelsStore = new DebugLabelsStore(); +export const debugLabelsStore = new DebugLabelsState();