renamed state files

This commit is contained in:
azykov@mail.ru 2026-06-02 14:33:36 +03:00
parent e520eb07c5
commit 45dbf7352c
No known key found for this signature in database
6 changed files with 8 additions and 8 deletions

View File

@ -5,7 +5,7 @@ import type { Group } from "three";
import { Edges, TransformControls } from "@react-three/drei";
import type { ThreeEvent } from "@react-three/fiber";
import { state } from "../state";
import { nextSelectionEditMode } from "../state/worldEditor";
import { nextSelectionEditMode } from "../state/worldEditorState";
import type { R3 } from "../types/3d";
type ObjectViewProps = {

View File

@ -1,5 +1,5 @@
import { makeAutoObservable } from "mobx";
import type { WorldState } from "./world";
import type { WorldState } from "./worldState";
import type { CameraProps } from "@react-three/fiber";
export class CharacterState {

View File

@ -1 +1 @@
export * from './root';
export * from './rootState';

View File

@ -1,6 +1,6 @@
import { makeAutoObservable } from "mobx";
import { WorldState } from "./world";
import { WorldEditorState } from "./worldEditor";
import { WorldState } from "./worldState";
import { WorldEditorState } from "./worldEditorState";
export class RootState {
public readonly world = new WorldState();

View File

@ -1,5 +1,5 @@
import { makeAutoObservable } from "mobx";
import type { WorldState } from "./world";
import type { WorldState } from "./worldState";
import type { ObjectInstance, Scene, World } from "../types";
import { createObjectInstance } from "../utils/object";
import { randomId } from "../utils";

View File

@ -1,11 +1,11 @@
import { makeAutoObservable } from "mobx";
import { WorldFactory } from "../model/worldFactory";
import type { ObjectType, RunningGameState, Scene, World } from "../types";
import { CharacterState } from "./character";
import { CharacterState } from "./characterState";
import type { Pos3 } from "../types/3d";
import { clone } from "../utils";
import type { VoxelType } from "../types/voxel";
import { state } from "./root";
import { state } from "./rootState";
import { DEFAULT_VOXEL_TYPES } from "../model/defaultVoxelTypes";
import { wolf } from "../model/objectPrefabs/wolf";