Skip to content

Commit

Permalink
update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dinomut1 committed Jan 30, 2024
1 parent 6d29f99 commit 50a387c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions src/components/BubbleComponent.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@

import { defineComponent, useEntityContext, setComponent } from "@etherealengine/ecs"
import { NameComponent } from "@etherealengine/engine/src/common/NameComponent"
import { addObjectToGroup } from "@etherealengine/engine/src/renderer/components/GroupComponent"
import { VisibleComponent } from "@etherealengine/engine/src/renderer/components/VisibleComponent"

import { Mesh, SphereGeometry, MeshStandardMaterial, Color } from "three"
import matches from "ts-matches"

import React, { useEffect } from "react"
import { TransformComponent } from "@etherealengine/engine/src/transform/components/TransformComponent"
import { VisibleComponent } from "@etherealengine/spatial/src/renderer/components/VisibleComponent"
import { NameComponent } from "@etherealengine/spatial/src/common/NameComponent"
import { addObjectToGroup } from "@etherealengine/spatial/src/renderer/components/GroupComponent"
import { TransformComponent } from "@etherealengine/spatial/src/transform/components/TransformComponent"

export const BubbleComponent = defineComponent({
//name: The human-readable label for the component. This will be displayed in the editor and debugging tools.
Expand Down
6 changes: 3 additions & 3 deletions src/components/BubbleEmitterComponent.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { EntityUUID } from "@etherealengine/common/src/interfaces/EntityUUID"
import { defineComponent, Entity, useEntityContext, useComponent, removeEntity, getComponent, useExecute, createEntity, setComponent, SimulationSystemGroup, getMutableComponent } from "@etherealengine/ecs"
import { EngineState } from "@etherealengine/engine/src/EngineState"
import { GroupComponent } from "@etherealengine/engine/src/renderer/components/GroupComponent"
import { EntityTreeComponent } from "@etherealengine/engine/src/transform/components/EntityTree"

import { getState, NO_PROXY } from "@etherealengine/hyperflux"
import { Color, Vector3, Mesh, BufferGeometry, MeshStandardMaterial, MathUtils } from "three"
import { BubbleComponent } from "./BubbleComponent"

import React, { useEffect } from "react"
import { ECSState } from "@etherealengine/ecs/src/ECSState"
import { GroupComponent } from "@etherealengine/spatial/src/renderer/components/GroupComponent"
import { EntityTreeComponent } from "@etherealengine/spatial/src/transform/components/EntityTree"


export const BubbleEmitterComponent = defineComponent({
Expand Down
2 changes: 1 addition & 1 deletion src/systems/BubbleSystem.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineQuery, defineSystem, SimulationSystemGroup, getComponent } from "@etherealengine/ecs"
import { Vector3 } from "three"
import { BubbleEmitterComponent } from "../components/BubbleEmitterComponent"
import { TransformComponent } from "@etherealengine/engine/src/transform/components/TransformComponent"
import { TransformComponent } from "@etherealengine/spatial/src/transform/components/TransformComponent"

const bubbleEmitterQuery = defineQuery([BubbleEmitterComponent])
const velocity = new Vector3(0,0,0)
Expand Down
2 changes: 1 addition & 1 deletion src/worldInjection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { BubbleEmitterComponent } from "./components/BubbleEmitterComponent";
import { BubbleNodeEditor } from "./editors/BubbleComponentNodeEditor";
import { BubbleSystem } from "./systems/BubbleSystem";
import { isClient } from '@etherealengine/common/src/utils/getEnvironment';
import { EngineState } from '@etherealengine/engine/src/EngineState';
import { EngineState } from '@etherealengine/spatial/src/EngineState';

export default async function worldInjection() {
if (isClient) {
Expand Down

0 comments on commit 50a387c

Please sign in to comment.