@dcl/ecs 7.20.4-22621752364.commit-d72981b → 7.20.4
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 -2
- package/dist/components/generated/global.gen.d.ts +0 -4
- package/dist/components/generated/global.gen.js +0 -2
- package/dist/components/generated/index.gen.d.ts +0 -8
- package/dist/components/generated/index.gen.js +0 -10
- 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/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 +0 -4
- package/dist/components/index.js +0 -3
- package/dist/components/types.d.ts +1 -2
- package/dist/engine/entity.js +4 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +0 -1
- 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 -2
- package/dist-cjs/components/generated/global.gen.d.ts +0 -4
- package/dist-cjs/components/generated/global.gen.js +1 -3
- package/dist-cjs/components/generated/index.gen.d.ts +0 -8
- package/dist-cjs/components/generated/index.gen.js +2 -14
- 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/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 +0 -4
- package/dist-cjs/components/index.js +1 -5
- package/dist-cjs/components/types.d.ts +1 -2
- package/dist-cjs/engine/entity.js +4 -2
- package/dist-cjs/index.d.ts +1 -2
- package/dist-cjs/index.js +1 -2
- 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/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 -29
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -93
- 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/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 -29
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -99
|
@@ -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,
|
|
@@ -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';
|
|
@@ -52,7 +50,6 @@ import { PBVirtualCamera } from './pb/decentraland/sdk/components/virtual_camera
|
|
|
52
50
|
import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibility_component.gen';
|
|
53
51
|
/** @public */ export declare const AssetLoad: LastWriteWinElementSetComponentDefinition<PBAssetLoad>;
|
|
54
52
|
/** @public */ export declare const AssetLoadLoadingState: GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>;
|
|
55
|
-
/** @public */ export declare const AudioAnalysis: LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>;
|
|
56
53
|
/** @public */ export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
57
54
|
/** @public */ export declare const AudioSource: LastWriteWinElementSetComponentDefinition<PBAudioSource>;
|
|
58
55
|
/** @public */ export declare const AudioStream: LastWriteWinElementSetComponentDefinition<PBAudioStream>;
|
|
@@ -60,7 +57,6 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
60
57
|
/** @public */ export declare const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAvatarBase>;
|
|
61
58
|
/** @public */ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
|
|
62
59
|
/** @public */ export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
63
|
-
/** @public */ export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
64
60
|
/** @public */ export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
65
61
|
/** @public */ export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
|
|
66
62
|
/** @public */ export declare const Billboard: LastWriteWinElementSetComponentDefinition<PBBillboard>;
|
|
@@ -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);
|
|
@@ -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';
|
|
@@ -58,7 +56,6 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
58
56
|
export * from './pb/decentraland/sdk/components/animator.gen';
|
|
59
57
|
export * from './pb/decentraland/sdk/components/asset_load.gen';
|
|
60
58
|
export * from './pb/decentraland/sdk/components/asset_load_loading_state.gen';
|
|
61
|
-
export * from './pb/decentraland/sdk/components/audio_analysis.gen';
|
|
62
59
|
export * from './pb/decentraland/sdk/components/audio_event.gen';
|
|
63
60
|
export * from './pb/decentraland/sdk/components/audio_source.gen';
|
|
64
61
|
export * from './pb/decentraland/sdk/components/audio_stream.gen';
|
|
@@ -66,7 +63,6 @@ export * from './pb/decentraland/sdk/components/avatar_attach.gen';
|
|
|
66
63
|
export * from './pb/decentraland/sdk/components/avatar_base.gen';
|
|
67
64
|
export * from './pb/decentraland/sdk/components/avatar_emote_command.gen';
|
|
68
65
|
export * from './pb/decentraland/sdk/components/avatar_equipped_data.gen';
|
|
69
|
-
export * from './pb/decentraland/sdk/components/avatar_locomotion_settings.gen';
|
|
70
66
|
export * from './pb/decentraland/sdk/components/avatar_modifier_area.gen';
|
|
71
67
|
export * from './pb/decentraland/sdk/components/avatar_shape.gen';
|
|
72
68
|
export * from './pb/decentraland/sdk/components/billboard.gen';
|
|
@@ -115,7 +111,6 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
115
111
|
/** @public */ export declare const Animator: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
116
112
|
/** @public */ export declare const AssetLoad: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
117
113
|
/** @public */ export declare const AssetLoadLoadingState: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
118
|
-
/** @public */ export declare const AudioAnalysis: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
119
114
|
/** @public */ export declare const AudioEvent: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
120
115
|
/** @public */ export declare const AudioSource: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
121
116
|
/** @public */ export declare const AudioStream: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -123,7 +118,6 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
123
118
|
/** @public */ export declare const AvatarBase: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
124
119
|
/** @public */ export declare const AvatarEmoteCommand: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
125
120
|
/** @public */ export declare const AvatarEquippedData: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
126
|
-
/** @public */ export declare const AvatarLocomotionSettings: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
127
121
|
/** @public */ export declare const AvatarModifierArea: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
128
122
|
/** @public */ export declare const AvatarShape: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
129
123
|
/** @public */ export declare const Billboard: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -172,7 +166,6 @@ export declare const componentDefinitionByName: {
|
|
|
172
166
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
173
167
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
174
168
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
175
|
-
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
176
169
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
177
170
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
178
171
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -180,7 +173,6 @@ export declare const componentDefinitionByName: {
|
|
|
180
173
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
181
174
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
182
175
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
183
|
-
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
184
176
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
185
177
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
186
178
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -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';
|
|
@@ -56,7 +54,6 @@ import { VisibilityComponentSchema } from './VisibilityComponent.gen';
|
|
|
56
54
|
export * from './pb/decentraland/sdk/components/animator.gen';
|
|
57
55
|
export * from './pb/decentraland/sdk/components/asset_load.gen';
|
|
58
56
|
export * from './pb/decentraland/sdk/components/asset_load_loading_state.gen';
|
|
59
|
-
export * from './pb/decentraland/sdk/components/audio_analysis.gen';
|
|
60
57
|
export * from './pb/decentraland/sdk/components/audio_event.gen';
|
|
61
58
|
export * from './pb/decentraland/sdk/components/audio_source.gen';
|
|
62
59
|
export * from './pb/decentraland/sdk/components/audio_stream.gen';
|
|
@@ -64,7 +61,6 @@ export * from './pb/decentraland/sdk/components/avatar_attach.gen';
|
|
|
64
61
|
export * from './pb/decentraland/sdk/components/avatar_base.gen';
|
|
65
62
|
export * from './pb/decentraland/sdk/components/avatar_emote_command.gen';
|
|
66
63
|
export * from './pb/decentraland/sdk/components/avatar_equipped_data.gen';
|
|
67
|
-
export * from './pb/decentraland/sdk/components/avatar_locomotion_settings.gen';
|
|
68
64
|
export * from './pb/decentraland/sdk/components/avatar_modifier_area.gen';
|
|
69
65
|
export * from './pb/decentraland/sdk/components/avatar_shape.gen';
|
|
70
66
|
export * from './pb/decentraland/sdk/components/billboard.gen';
|
|
@@ -116,8 +112,6 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
|
|
|
116
112
|
timestampFunction: (t) => t.timestamp,
|
|
117
113
|
maxElements: 100
|
|
118
114
|
});
|
|
119
|
-
/** @public */ export const AudioAnalysis = engine =>
|
|
120
|
-
/* @__PURE__ */ engine.defineComponentFromSchema("core::AudioAnalysis", AudioAnalysisSchema);
|
|
121
115
|
/** @public */ export const AudioEvent = (engine) => /* @__PURE__ */ engine.defineValueSetComponentFromSchema("core::AudioEvent", AudioEventSchema, {
|
|
122
116
|
timestampFunction: (t) => t.timestamp,
|
|
123
117
|
maxElements: 100
|
|
@@ -136,8 +130,6 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
|
|
|
136
130
|
});
|
|
137
131
|
/** @public */ export const AvatarEquippedData = engine =>
|
|
138
132
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarEquippedData", AvatarEquippedDataSchema);
|
|
139
|
-
/** @public */ export const AvatarLocomotionSettings = engine =>
|
|
140
|
-
/* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarLocomotionSettings", AvatarLocomotionSettingsSchema);
|
|
141
133
|
/** @public */ export const AvatarModifierArea = engine =>
|
|
142
134
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarModifierArea", AvatarModifierAreaSchema);
|
|
143
135
|
/** @public */ export const AvatarShape = engine =>
|
|
@@ -235,7 +227,6 @@ export const componentDefinitionByName = /* @__PURE__ */ {
|
|
|
235
227
|
"core::Animator": Animator,
|
|
236
228
|
"core::AssetLoad": AssetLoad,
|
|
237
229
|
"core::AssetLoadLoadingState": AssetLoadLoadingState,
|
|
238
|
-
"core::AudioAnalysis": AudioAnalysis,
|
|
239
230
|
"core::AudioEvent": AudioEvent,
|
|
240
231
|
"core::AudioSource": AudioSource,
|
|
241
232
|
"core::AudioStream": AudioStream,
|
|
@@ -243,7 +234,6 @@ export const componentDefinitionByName = /* @__PURE__ */ {
|
|
|
243
234
|
"core::AvatarBase": AvatarBase,
|
|
244
235
|
"core::AvatarEmoteCommand": AvatarEmoteCommand,
|
|
245
236
|
"core::AvatarEquippedData": AvatarEquippedData,
|
|
246
|
-
"core::AvatarLocomotionSettings": AvatarLocomotionSettings,
|
|
247
237
|
"core::AvatarModifierArea": AvatarModifierArea,
|
|
248
238
|
"core::AvatarShape": AvatarShape,
|
|
249
239
|
"core::Billboard": Billboard,
|
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 = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { InputAction,
|
|
2
|
+
import { InputAction, PointerEventType } from "./common/input_action.gen";
|
|
3
3
|
/**
|
|
4
4
|
* PointerEvents adds configurable pointer-based interactions to the attached Entity.
|
|
5
5
|
*
|
|
@@ -61,8 +61,6 @@ export interface PBPointerEvents_Info {
|
|
|
61
61
|
showHighlight?: boolean | undefined;
|
|
62
62
|
/** range of interaction from the avatar's position (default 0) */
|
|
63
63
|
maxPlayerDistance?: number | undefined;
|
|
64
|
-
/** resolution order when multiple events overlap, higher wins (default 0) */
|
|
65
|
-
priority?: number | undefined;
|
|
66
64
|
}
|
|
67
65
|
/**
|
|
68
66
|
* @public
|
|
@@ -72,8 +70,6 @@ export interface PBPointerEvents_Entry {
|
|
|
72
70
|
eventType: PointerEventType;
|
|
73
71
|
/** additional configuration for this detection */
|
|
74
72
|
eventInfo: PBPointerEvents_Info | undefined;
|
|
75
|
-
/** the type of interaction source (default 0 == CURSOR) */
|
|
76
|
-
interactionType?: InteractionType | undefined;
|
|
77
73
|
}
|
|
78
74
|
/**
|
|
79
75
|
* @public
|
|
@@ -47,7 +47,6 @@ function createBasePBPointerEvents_Info() {
|
|
|
47
47
|
showFeedback: undefined,
|
|
48
48
|
showHighlight: undefined,
|
|
49
49
|
maxPlayerDistance: undefined,
|
|
50
|
-
priority: undefined,
|
|
51
50
|
};
|
|
52
51
|
}
|
|
53
52
|
/**
|
|
@@ -74,9 +73,6 @@ export var PBPointerEvents_Info;
|
|
|
74
73
|
if (message.maxPlayerDistance !== undefined) {
|
|
75
74
|
writer.uint32(53).float(message.maxPlayerDistance);
|
|
76
75
|
}
|
|
77
|
-
if (message.priority !== undefined) {
|
|
78
|
-
writer.uint32(56).uint32(message.priority);
|
|
79
|
-
}
|
|
80
76
|
return writer;
|
|
81
77
|
}
|
|
82
78
|
PBPointerEvents_Info.encode = encode;
|
|
@@ -123,12 +119,6 @@ export var PBPointerEvents_Info;
|
|
|
123
119
|
}
|
|
124
120
|
message.maxPlayerDistance = reader.float();
|
|
125
121
|
continue;
|
|
126
|
-
case 7:
|
|
127
|
-
if (tag !== 56) {
|
|
128
|
-
break;
|
|
129
|
-
}
|
|
130
|
-
message.priority = reader.uint32();
|
|
131
|
-
continue;
|
|
132
122
|
}
|
|
133
123
|
if ((tag & 7) === 4 || tag === 0) {
|
|
134
124
|
break;
|
|
@@ -140,7 +130,7 @@ export var PBPointerEvents_Info;
|
|
|
140
130
|
PBPointerEvents_Info.decode = decode;
|
|
141
131
|
})(PBPointerEvents_Info || (PBPointerEvents_Info = {}));
|
|
142
132
|
function createBasePBPointerEvents_Entry() {
|
|
143
|
-
return { eventType: 0, eventInfo: undefined
|
|
133
|
+
return { eventType: 0, eventInfo: undefined };
|
|
144
134
|
}
|
|
145
135
|
/**
|
|
146
136
|
* @public
|
|
@@ -154,9 +144,6 @@ export var PBPointerEvents_Entry;
|
|
|
154
144
|
if (message.eventInfo !== undefined) {
|
|
155
145
|
PBPointerEvents_Info.encode(message.eventInfo, writer.uint32(18).fork()).ldelim();
|
|
156
146
|
}
|
|
157
|
-
if (message.interactionType !== undefined) {
|
|
158
|
-
writer.uint32(24).int32(message.interactionType);
|
|
159
|
-
}
|
|
160
147
|
return writer;
|
|
161
148
|
}
|
|
162
149
|
PBPointerEvents_Entry.encode = encode;
|
|
@@ -179,12 +166,6 @@ export var PBPointerEvents_Entry;
|
|
|
179
166
|
}
|
|
180
167
|
message.eventInfo = PBPointerEvents_Info.decode(reader, reader.uint32());
|
|
181
168
|
continue;
|
|
182
|
-
case 3:
|
|
183
|
-
if (tag !== 24) {
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
186
|
-
message.interactionType = reader.int32();
|
|
187
|
-
continue;
|
|
188
169
|
}
|
|
189
170
|
if ((tag & 7) === 4 || tag === 0) {
|
|
190
171
|
break;
|