DebugLabelsStore -> DebugLabelsState
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { makeAutoObservable } from "mobx";
|
||||
|
||||
class DebugLabelsStore {
|
||||
class DebugLabelsState {
|
||||
public labels = new Map<string, Record<string, string>>();
|
||||
|
||||
constructor() {
|
||||
@@ -36,4 +36,4 @@ class DebugLabelsStore {
|
||||
}
|
||||
}
|
||||
|
||||
export const debugLabelsStore = new DebugLabelsStore();
|
||||
export const debugLabelsStore = new DebugLabelsState();
|
||||
Reference in New Issue
Block a user