renamed state files
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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 {
|
||||
+1
-1
@@ -1 +1 @@
|
||||
export * from './root';
|
||||
export * from './rootState';
|
||||
|
||||
@@ -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();
|
||||
@@ -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";
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user