@dcl/ecs 7.20.5-22631826546.commit-7c189f5 → 7.20.5-22638270380.commit-3f48d5e
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/dist/components/extended/Tween.d.ts +0 -90
- package/dist/components/extended/Tween.js +0 -152
- package/dist/components/generated/component-names.gen.js +0 -4
- package/dist/components/generated/global.gen.d.ts +0 -8
- package/dist/components/generated/global.gen.js +0 -4
- package/dist/components/generated/index.gen.d.ts +0 -16
- package/dist/components/generated/index.gen.js +0 -20
- package/dist/components/generated/pb/decentraland/sdk/components/common/input_action.gen.d.ts +2 -12
- package/dist/components/generated/pb/decentraland/sdk/components/common/input_action.gen.js +0 -11
- package/dist/components/generated/pb/decentraland/sdk/components/input_modifier.gen.d.ts +0 -2
- package/dist/components/generated/pb/decentraland/sdk/components/input_modifier.gen.js +0 -20
- package/dist/components/generated/pb/decentraland/sdk/components/pointer_events.gen.d.ts +1 -5
- package/dist/components/generated/pb/decentraland/sdk/components/pointer_events.gen.js +1 -20
- package/dist/components/generated/pb/decentraland/sdk/components/tween.gen.d.ts +0 -40
- package/dist/components/generated/pb/decentraland/sdk/components/tween.gen.js +0 -176
- package/dist/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.d.ts +0 -3
- package/dist/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.js +1 -10
- package/dist/components/index.d.ts +5 -4
- package/dist/components/index.js +5 -5
- package/dist/components/manual/CreatedBy.d.ts +9 -0
- package/dist/components/manual/CreatedBy.js +8 -0
- package/dist/components/manual/Transform.d.ts +9 -0
- package/dist/components/manual/Transform.js +3 -3
- package/dist/components/types.d.ts +2 -2
- package/dist/engine/component.d.ts +52 -1
- package/dist/engine/grow-only-value-set-component-definition.js +45 -2
- package/dist/engine/lww-element-set-component-definition.d.ts +3 -1
- package/dist/engine/lww-element-set-component-definition.js +65 -12
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/serialization/crdt/authoritativePutComponent.d.ts +15 -0
- package/dist/serialization/crdt/authoritativePutComponent.js +47 -0
- package/dist/serialization/crdt/index.d.ts +1 -0
- package/dist/serialization/crdt/index.js +1 -0
- package/dist/serialization/crdt/types.d.ts +25 -3
- package/dist/serialization/crdt/types.js +3 -1
- package/dist/systems/crdt/index.d.ts +0 -1
- package/dist/systems/crdt/index.js +55 -146
- package/dist/systems/events.d.ts +0 -65
- package/dist/systems/events.js +8 -70
- package/dist-cjs/components/extended/Tween.d.ts +0 -90
- package/dist-cjs/components/extended/Tween.js +0 -152
- package/dist-cjs/components/generated/component-names.gen.js +0 -4
- package/dist-cjs/components/generated/global.gen.d.ts +0 -8
- package/dist-cjs/components/generated/global.gen.js +1 -6
- package/dist-cjs/components/generated/index.gen.d.ts +0 -16
- package/dist-cjs/components/generated/index.gen.js +2 -26
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/input_action.gen.d.ts +2 -12
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/input_action.gen.js +1 -12
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/input_modifier.gen.d.ts +0 -2
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/input_modifier.gen.js +0 -20
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/pointer_events.gen.d.ts +1 -5
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/pointer_events.gen.js +1 -20
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/tween.gen.d.ts +0 -40
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/tween.gen.js +1 -177
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.d.ts +0 -3
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.js +1 -10
- package/dist-cjs/components/index.d.ts +5 -4
- package/dist-cjs/components/index.js +7 -7
- package/dist-cjs/components/manual/CreatedBy.d.ts +9 -0
- package/dist-cjs/components/manual/CreatedBy.js +10 -0
- package/dist-cjs/components/manual/Transform.d.ts +9 -0
- package/dist-cjs/components/manual/Transform.js +3 -3
- package/dist-cjs/components/types.d.ts +2 -2
- package/dist-cjs/engine/component.d.ts +52 -1
- package/dist-cjs/engine/grow-only-value-set-component-definition.js +44 -1
- package/dist-cjs/engine/lww-element-set-component-definition.d.ts +3 -1
- package/dist-cjs/engine/lww-element-set-component-definition.js +68 -13
- package/dist-cjs/index.d.ts +2 -2
- package/dist-cjs/index.js +2 -2
- package/dist-cjs/serialization/crdt/authoritativePutComponent.d.ts +15 -0
- package/dist-cjs/serialization/crdt/authoritativePutComponent.js +50 -0
- package/dist-cjs/serialization/crdt/index.d.ts +1 -0
- package/dist-cjs/serialization/crdt/index.js +1 -0
- package/dist-cjs/serialization/crdt/types.d.ts +25 -3
- package/dist-cjs/serialization/crdt/types.js +3 -1
- package/dist-cjs/systems/crdt/index.d.ts +0 -1
- package/dist-cjs/systems/crdt/index.js +55 -169
- package/dist-cjs/systems/events.d.ts +0 -65
- package/dist-cjs/systems/events.js +8 -70
- package/package.json +2 -2
- package/dist/components/extended/AudioAnalysis.d.ts +0 -55
- package/dist/components/extended/AudioAnalysis.js +0 -66
- package/dist/components/generated/AudioAnalysis.gen.d.ts +0 -1
- package/dist/components/generated/AudioAnalysis.gen.js +0 -25
- package/dist/components/generated/AvatarLocomotionSettings.gen.d.ts +0 -1
- package/dist/components/generated/AvatarLocomotionSettings.gen.js +0 -25
- package/dist/components/generated/PhysicsCombinedForce.gen.d.ts +0 -1
- package/dist/components/generated/PhysicsCombinedForce.gen.js +0 -25
- package/dist/components/generated/PhysicsCombinedImpulse.gen.d.ts +0 -1
- package/dist/components/generated/PhysicsCombinedImpulse.gen.js +0 -25
- package/dist/components/generated/pb/decentraland/sdk/components/audio_analysis.gen.d.ts +0 -37
- package/dist/components/generated/pb/decentraland/sdk/components/audio_analysis.gen.js +0 -161
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -35
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -123
- package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.d.ts +0 -25
- package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.js +0 -42
- package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.d.ts +0 -28
- package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.js +0 -51
- package/dist/serialization/crdt/network/utils.d.ts +0 -9
- package/dist/serialization/crdt/network/utils.js +0 -60
- package/dist-cjs/components/extended/AudioAnalysis.d.ts +0 -55
- package/dist-cjs/components/extended/AudioAnalysis.js +0 -70
- package/dist-cjs/components/generated/AudioAnalysis.gen.d.ts +0 -1
- package/dist-cjs/components/generated/AudioAnalysis.gen.js +0 -28
- package/dist-cjs/components/generated/AvatarLocomotionSettings.gen.d.ts +0 -1
- package/dist-cjs/components/generated/AvatarLocomotionSettings.gen.js +0 -28
- package/dist-cjs/components/generated/PhysicsCombinedForce.gen.d.ts +0 -1
- package/dist-cjs/components/generated/PhysicsCombinedForce.gen.js +0 -28
- package/dist-cjs/components/generated/PhysicsCombinedImpulse.gen.d.ts +0 -1
- package/dist-cjs/components/generated/PhysicsCombinedImpulse.gen.js +0 -28
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/audio_analysis.gen.d.ts +0 -37
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/audio_analysis.gen.js +0 -167
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -35
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -129
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.d.ts +0 -25
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.js +0 -48
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.d.ts +0 -28
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.js +0 -57
- package/dist-cjs/serialization/crdt/network/utils.d.ts +0 -9
- package/dist-cjs/serialization/crdt/network/utils.js +0 -67
|
@@ -1,66 +1,6 @@
|
|
|
1
1
|
import { Entity, IEngine, LastWriteWinElementSetComponentDefinition } from '../../engine';
|
|
2
2
|
import { Quaternion, Vector2, Vector3 } from '../generated/pb/decentraland/common/vectors.gen';
|
|
3
3
|
import { EasingFunction, Move, MoveContinuous, PBTween, Rotate, RotateContinuous, Scale, TextureMove, TextureMoveContinuous, TextureMovementType } from '../generated/index.gen';
|
|
4
|
-
/**
|
|
5
|
-
* @public
|
|
6
|
-
* Partial params for Tween.Mode.MoveRotateScale(). At least one of position, rotation, or scale must be provided.
|
|
7
|
-
* Use this when building a mode for Tween.createOrReplace() or TweenSequence (e.g. only positionStart/positionEnd).
|
|
8
|
-
*/
|
|
9
|
-
export interface MoveRotateScaleModeParams {
|
|
10
|
-
/** Position tween (start → end). Optional. */
|
|
11
|
-
position?: {
|
|
12
|
-
start: Vector3;
|
|
13
|
-
end: Vector3;
|
|
14
|
-
};
|
|
15
|
-
/** Rotation tween (start → end). Optional. */
|
|
16
|
-
rotation?: {
|
|
17
|
-
start: Quaternion;
|
|
18
|
-
end: Quaternion;
|
|
19
|
-
};
|
|
20
|
-
/** Scale tween (start → end). Optional. */
|
|
21
|
-
scale?: {
|
|
22
|
-
start: Vector3;
|
|
23
|
-
end: Vector3;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @public
|
|
28
|
-
* Parameters for setMoveRotateScale. At least one of position, rotation, or scale must be provided.
|
|
29
|
-
*/
|
|
30
|
-
export interface SetMoveRotateScaleParams extends MoveRotateScaleModeParams {
|
|
31
|
-
/** Duration of the tween in milliseconds. */
|
|
32
|
-
duration: number;
|
|
33
|
-
/** Easing function (defaults to EF_LINEAR). */
|
|
34
|
-
easingFunction?: EasingFunction;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @public
|
|
38
|
-
* Partial params for Tween.Mode.MoveRotateScaleContinuous(). At least one of position, rotation, or scale must be provided.
|
|
39
|
-
*/
|
|
40
|
-
export interface MoveRotateScaleContinuousModeParams {
|
|
41
|
-
/** Position direction for continuous movement. Optional. */
|
|
42
|
-
position?: {
|
|
43
|
-
direction: Vector3;
|
|
44
|
-
};
|
|
45
|
-
/** Rotation direction for continuous rotation. Optional. */
|
|
46
|
-
rotation?: {
|
|
47
|
-
direction: Quaternion;
|
|
48
|
-
};
|
|
49
|
-
/** Scale direction for continuous scale change. Optional. */
|
|
50
|
-
scale?: {
|
|
51
|
-
direction: Vector3;
|
|
52
|
-
};
|
|
53
|
-
/** Speed of the animation per second. */
|
|
54
|
-
speed: number;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @public
|
|
58
|
-
* Parameters for setMoveRotateScaleContinuous. At least one of position, rotation, or scale must be provided.
|
|
59
|
-
*/
|
|
60
|
-
export interface SetMoveRotateScaleContinuousParams extends MoveRotateScaleContinuousModeParams {
|
|
61
|
-
/** Duration in milliseconds (defaults to 0 for infinite). */
|
|
62
|
-
duration?: number;
|
|
63
|
-
}
|
|
64
4
|
/**
|
|
65
5
|
* @public
|
|
66
6
|
*/
|
|
@@ -93,16 +33,6 @@ export interface TweenHelper {
|
|
|
93
33
|
* @returns a texture-move-continuous mode tween
|
|
94
34
|
*/
|
|
95
35
|
TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
|
|
96
|
-
/**
|
|
97
|
-
* @returns a move-rotate-scale mode tween
|
|
98
|
-
* @param params - partial transform (at least one of position, rotation, scale); omit axes you don't need
|
|
99
|
-
*/
|
|
100
|
-
MoveRotateScale: (params: MoveRotateScaleModeParams) => PBTween['mode'];
|
|
101
|
-
/**
|
|
102
|
-
* @returns a move-rotate-scale-continuous mode tween
|
|
103
|
-
* @param params - partial transform (at least one of position, rotation, scale) + speed; omit axes you don't need
|
|
104
|
-
*/
|
|
105
|
-
MoveRotateScaleContinuous: (params: MoveRotateScaleContinuousModeParams) => PBTween['mode'];
|
|
106
36
|
}
|
|
107
37
|
/**
|
|
108
38
|
* @public
|
|
@@ -188,25 +118,5 @@ export interface TweenComponentDefinitionExtended extends LastWriteWinElementSet
|
|
|
188
118
|
* @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
|
|
189
119
|
*/
|
|
190
120
|
setTextureMoveContinuous(entity: Entity, direction: Vector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
|
|
191
|
-
/**
|
|
192
|
-
* @public
|
|
193
|
-
*
|
|
194
|
-
* Creates or replaces a move-rotate-scale tween component that simultaneously animates
|
|
195
|
-
* an entity's position, rotation, and/or scale from start to end. Provide only the
|
|
196
|
-
* properties you need (at least one of position, rotation, or scale).
|
|
197
|
-
* @param entity - entity to apply the tween to
|
|
198
|
-
* @param params - object with optional position, rotation, scale (each with start/end), duration, and optional easingFunction
|
|
199
|
-
*/
|
|
200
|
-
setMoveRotateScale(entity: Entity, params: SetMoveRotateScaleParams): void;
|
|
201
|
-
/**
|
|
202
|
-
* @public
|
|
203
|
-
*
|
|
204
|
-
* Creates or replaces a continuous move-rotate-scale tween component that simultaneously
|
|
205
|
-
* moves, rotates, and/or scales an entity continuously. Provide only the properties
|
|
206
|
-
* you need (at least one of position, rotation, or scale).
|
|
207
|
-
* @param entity - entity to apply the tween to
|
|
208
|
-
* @param params - object with optional position, rotation, scale (each with direction), speed, and optional duration
|
|
209
|
-
*/
|
|
210
|
-
setMoveRotateScaleContinuous(entity: Entity, params: SetMoveRotateScaleContinuousParams): void;
|
|
211
121
|
}
|
|
212
122
|
export declare function defineTweenComponent(engine: Pick<IEngine, 'defineComponentFromSchema'>): TweenComponentDefinitionExtended;
|
|
@@ -1,75 +1,4 @@
|
|
|
1
1
|
import { Tween } from '../generated/index.gen';
|
|
2
|
-
function validateAtLeastOneMoveRotateScale(hasPosition, hasRotation, hasScale, apiName) {
|
|
3
|
-
if (!hasPosition && !hasRotation && !hasScale) {
|
|
4
|
-
throw new Error(`${apiName}: at least one of position, rotation, or scale must be provided`);
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
function validateDuration(duration, apiName) {
|
|
8
|
-
if (typeof duration !== 'number' || !Number.isFinite(duration) || duration < 0) {
|
|
9
|
-
throw new Error(`${apiName}: duration must be a non-negative finite number`);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
function validateSpeed(speed, apiName) {
|
|
13
|
-
if (typeof speed !== 'number' || !Number.isFinite(speed)) {
|
|
14
|
-
throw new Error(`${apiName}: speed must be a finite number`);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
/** Shared validation for params that have optional position/rotation/scale with start & end. */
|
|
18
|
-
function validateMoveRotateScaleAxesStartEnd(params, apiName) {
|
|
19
|
-
const hasPosition = params.position != null;
|
|
20
|
-
const hasRotation = params.rotation != null;
|
|
21
|
-
const hasScale = params.scale != null;
|
|
22
|
-
validateAtLeastOneMoveRotateScale(hasPosition, hasRotation, hasScale, apiName);
|
|
23
|
-
if (hasPosition) {
|
|
24
|
-
const pos = params.position;
|
|
25
|
-
if (pos.start == null || pos.end == null) {
|
|
26
|
-
throw new Error(`${apiName}: position must have both start and end`);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
if (hasRotation) {
|
|
30
|
-
const rot = params.rotation;
|
|
31
|
-
if (rot.start == null || rot.end == null) {
|
|
32
|
-
throw new Error(`${apiName}: rotation must have both start and end`);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
if (hasScale) {
|
|
36
|
-
const scl = params.scale;
|
|
37
|
-
if (scl.start == null || scl.end == null) {
|
|
38
|
-
throw new Error(`${apiName}: scale must have both start and end`);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
/** Shared validation for params that have optional position/rotation/scale with direction + speed. */
|
|
43
|
-
function validateMoveRotateScaleAxesDirection(params, apiName) {
|
|
44
|
-
const hasPosition = params.position != null;
|
|
45
|
-
const hasRotation = params.rotation != null;
|
|
46
|
-
const hasScale = params.scale != null;
|
|
47
|
-
validateAtLeastOneMoveRotateScale(hasPosition, hasRotation, hasScale, apiName);
|
|
48
|
-
validateSpeed(params.speed, apiName);
|
|
49
|
-
if (hasPosition && params.position.direction == null) {
|
|
50
|
-
throw new Error(`${apiName}: position must have direction`);
|
|
51
|
-
}
|
|
52
|
-
if (hasRotation && params.rotation.direction == null) {
|
|
53
|
-
throw new Error(`${apiName}: rotation must have direction`);
|
|
54
|
-
}
|
|
55
|
-
if (hasScale && params.scale.direction == null) {
|
|
56
|
-
throw new Error(`${apiName}: scale must have direction`);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function validateSetMoveRotateScaleParams(params, apiName) {
|
|
60
|
-
validateMoveRotateScaleModeParams(params, apiName);
|
|
61
|
-
validateDuration(params.duration, apiName);
|
|
62
|
-
}
|
|
63
|
-
function validateSetMoveRotateScaleContinuousParams(params, apiName) {
|
|
64
|
-
validateMoveRotateScaleContinuousModeParams(params, apiName);
|
|
65
|
-
validateDuration(params.duration ?? 0, apiName);
|
|
66
|
-
}
|
|
67
|
-
function validateMoveRotateScaleModeParams(params, apiName) {
|
|
68
|
-
validateMoveRotateScaleAxesStartEnd(params, apiName);
|
|
69
|
-
}
|
|
70
|
-
function validateMoveRotateScaleContinuousModeParams(params, apiName) {
|
|
71
|
-
validateMoveRotateScaleAxesDirection(params, apiName);
|
|
72
|
-
}
|
|
73
2
|
const TweenHelper = {
|
|
74
3
|
Move(move) {
|
|
75
4
|
return {
|
|
@@ -112,40 +41,6 @@ const TweenHelper = {
|
|
|
112
41
|
$case: 'textureMoveContinuous',
|
|
113
42
|
textureMoveContinuous
|
|
114
43
|
};
|
|
115
|
-
},
|
|
116
|
-
MoveRotateScale(params) {
|
|
117
|
-
validateMoveRotateScaleModeParams(params, 'Tween.Mode.MoveRotateScale');
|
|
118
|
-
const hasPosition = params.position != null;
|
|
119
|
-
const hasRotation = params.rotation != null;
|
|
120
|
-
const hasScale = params.scale != null;
|
|
121
|
-
const moveRotateScale = {
|
|
122
|
-
positionStart: hasPosition ? params.position.start : undefined,
|
|
123
|
-
positionEnd: hasPosition ? params.position.end : undefined,
|
|
124
|
-
rotationStart: hasRotation ? params.rotation.start : undefined,
|
|
125
|
-
rotationEnd: hasRotation ? params.rotation.end : undefined,
|
|
126
|
-
scaleStart: hasScale ? params.scale.start : undefined,
|
|
127
|
-
scaleEnd: hasScale ? params.scale.end : undefined
|
|
128
|
-
};
|
|
129
|
-
return {
|
|
130
|
-
$case: 'moveRotateScale',
|
|
131
|
-
moveRotateScale
|
|
132
|
-
};
|
|
133
|
-
},
|
|
134
|
-
MoveRotateScaleContinuous(params) {
|
|
135
|
-
validateMoveRotateScaleContinuousModeParams(params, 'Tween.Mode.MoveRotateScaleContinuous');
|
|
136
|
-
const hasPosition = params.position != null;
|
|
137
|
-
const hasRotation = params.rotation != null;
|
|
138
|
-
const hasScale = params.scale != null;
|
|
139
|
-
const moveRotateScaleContinuous = {
|
|
140
|
-
positionDirection: hasPosition ? params.position.direction : undefined,
|
|
141
|
-
rotationDirection: hasRotation ? params.rotation.direction : undefined,
|
|
142
|
-
scaleDirection: hasScale ? params.scale.direction : undefined,
|
|
143
|
-
speed: params.speed
|
|
144
|
-
};
|
|
145
|
-
return {
|
|
146
|
-
$case: 'moveRotateScaleContinuous',
|
|
147
|
-
moveRotateScaleContinuous
|
|
148
|
-
};
|
|
149
44
|
}
|
|
150
45
|
};
|
|
151
46
|
export function defineTweenComponent(engine) {
|
|
@@ -252,53 +147,6 @@ export function defineTweenComponent(engine) {
|
|
|
252
147
|
easingFunction: 0 /* EasingFunction.EF_LINEAR */,
|
|
253
148
|
playing: true
|
|
254
149
|
});
|
|
255
|
-
},
|
|
256
|
-
setMoveRotateScale(entity, params) {
|
|
257
|
-
validateSetMoveRotateScaleParams(params, 'setMoveRotateScale');
|
|
258
|
-
const { position, rotation, scale, duration, easingFunction = 0 /* EasingFunction.EF_LINEAR */ } = params;
|
|
259
|
-
const hasPosition = position != null;
|
|
260
|
-
const hasRotation = rotation != null;
|
|
261
|
-
const hasScale = scale != null;
|
|
262
|
-
const moveRotateScale = {
|
|
263
|
-
positionStart: hasPosition ? position.start : undefined,
|
|
264
|
-
positionEnd: hasPosition ? position.end : undefined,
|
|
265
|
-
rotationStart: hasRotation ? rotation.start : undefined,
|
|
266
|
-
rotationEnd: hasRotation ? rotation.end : undefined,
|
|
267
|
-
scaleStart: hasScale ? scale.start : undefined,
|
|
268
|
-
scaleEnd: hasScale ? scale.end : undefined
|
|
269
|
-
};
|
|
270
|
-
theComponent.createOrReplace(entity, {
|
|
271
|
-
mode: {
|
|
272
|
-
$case: 'moveRotateScale',
|
|
273
|
-
moveRotateScale
|
|
274
|
-
},
|
|
275
|
-
duration,
|
|
276
|
-
easingFunction,
|
|
277
|
-
playing: true
|
|
278
|
-
});
|
|
279
|
-
},
|
|
280
|
-
setMoveRotateScaleContinuous(entity, params) {
|
|
281
|
-
const duration = params.duration ?? 0;
|
|
282
|
-
validateSetMoveRotateScaleContinuousParams(params, 'setMoveRotateScaleContinuous');
|
|
283
|
-
const { position, rotation, scale, speed } = params;
|
|
284
|
-
const hasPosition = position != null;
|
|
285
|
-
const hasRotation = rotation != null;
|
|
286
|
-
const hasScale = scale != null;
|
|
287
|
-
const moveRotateScaleContinuous = {
|
|
288
|
-
positionDirection: hasPosition ? position.direction : undefined,
|
|
289
|
-
rotationDirection: hasRotation ? rotation.direction : undefined,
|
|
290
|
-
scaleDirection: hasScale ? scale.direction : undefined,
|
|
291
|
-
speed
|
|
292
|
-
};
|
|
293
|
-
theComponent.createOrReplace(entity, {
|
|
294
|
-
mode: {
|
|
295
|
-
$case: 'moveRotateScaleContinuous',
|
|
296
|
-
moveRotateScaleContinuous
|
|
297
|
-
},
|
|
298
|
-
duration,
|
|
299
|
-
easingFunction: 0 /* EasingFunction.EF_LINEAR */,
|
|
300
|
-
playing: true
|
|
301
|
-
});
|
|
302
150
|
}
|
|
303
151
|
};
|
|
304
152
|
}
|
|
@@ -6,7 +6,6 @@ export const coreComponentMappings = {
|
|
|
6
6
|
"core::Animator": 1042,
|
|
7
7
|
"core::AssetLoad": 1213,
|
|
8
8
|
"core::AssetLoadLoadingState": 1214,
|
|
9
|
-
"core::AudioAnalysis": 1212,
|
|
10
9
|
"core::AudioEvent": 1105,
|
|
11
10
|
"core::AudioSource": 1020,
|
|
12
11
|
"core::AudioStream": 1021,
|
|
@@ -14,7 +13,6 @@ export const coreComponentMappings = {
|
|
|
14
13
|
"core::AvatarBase": 1087,
|
|
15
14
|
"core::AvatarEmoteCommand": 1088,
|
|
16
15
|
"core::AvatarEquippedData": 1091,
|
|
17
|
-
"core::AvatarLocomotionSettings": 1211,
|
|
18
16
|
"core::AvatarModifierArea": 1070,
|
|
19
17
|
"core::AvatarShape": 1080,
|
|
20
18
|
"core::Billboard": 1090,
|
|
@@ -32,8 +30,6 @@ export const coreComponentMappings = {
|
|
|
32
30
|
"core::MeshCollider": 1019,
|
|
33
31
|
"core::MeshRenderer": 1018,
|
|
34
32
|
"core::NftShape": 1040,
|
|
35
|
-
"core::PhysicsCombinedForce": 1216,
|
|
36
|
-
"core::PhysicsCombinedImpulse": 1215,
|
|
37
33
|
"core::PlayerIdentityData": 1089,
|
|
38
34
|
"core::PointerEvents": 1062,
|
|
39
35
|
"core::PointerEventsResult": 1063,
|
|
@@ -2,7 +2,6 @@ import { LastWriteWinElementSetComponentDefinition, GrowOnlyValueSetComponentDef
|
|
|
2
2
|
export * from './index.gen';
|
|
3
3
|
import { PBAssetLoad } from './pb/decentraland/sdk/components/asset_load.gen';
|
|
4
4
|
import { PBAssetLoadLoadingState } from './pb/decentraland/sdk/components/asset_load_loading_state.gen';
|
|
5
|
-
import { PBAudioAnalysis } from './pb/decentraland/sdk/components/audio_analysis.gen';
|
|
6
5
|
import { PBAudioEvent } from './pb/decentraland/sdk/components/audio_event.gen';
|
|
7
6
|
import { PBAudioSource } from './pb/decentraland/sdk/components/audio_source.gen';
|
|
8
7
|
import { PBAudioStream } from './pb/decentraland/sdk/components/audio_stream.gen';
|
|
@@ -10,7 +9,6 @@ import { PBAvatarAttach } from './pb/decentraland/sdk/components/avatar_attach.g
|
|
|
10
9
|
import { PBAvatarBase } from './pb/decentraland/sdk/components/avatar_base.gen';
|
|
11
10
|
import { PBAvatarEmoteCommand } from './pb/decentraland/sdk/components/avatar_emote_command.gen';
|
|
12
11
|
import { PBAvatarEquippedData } from './pb/decentraland/sdk/components/avatar_equipped_data.gen';
|
|
13
|
-
import { PBAvatarLocomotionSettings } from './pb/decentraland/sdk/components/avatar_locomotion_settings.gen';
|
|
14
12
|
import { PBAvatarModifierArea } from './pb/decentraland/sdk/components/avatar_modifier_area.gen';
|
|
15
13
|
import { PBAvatarShape } from './pb/decentraland/sdk/components/avatar_shape.gen';
|
|
16
14
|
import { PBBillboard } from './pb/decentraland/sdk/components/billboard.gen';
|
|
@@ -24,8 +22,6 @@ import { PBInputModifier } from './pb/decentraland/sdk/components/input_modifier
|
|
|
24
22
|
import { PBLightSource } from './pb/decentraland/sdk/components/light_source.gen';
|
|
25
23
|
import { PBMainCamera } from './pb/decentraland/sdk/components/main_camera.gen';
|
|
26
24
|
import { PBNftShape } from './pb/decentraland/sdk/components/nft_shape.gen';
|
|
27
|
-
import { PBPhysicsCombinedForce } from './pb/decentraland/sdk/components/physics_combined_force.gen';
|
|
28
|
-
import { PBPhysicsCombinedImpulse } from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
|
|
29
25
|
import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
30
26
|
import { PBPointerEvents } from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
31
27
|
import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
@@ -54,7 +50,6 @@ import { PBVirtualCamera } from './pb/decentraland/sdk/components/virtual_camera
|
|
|
54
50
|
import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibility_component.gen';
|
|
55
51
|
/** @public */ export declare const AssetLoad: LastWriteWinElementSetComponentDefinition<PBAssetLoad>;
|
|
56
52
|
/** @public */ export declare const AssetLoadLoadingState: GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>;
|
|
57
|
-
/** @public */ export declare const AudioAnalysis: LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>;
|
|
58
53
|
/** @public */ export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
59
54
|
/** @public */ export declare const AudioSource: LastWriteWinElementSetComponentDefinition<PBAudioSource>;
|
|
60
55
|
/** @public */ export declare const AudioStream: LastWriteWinElementSetComponentDefinition<PBAudioStream>;
|
|
@@ -62,7 +57,6 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
62
57
|
/** @public */ export declare const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAvatarBase>;
|
|
63
58
|
/** @public */ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
|
|
64
59
|
/** @public */ export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
65
|
-
/** @public */ export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
66
60
|
/** @public */ export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
67
61
|
/** @public */ export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
|
|
68
62
|
/** @public */ export declare const Billboard: LastWriteWinElementSetComponentDefinition<PBBillboard>;
|
|
@@ -76,8 +70,6 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
76
70
|
/** @public */ export declare const LightSource: LastWriteWinElementSetComponentDefinition<PBLightSource>;
|
|
77
71
|
/** @public */ export declare const MainCamera: LastWriteWinElementSetComponentDefinition<PBMainCamera>;
|
|
78
72
|
/** @public */ export declare const NftShape: LastWriteWinElementSetComponentDefinition<PBNftShape>;
|
|
79
|
-
/** @public */ export declare const PhysicsCombinedForce: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>;
|
|
80
|
-
/** @public */ export declare const PhysicsCombinedImpulse: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>;
|
|
81
73
|
/** @public */ export declare const PlayerIdentityData: LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>;
|
|
82
74
|
/** @public */ export declare const PointerEvents: LastWriteWinElementSetComponentDefinition<PBPointerEvents>;
|
|
83
75
|
/** @public */ export declare const PointerEventsResult: GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>;
|
|
@@ -3,7 +3,6 @@ import * as components from './index.gen';
|
|
|
3
3
|
export * from './index.gen';
|
|
4
4
|
/** @public */ export const AssetLoad = /* @__PURE__ */ components.AssetLoad(engine);
|
|
5
5
|
/** @public */ export const AssetLoadLoadingState = /* @__PURE__ */ components.AssetLoadLoadingState(engine);
|
|
6
|
-
/** @public */ export const AudioAnalysis = /* @__PURE__ */ components.AudioAnalysis(engine);
|
|
7
6
|
/** @public */ export const AudioEvent = /* @__PURE__ */ components.AudioEvent(engine);
|
|
8
7
|
/** @public */ export const AudioSource = /* @__PURE__ */ components.AudioSource(engine);
|
|
9
8
|
/** @public */ export const AudioStream = /* @__PURE__ */ components.AudioStream(engine);
|
|
@@ -11,7 +10,6 @@ export * from './index.gen';
|
|
|
11
10
|
/** @public */ export const AvatarBase = /* @__PURE__ */ components.AvatarBase(engine);
|
|
12
11
|
/** @public */ export const AvatarEmoteCommand = /* @__PURE__ */ components.AvatarEmoteCommand(engine);
|
|
13
12
|
/** @public */ export const AvatarEquippedData = /* @__PURE__ */ components.AvatarEquippedData(engine);
|
|
14
|
-
/** @public */ export const AvatarLocomotionSettings = /* @__PURE__ */ components.AvatarLocomotionSettings(engine);
|
|
15
13
|
/** @public */ export const AvatarModifierArea = /* @__PURE__ */ components.AvatarModifierArea(engine);
|
|
16
14
|
/** @public */ export const AvatarShape = /* @__PURE__ */ components.AvatarShape(engine);
|
|
17
15
|
/** @public */ export const Billboard = /* @__PURE__ */ components.Billboard(engine);
|
|
@@ -25,8 +23,6 @@ export * from './index.gen';
|
|
|
25
23
|
/** @public */ export const LightSource = /* @__PURE__ */ components.LightSource(engine);
|
|
26
24
|
/** @public */ export const MainCamera = /* @__PURE__ */ components.MainCamera(engine);
|
|
27
25
|
/** @public */ export const NftShape = /* @__PURE__ */ components.NftShape(engine);
|
|
28
|
-
/** @public */ export const PhysicsCombinedForce = /* @__PURE__ */ components.PhysicsCombinedForce(engine);
|
|
29
|
-
/** @public */ export const PhysicsCombinedImpulse = /* @__PURE__ */ components.PhysicsCombinedImpulse(engine);
|
|
30
26
|
/** @public */ export const PlayerIdentityData = /* @__PURE__ */ components.PlayerIdentityData(engine);
|
|
31
27
|
/** @public */ export const PointerEvents = /* @__PURE__ */ components.PointerEvents(engine);
|
|
32
28
|
/** @public */ export const PointerEventsResult = /* @__PURE__ */ components.PointerEventsResult(engine);
|
|
@@ -3,7 +3,6 @@ import { LastWriteWinElementSetComponentDefinition, GrowOnlyValueSetComponentDef
|
|
|
3
3
|
import { PBAnimator } from './pb/decentraland/sdk/components/animator.gen';
|
|
4
4
|
import { PBAssetLoad } from './pb/decentraland/sdk/components/asset_load.gen';
|
|
5
5
|
import { PBAssetLoadLoadingState } from './pb/decentraland/sdk/components/asset_load_loading_state.gen';
|
|
6
|
-
import { PBAudioAnalysis } from './pb/decentraland/sdk/components/audio_analysis.gen';
|
|
7
6
|
import { PBAudioEvent } from './pb/decentraland/sdk/components/audio_event.gen';
|
|
8
7
|
import { PBAudioSource } from './pb/decentraland/sdk/components/audio_source.gen';
|
|
9
8
|
import { PBAudioStream } from './pb/decentraland/sdk/components/audio_stream.gen';
|
|
@@ -11,7 +10,6 @@ import { PBAvatarAttach } from './pb/decentraland/sdk/components/avatar_attach.g
|
|
|
11
10
|
import { PBAvatarBase } from './pb/decentraland/sdk/components/avatar_base.gen';
|
|
12
11
|
import { PBAvatarEmoteCommand } from './pb/decentraland/sdk/components/avatar_emote_command.gen';
|
|
13
12
|
import { PBAvatarEquippedData } from './pb/decentraland/sdk/components/avatar_equipped_data.gen';
|
|
14
|
-
import { PBAvatarLocomotionSettings } from './pb/decentraland/sdk/components/avatar_locomotion_settings.gen';
|
|
15
13
|
import { PBAvatarModifierArea } from './pb/decentraland/sdk/components/avatar_modifier_area.gen';
|
|
16
14
|
import { PBAvatarShape } from './pb/decentraland/sdk/components/avatar_shape.gen';
|
|
17
15
|
import { PBBillboard } from './pb/decentraland/sdk/components/billboard.gen';
|
|
@@ -28,8 +26,6 @@ import { PBMaterial } from './pb/decentraland/sdk/components/material.gen';
|
|
|
28
26
|
import { PBMeshCollider } from './pb/decentraland/sdk/components/mesh_collider.gen';
|
|
29
27
|
import { PBMeshRenderer } from './pb/decentraland/sdk/components/mesh_renderer.gen';
|
|
30
28
|
import { PBNftShape } from './pb/decentraland/sdk/components/nft_shape.gen';
|
|
31
|
-
import { PBPhysicsCombinedForce } from './pb/decentraland/sdk/components/physics_combined_force.gen';
|
|
32
|
-
import { PBPhysicsCombinedImpulse } from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
|
|
33
29
|
import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
34
30
|
import { PBPointerEvents } from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
35
31
|
import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
@@ -60,7 +56,6 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
60
56
|
export * from './pb/decentraland/sdk/components/animator.gen';
|
|
61
57
|
export * from './pb/decentraland/sdk/components/asset_load.gen';
|
|
62
58
|
export * from './pb/decentraland/sdk/components/asset_load_loading_state.gen';
|
|
63
|
-
export * from './pb/decentraland/sdk/components/audio_analysis.gen';
|
|
64
59
|
export * from './pb/decentraland/sdk/components/audio_event.gen';
|
|
65
60
|
export * from './pb/decentraland/sdk/components/audio_source.gen';
|
|
66
61
|
export * from './pb/decentraland/sdk/components/audio_stream.gen';
|
|
@@ -68,7 +63,6 @@ export * from './pb/decentraland/sdk/components/avatar_attach.gen';
|
|
|
68
63
|
export * from './pb/decentraland/sdk/components/avatar_base.gen';
|
|
69
64
|
export * from './pb/decentraland/sdk/components/avatar_emote_command.gen';
|
|
70
65
|
export * from './pb/decentraland/sdk/components/avatar_equipped_data.gen';
|
|
71
|
-
export * from './pb/decentraland/sdk/components/avatar_locomotion_settings.gen';
|
|
72
66
|
export * from './pb/decentraland/sdk/components/avatar_modifier_area.gen';
|
|
73
67
|
export * from './pb/decentraland/sdk/components/avatar_shape.gen';
|
|
74
68
|
export * from './pb/decentraland/sdk/components/billboard.gen';
|
|
@@ -85,8 +79,6 @@ export * from './pb/decentraland/sdk/components/material.gen';
|
|
|
85
79
|
export * from './pb/decentraland/sdk/components/mesh_collider.gen';
|
|
86
80
|
export * from './pb/decentraland/sdk/components/mesh_renderer.gen';
|
|
87
81
|
export * from './pb/decentraland/sdk/components/nft_shape.gen';
|
|
88
|
-
export * from './pb/decentraland/sdk/components/physics_combined_force.gen';
|
|
89
|
-
export * from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
|
|
90
82
|
export * from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
91
83
|
export * from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
92
84
|
export * from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
@@ -119,7 +111,6 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
119
111
|
/** @public */ export declare const Animator: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
120
112
|
/** @public */ export declare const AssetLoad: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
121
113
|
/** @public */ export declare const AssetLoadLoadingState: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
122
|
-
/** @public */ export declare const AudioAnalysis: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
123
114
|
/** @public */ export declare const AudioEvent: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
124
115
|
/** @public */ export declare const AudioSource: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
125
116
|
/** @public */ export declare const AudioStream: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -127,7 +118,6 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
127
118
|
/** @public */ export declare const AvatarBase: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
128
119
|
/** @public */ export declare const AvatarEmoteCommand: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
129
120
|
/** @public */ export declare const AvatarEquippedData: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
130
|
-
/** @public */ export declare const AvatarLocomotionSettings: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
131
121
|
/** @public */ export declare const AvatarModifierArea: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
132
122
|
/** @public */ export declare const AvatarShape: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
133
123
|
/** @public */ export declare const Billboard: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -144,8 +134,6 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
144
134
|
/** @public */ export declare const MeshCollider: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
145
135
|
/** @public */ export declare const MeshRenderer: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
|
146
136
|
/** @public */ export declare const NftShape: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
|
|
147
|
-
/** @public */ export declare const PhysicsCombinedForce: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
|
|
148
|
-
/** @public */ export declare const PhysicsCombinedImpulse: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
|
|
149
137
|
/** @public */ export declare const PlayerIdentityData: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
|
|
150
138
|
/** @public */ export declare const PointerEvents: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
|
151
139
|
/** @public */ export declare const PointerEventsResult: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
|
@@ -178,7 +166,6 @@ export declare const componentDefinitionByName: {
|
|
|
178
166
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
179
167
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
180
168
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
181
|
-
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
182
169
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
183
170
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
184
171
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -186,7 +173,6 @@ export declare const componentDefinitionByName: {
|
|
|
186
173
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
187
174
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
188
175
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
189
|
-
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
190
176
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
191
177
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
192
178
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -203,8 +189,6 @@ export declare const componentDefinitionByName: {
|
|
|
203
189
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
204
190
|
"core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
|
205
191
|
"core::NftShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
|
|
206
|
-
"core::PhysicsCombinedForce": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
|
|
207
|
-
"core::PhysicsCombinedImpulse": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
|
|
208
192
|
"core::PlayerIdentityData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
|
|
209
193
|
"core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
|
210
194
|
"core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AnimatorSchema } from './Animator.gen';
|
|
2
2
|
import { AssetLoadSchema } from './AssetLoad.gen';
|
|
3
3
|
import { AssetLoadLoadingStateSchema } from './AssetLoadLoadingState.gen';
|
|
4
|
-
import { AudioAnalysisSchema } from './AudioAnalysis.gen';
|
|
5
4
|
import { AudioEventSchema } from './AudioEvent.gen';
|
|
6
5
|
import { AudioSourceSchema } from './AudioSource.gen';
|
|
7
6
|
import { AudioStreamSchema } from './AudioStream.gen';
|
|
@@ -9,7 +8,6 @@ import { AvatarAttachSchema } from './AvatarAttach.gen';
|
|
|
9
8
|
import { AvatarBaseSchema } from './AvatarBase.gen';
|
|
10
9
|
import { AvatarEmoteCommandSchema } from './AvatarEmoteCommand.gen';
|
|
11
10
|
import { AvatarEquippedDataSchema } from './AvatarEquippedData.gen';
|
|
12
|
-
import { AvatarLocomotionSettingsSchema } from './AvatarLocomotionSettings.gen';
|
|
13
11
|
import { AvatarModifierAreaSchema } from './AvatarModifierArea.gen';
|
|
14
12
|
import { AvatarShapeSchema } from './AvatarShape.gen';
|
|
15
13
|
import { BillboardSchema } from './Billboard.gen';
|
|
@@ -26,8 +24,6 @@ import { MaterialSchema } from './Material.gen';
|
|
|
26
24
|
import { MeshColliderSchema } from './MeshCollider.gen';
|
|
27
25
|
import { MeshRendererSchema } from './MeshRenderer.gen';
|
|
28
26
|
import { NftShapeSchema } from './NftShape.gen';
|
|
29
|
-
import { PhysicsCombinedForceSchema } from './PhysicsCombinedForce.gen';
|
|
30
|
-
import { PhysicsCombinedImpulseSchema } from './PhysicsCombinedImpulse.gen';
|
|
31
27
|
import { PlayerIdentityDataSchema } from './PlayerIdentityData.gen';
|
|
32
28
|
import { PointerEventsSchema } from './PointerEvents.gen';
|
|
33
29
|
import { PointerEventsResultSchema } from './PointerEventsResult.gen';
|
|
@@ -58,7 +54,6 @@ import { VisibilityComponentSchema } from './VisibilityComponent.gen';
|
|
|
58
54
|
export * from './pb/decentraland/sdk/components/animator.gen';
|
|
59
55
|
export * from './pb/decentraland/sdk/components/asset_load.gen';
|
|
60
56
|
export * from './pb/decentraland/sdk/components/asset_load_loading_state.gen';
|
|
61
|
-
export * from './pb/decentraland/sdk/components/audio_analysis.gen';
|
|
62
57
|
export * from './pb/decentraland/sdk/components/audio_event.gen';
|
|
63
58
|
export * from './pb/decentraland/sdk/components/audio_source.gen';
|
|
64
59
|
export * from './pb/decentraland/sdk/components/audio_stream.gen';
|
|
@@ -66,7 +61,6 @@ export * from './pb/decentraland/sdk/components/avatar_attach.gen';
|
|
|
66
61
|
export * from './pb/decentraland/sdk/components/avatar_base.gen';
|
|
67
62
|
export * from './pb/decentraland/sdk/components/avatar_emote_command.gen';
|
|
68
63
|
export * from './pb/decentraland/sdk/components/avatar_equipped_data.gen';
|
|
69
|
-
export * from './pb/decentraland/sdk/components/avatar_locomotion_settings.gen';
|
|
70
64
|
export * from './pb/decentraland/sdk/components/avatar_modifier_area.gen';
|
|
71
65
|
export * from './pb/decentraland/sdk/components/avatar_shape.gen';
|
|
72
66
|
export * from './pb/decentraland/sdk/components/billboard.gen';
|
|
@@ -83,8 +77,6 @@ export * from './pb/decentraland/sdk/components/material.gen';
|
|
|
83
77
|
export * from './pb/decentraland/sdk/components/mesh_collider.gen';
|
|
84
78
|
export * from './pb/decentraland/sdk/components/mesh_renderer.gen';
|
|
85
79
|
export * from './pb/decentraland/sdk/components/nft_shape.gen';
|
|
86
|
-
export * from './pb/decentraland/sdk/components/physics_combined_force.gen';
|
|
87
|
-
export * from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
|
|
88
80
|
export * from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
89
81
|
export * from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
90
82
|
export * from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
@@ -120,8 +112,6 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
|
|
|
120
112
|
timestampFunction: (t) => t.timestamp,
|
|
121
113
|
maxElements: 100
|
|
122
114
|
});
|
|
123
|
-
/** @public */ export const AudioAnalysis = engine =>
|
|
124
|
-
/* @__PURE__ */ engine.defineComponentFromSchema("core::AudioAnalysis", AudioAnalysisSchema);
|
|
125
115
|
/** @public */ export const AudioEvent = (engine) => /* @__PURE__ */ engine.defineValueSetComponentFromSchema("core::AudioEvent", AudioEventSchema, {
|
|
126
116
|
timestampFunction: (t) => t.timestamp,
|
|
127
117
|
maxElements: 100
|
|
@@ -140,8 +130,6 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
|
|
|
140
130
|
});
|
|
141
131
|
/** @public */ export const AvatarEquippedData = engine =>
|
|
142
132
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarEquippedData", AvatarEquippedDataSchema);
|
|
143
|
-
/** @public */ export const AvatarLocomotionSettings = engine =>
|
|
144
|
-
/* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarLocomotionSettings", AvatarLocomotionSettingsSchema);
|
|
145
133
|
/** @public */ export const AvatarModifierArea = engine =>
|
|
146
134
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarModifierArea", AvatarModifierAreaSchema);
|
|
147
135
|
/** @public */ export const AvatarShape = engine =>
|
|
@@ -174,10 +162,6 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
|
|
|
174
162
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::MeshRenderer", MeshRendererSchema);
|
|
175
163
|
/** @public */ export const NftShape = engine =>
|
|
176
164
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::NftShape", NftShapeSchema);
|
|
177
|
-
/** @public */ export const PhysicsCombinedForce = engine =>
|
|
178
|
-
/* @__PURE__ */ engine.defineComponentFromSchema("core::PhysicsCombinedForce", PhysicsCombinedForceSchema);
|
|
179
|
-
/** @public */ export const PhysicsCombinedImpulse = engine =>
|
|
180
|
-
/* @__PURE__ */ engine.defineComponentFromSchema("core::PhysicsCombinedImpulse", PhysicsCombinedImpulseSchema);
|
|
181
165
|
/** @public */ export const PlayerIdentityData = engine =>
|
|
182
166
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::PlayerIdentityData", PlayerIdentityDataSchema);
|
|
183
167
|
/** @public */ export const PointerEvents = engine =>
|
|
@@ -243,7 +227,6 @@ export const componentDefinitionByName = /* @__PURE__ */ {
|
|
|
243
227
|
"core::Animator": Animator,
|
|
244
228
|
"core::AssetLoad": AssetLoad,
|
|
245
229
|
"core::AssetLoadLoadingState": AssetLoadLoadingState,
|
|
246
|
-
"core::AudioAnalysis": AudioAnalysis,
|
|
247
230
|
"core::AudioEvent": AudioEvent,
|
|
248
231
|
"core::AudioSource": AudioSource,
|
|
249
232
|
"core::AudioStream": AudioStream,
|
|
@@ -251,7 +234,6 @@ export const componentDefinitionByName = /* @__PURE__ */ {
|
|
|
251
234
|
"core::AvatarBase": AvatarBase,
|
|
252
235
|
"core::AvatarEmoteCommand": AvatarEmoteCommand,
|
|
253
236
|
"core::AvatarEquippedData": AvatarEquippedData,
|
|
254
|
-
"core::AvatarLocomotionSettings": AvatarLocomotionSettings,
|
|
255
237
|
"core::AvatarModifierArea": AvatarModifierArea,
|
|
256
238
|
"core::AvatarShape": AvatarShape,
|
|
257
239
|
"core::Billboard": Billboard,
|
|
@@ -268,8 +250,6 @@ export const componentDefinitionByName = /* @__PURE__ */ {
|
|
|
268
250
|
"core::MeshCollider": MeshCollider,
|
|
269
251
|
"core::MeshRenderer": MeshRenderer,
|
|
270
252
|
"core::NftShape": NftShape,
|
|
271
|
-
"core::PhysicsCombinedForce": PhysicsCombinedForce,
|
|
272
|
-
"core::PhysicsCombinedImpulse": PhysicsCombinedImpulse,
|
|
273
253
|
"core::PlayerIdentityData": PlayerIdentityData,
|
|
274
254
|
"core::PointerEvents": PointerEvents,
|
|
275
255
|
"core::PointerEventsResult": PointerEventsResult,
|
package/dist/components/generated/pb/decentraland/sdk/components/common/input_action.gen.d.ts
CHANGED
|
@@ -15,8 +15,7 @@ export declare const enum InputAction {
|
|
|
15
15
|
IA_ACTION_3 = 10,
|
|
16
16
|
IA_ACTION_4 = 11,
|
|
17
17
|
IA_ACTION_5 = 12,
|
|
18
|
-
IA_ACTION_6 = 13
|
|
19
|
-
IA_MODIFIER = 14
|
|
18
|
+
IA_ACTION_6 = 13
|
|
20
19
|
}
|
|
21
20
|
/** PointerEventType is a kind of interaction that can be detected. */
|
|
22
21
|
/**
|
|
@@ -26,14 +25,5 @@ export declare const enum PointerEventType {
|
|
|
26
25
|
PET_UP = 0,
|
|
27
26
|
PET_DOWN = 1,
|
|
28
27
|
PET_HOVER_ENTER = 2,
|
|
29
|
-
PET_HOVER_LEAVE = 3
|
|
30
|
-
PET_PROXIMITY_ENTER = 4,
|
|
31
|
-
PET_PROXIMITY_LEAVE = 5
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @public
|
|
35
|
-
*/
|
|
36
|
-
export declare const enum InteractionType {
|
|
37
|
-
CURSOR = 0,
|
|
38
|
-
PROXIMITY = 1
|
|
28
|
+
PET_HOVER_LEAVE = 3
|
|
39
29
|
}
|
|
@@ -19,7 +19,6 @@ export var InputAction;
|
|
|
19
19
|
InputAction[InputAction["IA_ACTION_4"] = 11] = "IA_ACTION_4";
|
|
20
20
|
InputAction[InputAction["IA_ACTION_5"] = 12] = "IA_ACTION_5";
|
|
21
21
|
InputAction[InputAction["IA_ACTION_6"] = 13] = "IA_ACTION_6";
|
|
22
|
-
InputAction[InputAction["IA_MODIFIER"] = 14] = "IA_MODIFIER";
|
|
23
22
|
})(InputAction || (InputAction = {}));
|
|
24
23
|
/** PointerEventType is a kind of interaction that can be detected. */
|
|
25
24
|
/**
|
|
@@ -31,14 +30,4 @@ export var PointerEventType;
|
|
|
31
30
|
PointerEventType[PointerEventType["PET_DOWN"] = 1] = "PET_DOWN";
|
|
32
31
|
PointerEventType[PointerEventType["PET_HOVER_ENTER"] = 2] = "PET_HOVER_ENTER";
|
|
33
32
|
PointerEventType[PointerEventType["PET_HOVER_LEAVE"] = 3] = "PET_HOVER_LEAVE";
|
|
34
|
-
PointerEventType[PointerEventType["PET_PROXIMITY_ENTER"] = 4] = "PET_PROXIMITY_ENTER";
|
|
35
|
-
PointerEventType[PointerEventType["PET_PROXIMITY_LEAVE"] = 5] = "PET_PROXIMITY_LEAVE";
|
|
36
33
|
})(PointerEventType || (PointerEventType = {}));
|
|
37
|
-
/**
|
|
38
|
-
* @public
|
|
39
|
-
*/
|
|
40
|
-
export var InteractionType;
|
|
41
|
-
(function (InteractionType) {
|
|
42
|
-
InteractionType[InteractionType["CURSOR"] = 0] = "CURSOR";
|
|
43
|
-
InteractionType[InteractionType["PROXIMITY"] = 1] = "PROXIMITY";
|
|
44
|
-
})(InteractionType || (InteractionType = {}));
|
|
@@ -19,8 +19,6 @@ export interface PBInputModifier_StandardInput {
|
|
|
19
19
|
disableRun?: boolean | undefined;
|
|
20
20
|
disableJump?: boolean | undefined;
|
|
21
21
|
disableEmote?: boolean | undefined;
|
|
22
|
-
disableDoubleJump?: boolean | undefined;
|
|
23
|
-
disableGliding?: boolean | undefined;
|
|
24
22
|
}
|
|
25
23
|
/**
|
|
26
24
|
* @public
|