-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathconfig.main.ts
40 lines (39 loc) · 1.37 KB
/
config.main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { defineConfig } from "./module/module.common";
import { AudioModule, MainThreadAudioSystem } from "./audio/audio.main";
import { EditorModule, MainThreadEditorSystem } from "./editor/editor.main";
import { InputModule } from "./input/input.main";
import { MainThreadNetworkSystem, NetworkModule } from "./network/network.main";
import { StatsModule } from "./stats/stats.main";
import { MainContext } from "./MainThread";
import { RendererModule } from "./renderer/renderer.main";
import { ResourceModule, ResourceLoaderSystem, ReturnRecycledResourcesSystem } from "./resource/resource.main";
import { ThirdroomModule } from "../plugins/thirdroom/thirdroom.main";
import {
IncomingMainThreadTripleBufferSystem,
OutgoingMainThreadTripleBufferSystem,
} from "./MainThreadTripleBufferSystems";
import { MatrixModule } from "./matrix/matrix.main";
import { PlayerModule } from "./player/Player.main";
export default defineConfig<MainContext>({
modules: [
ResourceModule,
EditorModule,
AudioModule,
NetworkModule,
InputModule,
StatsModule,
RendererModule,
ThirdroomModule,
MatrixModule,
PlayerModule,
],
systems: [
IncomingMainThreadTripleBufferSystem,
ResourceLoaderSystem,
MainThreadAudioSystem,
MainThreadNetworkSystem,
MainThreadEditorSystem,
OutgoingMainThreadTripleBufferSystem,
ReturnRecycledResourcesSystem,
],
});