Skip to content

Commit

Permalink
Merge pull request #44 from EtherealEngine/remove-engine-state-isEngi…
Browse files Browse the repository at this point in the history
…neInitialized

refactor systems
  • Loading branch information
HexaField committed Nov 16, 2023
2 parents 4bb0969 + 3bf24e6 commit b31da16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions injectBotModule.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { startSystem } from '@etherealengine/engine/src/ecs/functions/SystemFunctions'
import { SimulationSystemGroup } from '@etherealengine/engine/src/ecs/functions/EngineFunctions'
import { BotHookSystem } from './src/functions/BotHookSystem'

export default async function injectBotModule() {
startSystem(BotHookSystem, { with: SimulationSystemGroup })
}
const systems = [BotHookSystem]
export default async function injectBotModule() {}
2 changes: 2 additions & 0 deletions src/functions/BotHookSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ 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/EngineFunctions'

const setupBotKey = 'ee.bot.setupBotKey'

Expand Down Expand Up @@ -38,6 +39,7 @@ const reactor = () => {

export const BotHookSystem = defineSystem({
uuid: 'ee.bot.BotHookSystem',
insert: { with: SimulationSystemGroup },
execute,
reactor
})

0 comments on commit b31da16

Please sign in to comment.