Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField committed Jan 25, 2024
1 parent 4257965 commit 6eab8e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/functions/BotHookSystem.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { useEffect } from 'react'
import { isDev } from '@etherealengine/common/src/config'
import { EngineState } from '@etherealengine/engine/src/ecs/classes/EngineState'
import { EngineState } from '@etherealengine/ecs/src/EngineState'
import { XRState } from '@etherealengine/engine/src/xr/XRState'
import { getState } from '@etherealengine/hyperflux'

import { BotHookFunctions } from './botHookFunctions'
import { sendXRInputData, simulateXR } from './xrBotHookFunctions'
import { defineSystem } from '@etherealengine/engine/src/ecs/functions/SystemFunctions'
import { SimulationSystemGroup } from '@etherealengine/engine/src/ecs/functions/SystemGroups'
import { defineSystem } from '@etherealengine/ecs/src/SystemFunctions'
import { SimulationSystemGroup } from '@etherealengine/ecs/src/SystemGroups'

const setupBotKey = 'ee.bot.setupBotKey'

Expand Down
8 changes: 4 additions & 4 deletions src/functions/botHookFunctions.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { MathUtils, Quaternion, Vector3 } from 'three'

import { iterativeMapToObject } from '@etherealengine/common/src/utils/mapToObject'
import { Engine } from '@etherealengine/engine/src/ecs/classes/Engine'
import { EngineState } from '@etherealengine/engine/src/ecs/classes/EngineState'
import { getComponent } from '@etherealengine/engine/src/ecs/functions/ComponentFunctions'
import { Engine } from '@etherealengine/ecs/src/Engine'
import { EngineState } from '@etherealengine/ecs/src/EngineState'
import { getComponent } from '@etherealengine/ecs/src/ComponentFunctions'
import { TransformComponent } from '@etherealengine/engine/src/transform/components/TransformComponent'
import { getState } from '@etherealengine/hyperflux'

Expand All @@ -23,7 +23,7 @@ import {
} from './xrBotHookFunctions'
import { XRState } from '@etherealengine/engine/src/xr/XRState'
import { NetworkState } from '@etherealengine/engine/src/networking/NetworkState'
import { SceneState } from '@etherealengine/engine/src/ecs/classes/Scene'
import { SceneState } from '@etherealengine/engine/src/scene/Scene'

export const BotHookFunctions = {
[BotHooks.IsBot]:isBot,
Expand Down
2 changes: 1 addition & 1 deletion src/functions/xrBotHookFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { Quaternion, Vector3 } from 'three'

import { EngineState } from '@etherealengine/engine/src/ecs/classes/EngineState'
import { EngineState } from '@etherealengine/ecs/src/EngineState'
import { XRAction, XRState } from '@etherealengine/engine/src/xr/XRState'
import { dispatchAction, getMutableState } from '@etherealengine/hyperflux'
import { requestXRSession } from '@etherealengine/engine/src/xr/XRSessionFunctions'
Expand Down

0 comments on commit 6eab8e6

Please sign in to comment.