@3dverse/livelink.core 0.8.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -17
- package/dist/_prebuild/EditorConnection.d.ts +1 -29
- package/dist/_prebuild/EditorMessageHandler.d.ts +1 -139
- package/dist/_prebuild/GatewayConnection.d.ts +1 -64
- package/dist/_prebuild/GatewayMessageHandler.d.ts +1 -197
- package/dist/_prebuild/engine_types/ComponentsHashes.d.ts +5 -0
- package/dist/_prebuild/{types → engine_types}/ComponentsRecord.d.ts +65 -44
- package/dist/_prebuild/{types → engine_types}/assets.d.ts +69 -0
- package/dist/_prebuild/{types → engine_types}/components.d.ts +164 -164
- package/dist/_prebuild/messages/editor/ConnectConfirmation.d.ts +1 -71
- package/dist/_prebuild/messages/editor/EditorEntity.d.ts +1 -75
- package/dist/_prebuild/messages/editor/EntityUpdatedEvent.d.ts +1 -7
- package/dist/_prebuild/messages/editor/EntityVisibilityChangedEvent.d.ts +1 -8
- package/dist/_prebuild/messages/editor/UpdateComponentsCommand.d.ts +1 -6
- package/dist/_prebuild/messages/editor/index.d.ts +0 -1
- package/dist/_prebuild/messages/gateway/commands/AssignClientToScriptCommand.d.ts +9 -0
- package/dist/_prebuild/messages/gateway/commands/AuthenticationCommand.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/{ClientConfig.d.ts → commands/ConfigureClientCommand.d.ts} +11 -13
- package/dist/_prebuild/messages/gateway/commands/FireEventCommand.d.ts +11 -0
- package/dist/_prebuild/messages/gateway/commands/HighlightEntitiesCommand.d.ts +8 -0
- package/dist/_prebuild/messages/gateway/commands/InputStateCommand.d.ts +8 -0
- package/dist/_prebuild/messages/gateway/commands/RemoveComponentsCommand.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/commands/RemoveFilterCommand.d.ts +7 -0
- package/dist/_prebuild/messages/gateway/commands/ResizeCommand.d.ts +13 -0
- package/dist/_prebuild/messages/gateway/commands/SendSkeletonPoseCommand.d.ts +25 -0
- package/dist/_prebuild/messages/gateway/commands/SetFilterCommand.d.ts +8 -0
- package/dist/_prebuild/messages/gateway/commands/ToggleFilterCommand.d.ts +8 -0
- package/dist/_prebuild/messages/gateway/commands/UpdateEntitiesFromBytesCommand.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/commands/UpdateEntitiesFromJsonCommand.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/commands/ViewportConfigCommand.d.ts +16 -0
- package/dist/_prebuild/messages/gateway/commands/index.d.ts +15 -0
- package/dist/_prebuild/messages/gateway/enums.d.ts +8 -115
- package/dist/_prebuild/messages/gateway/events/AssetLoadingEvent.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/events/FrameDataEvent.d.ts +26 -0
- package/dist/_prebuild/messages/gateway/events/ScriptEvent.d.ts +10 -0
- package/dist/_prebuild/messages/gateway/events/index.d.ts +3 -0
- package/dist/_prebuild/messages/gateway/index.d.ts +16 -22
- package/dist/_prebuild/messages/gateway/queries/ScreenSpaceRayQuery.d.ts +18 -0
- package/dist/_prebuild/messages/gateway/queries/index.d.ts +1 -0
- package/dist/_prebuild/messages/index.d.ts +2 -0
- package/dist/library.cjs +1 -1
- package/dist/library.cjs.map +4 -4
- package/dist/library.mjs +1 -1
- package/dist/library.mjs.map +4 -4
- package/dist/sources/ActivityWatcher.d.ts +40 -21
- package/dist/sources/CoreEvents.d.ts +35 -0
- package/dist/sources/DynamicLoader.d.ts +38 -0
- package/dist/sources/EntityUtils.d.ts +117 -0
- package/dist/sources/LivelinkCore.d.ts +130 -126
- package/dist/sources/{interfaces/SessionInterface.d.ts → SessionInterface.d.ts} +2 -6
- package/dist/sources/TypedEventTarget.d.ts +14 -0
- package/dist/sources/controllers/EditorController.d.ts +1 -21
- package/dist/sources/controllers/EditorEvents.d.ts +27 -0
- package/dist/sources/controllers/GatewayController.d.ts +1 -60
- package/dist/sources/controllers/GatewayEvents.d.ts +54 -0
- package/dist/sources/core.d.ts +12 -11
- package/dist/sources/internal/RequestHandler.d.ts +1 -0
- package/dist/sources/internal/Serializer.d.ts +1 -0
- package/dist/sources/library.d.ts +1 -1
- package/dist/sources/types/RTID.d.ts +6 -21
- package/dist/sources/types/UUID.d.ts +11 -21
- package/dist/sources/types/dataObjects.d.ts +1 -1
- package/dist/sources/types/index.d.ts +1 -0
- package/dist/sources/types/math.d.ts +1 -105
- package/dist/sources/types/nativeTypes.d.ts +0 -132
- package/dist/sources/types/utils.d.ts +19 -0
- package/package.json +6 -4
- package/dist/_prebuild/enums.d.ts +0 -6
- package/dist/_prebuild/messages/editor/EntityCreationCoreOptions.d.ts +0 -6
- package/dist/_prebuild/messages/gateway/AssetLoadingEvent.d.ts +0 -14
- package/dist/_prebuild/messages/gateway/AssignClientToScriptMessage.d.ts +0 -22
- package/dist/_prebuild/messages/gateway/AuthenticationResponse.d.ts +0 -31
- package/dist/_prebuild/messages/gateway/ClientConfigResponse.d.ts +0 -16
- package/dist/_prebuild/messages/gateway/FireEventMessage.d.ts +0 -23
- package/dist/_prebuild/messages/gateway/FrameData.d.ts +0 -42
- package/dist/_prebuild/messages/gateway/HighlightEntitiesMessage.d.ts +0 -22
- package/dist/_prebuild/messages/gateway/InputState.d.ts +0 -22
- package/dist/_prebuild/messages/gateway/RemoveComponentsCommand.d.ts +0 -23
- package/dist/_prebuild/messages/gateway/RemoveFilterMessage.d.ts +0 -19
- package/dist/_prebuild/messages/gateway/ResizeResponse.d.ts +0 -14
- package/dist/_prebuild/messages/gateway/ScreenSpaceRayQuery.d.ts +0 -30
- package/dist/_prebuild/messages/gateway/ScreenSpaceRayResult.d.ts +0 -16
- package/dist/_prebuild/messages/gateway/ScriptEvent.d.ts +0 -17
- package/dist/_prebuild/messages/gateway/SendSkeletonPoseMessage.d.ts +0 -28
- package/dist/_prebuild/messages/gateway/SessionAuth.d.ts +0 -8
- package/dist/_prebuild/messages/gateway/SetFilterMessage.d.ts +0 -20
- package/dist/_prebuild/messages/gateway/ToggleFilterMessage.d.ts +0 -20
- package/dist/_prebuild/messages/gateway/UpdateEntitiesFromBytesMessage.d.ts +0 -25
- package/dist/_prebuild/messages/gateway/UpdateEntitiesFromJsonMessage.d.ts +0 -23
- package/dist/_prebuild/messages/gateway/ViewportConfig.d.ts +0 -30
- package/dist/_prebuild/types/ComponentsHashes.d.ts +0 -53
- package/dist/sources/LivelinkCoreModule.d.ts +0 -39
- package/dist/sources/RequestHandler.d.ts +0 -49
- package/dist/sources/Serializer.d.ts +0 -34
- package/dist/sources/interfaces/ClientInterface.d.ts +0 -12
- package/dist/sources/interfaces/EntityInterface.d.ts +0 -20
- package/dist/sources/interfaces/index.d.ts +0 -3
- /package/dist/_prebuild/{types → engine_types}/SceneSettingsRecord.d.ts +0 -0
- /package/dist/_prebuild/{types → engine_types}/sceneSettings.d.ts +0 -0
|
@@ -2,11 +2,32 @@
|
|
|
2
2
|
* DO NOT EDIT THIS FILE MANUALLY.
|
|
3
3
|
* This file has been generated automatically from ftl-schemas
|
|
4
4
|
*/
|
|
5
|
+
import { UUID } from "../../sources/types";
|
|
5
6
|
import * as Components from "./components";
|
|
6
7
|
/**
|
|
7
8
|
* @category Engine Schemas
|
|
8
9
|
*/
|
|
9
|
-
export type
|
|
10
|
+
export type ComponentName = keyof ComponentsRecord;
|
|
11
|
+
/**
|
|
12
|
+
* @category Engine Schemas
|
|
13
|
+
*/
|
|
14
|
+
export type EntityCore = {
|
|
15
|
+
euid: Components.Euid;
|
|
16
|
+
} & Partial<ComponentsRecord>;
|
|
17
|
+
/**
|
|
18
|
+
* @category Engine Schemas
|
|
19
|
+
*/
|
|
20
|
+
export type ComponentsManifest = {
|
|
21
|
+
euid?: {
|
|
22
|
+
value: UUID;
|
|
23
|
+
};
|
|
24
|
+
} & {
|
|
25
|
+
[K in keyof ComponentsRecord]?: Partial<ComponentsRecord[K]>;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @category Engine Schemas
|
|
29
|
+
*/
|
|
30
|
+
export type ComponentType<T extends ComponentName = ComponentName> = ComponentsRecord[T];
|
|
10
31
|
/**
|
|
11
32
|
* @category Engine Schemas
|
|
12
33
|
*/
|
|
@@ -14,173 +35,173 @@ export type ComponentsRecord = {
|
|
|
14
35
|
/**
|
|
15
36
|
* Animation controller with reference to an animation graph and an animation set. Enables skeletal animation on its skinned mesh descendents whose skeleton is compatible with the animations in the animation set.
|
|
16
37
|
*/
|
|
17
|
-
animation_controller
|
|
38
|
+
animation_controller: Components.AnimationController;
|
|
18
39
|
/**
|
|
19
40
|
* Animation sequence controller with reference to an animation sequence and assigned entities.
|
|
20
41
|
*/
|
|
21
|
-
animation_sequence_controller
|
|
42
|
+
animation_sequence_controller: Components.AnimationSequenceController;
|
|
22
43
|
/**
|
|
23
44
|
* Links entity to bone in skeleton.
|
|
24
45
|
*/
|
|
25
|
-
bone
|
|
46
|
+
bone: Components.Bone;
|
|
26
47
|
/**
|
|
27
48
|
* Box geometry.
|
|
28
49
|
*/
|
|
29
|
-
box_geometry
|
|
50
|
+
box_geometry: Components.BoxGeometry;
|
|
30
51
|
/**
|
|
31
52
|
* Virtual camera.
|
|
32
53
|
*/
|
|
33
|
-
camera
|
|
54
|
+
camera: Components.Camera;
|
|
34
55
|
/**
|
|
35
56
|
* Capsule geometry.
|
|
36
57
|
*/
|
|
37
|
-
capsule_geometry
|
|
58
|
+
capsule_geometry: Components.CapsuleGeometry;
|
|
38
59
|
/**
|
|
39
60
|
* Character controller used for movement constrained by collisions without having to deal with a rigid body. A character controller is kinematic, and so is not affected by forces. It uses its own tweaked collision algorithm to give a good feeling while controlling the character.
|
|
40
61
|
*/
|
|
41
|
-
character_controller
|
|
62
|
+
character_controller: Components.CharacterController;
|
|
42
63
|
/**
|
|
43
64
|
* Reference to a collision geometry.
|
|
44
65
|
*/
|
|
45
|
-
collision_geometry_ref
|
|
66
|
+
collision_geometry_ref: Components.CollisionGeometryRef;
|
|
46
67
|
/**
|
|
47
68
|
* A physics constraint that can be configured along 6 degrees of freedom. In its default state it behaves as a fixed constraint - that is, it rigidly fixes the constraint frames of its two entities. However, individual degrees of freedom may be unlocked to permit any combination of rotation around the x-, y- and z- axes, and translation along these axes.
|
|
48
69
|
*/
|
|
49
|
-
constraint
|
|
70
|
+
constraint: Components.Constraint;
|
|
50
71
|
/**
|
|
51
72
|
* Culling geometry. Add this component in addition to another geometry component (e.g. box geometry, sphere geometry, etc.) to enable culling geometry.
|
|
52
73
|
*/
|
|
53
|
-
culling_geometry
|
|
74
|
+
culling_geometry: Components.CullingGeometry;
|
|
54
75
|
/**
|
|
55
76
|
* Cylinder geometry.
|
|
56
77
|
*/
|
|
57
|
-
cylinder_geometry
|
|
78
|
+
cylinder_geometry: Components.CylinderGeometry;
|
|
58
79
|
/**
|
|
59
80
|
* Name of the entity.
|
|
60
81
|
*/
|
|
61
|
-
debug_name
|
|
82
|
+
debug_name: Components.DebugName;
|
|
62
83
|
/**
|
|
63
84
|
* Decal Projector.
|
|
64
85
|
*/
|
|
65
|
-
decal_projector
|
|
86
|
+
decal_projector: Components.DecalProjector;
|
|
66
87
|
/**
|
|
67
88
|
* The environment of a scene. Used to give a scene a skybox.
|
|
68
89
|
*/
|
|
69
|
-
environment
|
|
90
|
+
environment: Components.Environment;
|
|
70
91
|
/**
|
|
71
92
|
* Base component of all the other joint components (revolute_joint, etc.). By itself it will lock the orientations and distances of the constrainer and constrainee.
|
|
72
93
|
*/
|
|
73
|
-
joint
|
|
94
|
+
joint: Components.Joint;
|
|
74
95
|
/**
|
|
75
96
|
* Lineage of the entity through linkers.
|
|
76
97
|
*/
|
|
77
|
-
lineage
|
|
98
|
+
lineage: Components.Lineage;
|
|
78
99
|
/**
|
|
79
100
|
* Local Axis Aligned Bounding Box of the entity.
|
|
80
101
|
*/
|
|
81
|
-
local_aabb
|
|
102
|
+
local_aabb: Components.LocalAabb;
|
|
82
103
|
/**
|
|
83
104
|
* Local transform of the entity.
|
|
84
105
|
*/
|
|
85
|
-
local_transform
|
|
106
|
+
local_transform: Components.LocalTransform;
|
|
86
107
|
/**
|
|
87
108
|
* References a shader and specifies input values if needed.
|
|
88
109
|
*/
|
|
89
|
-
material
|
|
110
|
+
material: Components.Material;
|
|
90
111
|
/**
|
|
91
112
|
* Reference to a material.
|
|
92
113
|
*/
|
|
93
|
-
material_ref
|
|
114
|
+
material_ref: Components.MaterialRef;
|
|
94
115
|
/**
|
|
95
116
|
* Reference to a mesh.
|
|
96
117
|
*/
|
|
97
|
-
mesh_ref
|
|
118
|
+
mesh_ref: Components.MeshRef;
|
|
98
119
|
/**
|
|
99
120
|
* A lens that applies an orthographic projection.
|
|
100
121
|
*/
|
|
101
|
-
orthographic_lens
|
|
122
|
+
orthographic_lens: Components.OrthographicLens;
|
|
102
123
|
/**
|
|
103
124
|
* Overrides a given entity in a sub scene.
|
|
104
125
|
*/
|
|
105
|
-
overrider
|
|
126
|
+
overrider: Components.Overrider;
|
|
106
127
|
/**
|
|
107
128
|
* A lens that applies a perspective projection.
|
|
108
129
|
*/
|
|
109
|
-
perspective_lens
|
|
130
|
+
perspective_lens: Components.PerspectiveLens;
|
|
110
131
|
/**
|
|
111
132
|
* Physics material which represents a set of physical surface properties.
|
|
112
133
|
*/
|
|
113
|
-
physics_material
|
|
134
|
+
physics_material: Components.PhysicsMaterial;
|
|
114
135
|
/**
|
|
115
136
|
* Plane geometry.
|
|
116
137
|
*/
|
|
117
|
-
plane_geometry
|
|
138
|
+
plane_geometry: Components.PlaneGeometry;
|
|
118
139
|
/**
|
|
119
140
|
* Reference to a point cloud.
|
|
120
141
|
*/
|
|
121
|
-
point_cloud_ref
|
|
142
|
+
point_cloud_ref: Components.PointCloudRef;
|
|
122
143
|
/**
|
|
123
144
|
* A light with color and intensity. A point light by default, add a spot light component to add a cutoff. Can be parameterized to simulate the atmosphere sun.
|
|
124
145
|
*/
|
|
125
|
-
point_light
|
|
146
|
+
point_light: Components.PointLight;
|
|
126
147
|
/**
|
|
127
148
|
* Omni directional reflection probe parameters, used for local cubemap reflection generation.
|
|
128
149
|
*/
|
|
129
|
-
reflection_probe
|
|
150
|
+
reflection_probe: Components.ReflectionProbe;
|
|
130
151
|
/**
|
|
131
152
|
* Rigid body parameters.
|
|
132
153
|
*/
|
|
133
|
-
rigid_body
|
|
154
|
+
rigid_body: Components.RigidBody;
|
|
134
155
|
/**
|
|
135
156
|
* Reference to a scene.
|
|
136
157
|
*/
|
|
137
|
-
scene_ref
|
|
158
|
+
scene_ref: Components.SceneRef;
|
|
138
159
|
/**
|
|
139
160
|
* References multiple scripts.
|
|
140
161
|
*/
|
|
141
|
-
script_map
|
|
162
|
+
script_map: Components.ScriptMap;
|
|
142
163
|
/**
|
|
143
164
|
* Enables a light to cast shadows.
|
|
144
165
|
*/
|
|
145
|
-
shadow_caster
|
|
166
|
+
shadow_caster: Components.ShadowCaster;
|
|
146
167
|
/**
|
|
147
168
|
* Reference to a skeleton.
|
|
148
169
|
*/
|
|
149
|
-
skeleton_ref
|
|
170
|
+
skeleton_ref: Components.SkeletonRef;
|
|
150
171
|
/**
|
|
151
172
|
* Reference to a sound.
|
|
152
173
|
*/
|
|
153
|
-
sound_ref
|
|
174
|
+
sound_ref: Components.SoundRef;
|
|
154
175
|
/**
|
|
155
176
|
* Sphere geometry.
|
|
156
177
|
*/
|
|
157
|
-
sphere_geometry
|
|
178
|
+
sphere_geometry: Components.SphereGeometry;
|
|
158
179
|
/**
|
|
159
180
|
* Adds a cutoff to a point light to simulate a spot light.
|
|
160
181
|
*/
|
|
161
|
-
spot_light
|
|
182
|
+
spot_light: Components.SpotLight;
|
|
162
183
|
/**
|
|
163
184
|
* A lens that applies a custom projection.
|
|
164
185
|
*/
|
|
165
|
-
stereoscopic_lens
|
|
186
|
+
stereoscopic_lens: Components.StereoscopicLens;
|
|
166
187
|
/**
|
|
167
188
|
* Tags used to filter entities.
|
|
168
189
|
*/
|
|
169
|
-
tags
|
|
190
|
+
tags: Components.Tags;
|
|
170
191
|
/**
|
|
171
192
|
* Vehicle Controller parameters.
|
|
172
193
|
*/
|
|
173
|
-
vehicle_controller
|
|
194
|
+
vehicle_controller: Components.VehicleController;
|
|
174
195
|
/**
|
|
175
196
|
* Filtering properties applied to the volume.
|
|
176
197
|
*/
|
|
177
|
-
volume_filter
|
|
198
|
+
volume_filter: Components.VolumeFilter;
|
|
178
199
|
/**
|
|
179
200
|
* Reference to a material to use with a volume.
|
|
180
201
|
*/
|
|
181
|
-
volume_material_ref
|
|
202
|
+
volume_material_ref: Components.VolumeMaterialRef;
|
|
182
203
|
/**
|
|
183
204
|
* Reference to a volume made of voxels.
|
|
184
205
|
*/
|
|
185
|
-
volume_ref
|
|
206
|
+
volume_ref: Components.VolumeRef;
|
|
186
207
|
};
|
|
@@ -2,26 +2,95 @@
|
|
|
2
2
|
* DO NOT EDIT THIS FILE MANUALLY.
|
|
3
3
|
* This file has been generated automatically from ftl-schemas
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
5
8
|
export type ActionMap = object;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
6
12
|
export type Algorithm = object;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
7
16
|
export type Animation = object;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
8
20
|
export type AnimationGraph = object;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
9
24
|
export type AnimationSequence = object;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
10
28
|
export type AnimationSet = object;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
11
32
|
export type CollisionGeometry = object;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
12
36
|
export type Cubemap = object;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
13
40
|
export type EventMap = object;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
14
44
|
export type Material = object;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
15
48
|
export type Mesh = object;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
16
52
|
export type Module = object;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
17
56
|
export type PointCloud = object;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
18
60
|
export type RenderGraph = object;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
19
64
|
export type Scene = object;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
20
68
|
export type Script = object;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
21
72
|
export type Shader = object;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
22
76
|
export type Skeleton = object;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
23
80
|
export type Sound = object;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
24
84
|
export type Texture = object;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
25
88
|
export type Texture1D = object;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
26
92
|
export type Texture3D = object;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
27
96
|
export type VolumeMaterial = object;
|