-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathindex.ts
More file actions
79 lines (70 loc) · 3.28 KB
/
Copy pathindex.ts
File metadata and controls
79 lines (70 loc) · 3.28 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// The order of the following imports matters. Please do not auto-sort
export * from './engine'
export * from './schemas'
export * from './runtime/initialization'
export * from './runtime/types'
export * from './runtime/helpers'
export { cyclicParentingChecker } from './systems/cyclicParentingChecker'
export * from './systems/events'
export * from './systems/raycast'
export * from './systems/videoEvents'
export * from './systems/async-task'
export * from './systems/tween'
export * from './engine/entity'
export * from './components/types'
// @internal
import * as components from './components'
// @internal
export { components }
import { engine } from './runtime/initialization'
import {
MaterialComponentDefinitionExtended,
MeshColliderComponentDefinitionExtended,
MeshRendererComponentDefinitionExtended,
TransformComponentExtended,
AnimatorComponentDefinitionExtended,
AudioSourceComponentDefinitionExtended,
AudioStreamComponentDefinitionExtended,
ISyncComponents,
TweenComponentDefinitionExtended,
INetowrkEntity,
INetowrkParent,
VirtualCameraComponentDefinitionExtended,
InputModifierComponentDefinitionExtended,
LightSourceComponentDefinitionExtended
} from './components/types'
import { NameComponent } from './components/manual/Name'
// export components for global engine
export const Transform: TransformComponentExtended = /* @__PURE__*/ components.Transform(engine)
export const Animator: AnimatorComponentDefinitionExtended = /* @__PURE__*/ components.Animator(engine)
export const AudioSource: AudioSourceComponentDefinitionExtended = /* @__PURE__*/ components.AudioSource(engine)
export const AudioStream: AudioStreamComponentDefinitionExtended = /* @__PURE__*/ components.AudioStream(engine)
export const Material: MaterialComponentDefinitionExtended = /* @__PURE__*/ components.Material(engine)
export const MeshRenderer: MeshRendererComponentDefinitionExtended = /* @__PURE__*/ components.MeshRenderer(engine)
export const MeshCollider: MeshColliderComponentDefinitionExtended = /* @__PURE__*/ components.MeshCollider(engine)
export const Name: NameComponent = components.Name(engine)
export const Tween: TweenComponentDefinitionExtended = /* @__PURE__*/ components.Tween(engine)
export const VirtualCamera: VirtualCameraComponentDefinitionExtended = /* @__PURE__*/ components.VirtualCamera(engine)
export const InputModifier: InputModifierComponentDefinitionExtended = /* @__PURE__*/ components.InputModifier(engine)
export const LightSource: LightSourceComponentDefinitionExtended = /* @__PURE__*/ components.LightSource(engine)
/**
* @alpha
* This is going to be used for sync components through a server.
* Can be modified in the future since it's still in research
*/
export const SyncComponents: ISyncComponents = /* @__PURE__*/ components.SyncComponents(engine)
/**
* @alpha
* Tag a entity to be syncronized through comms
*/
export const NetworkEntity: INetowrkEntity = /* @__PURE__*/ components.NetworkEntity(engine)
/**
* @alpha
* Tag a entity to be syncronized through comms
*/
export const NetworkParent: INetowrkParent = /* @__PURE__*/ components.NetworkParent(engine)
// export components for global engine
export * from './components/generated/global.gen'
export * from './components/generated/types.gen'
export * from './serialization/crdt'
export * from './composite'