@dcl/ecs 7.21.1-22904194370.commit-34c867c → 7.21.1-22918726402.commit-ee210ee

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.
Files changed (49) hide show
  1. package/dist/components/extended/Tween.d.ts +48 -1
  2. package/dist/components/extended/Tween.js +66 -0
  3. package/dist/components/generated/PhysicsCombinedForce.gen.d.ts +1 -0
  4. package/dist/components/generated/PhysicsCombinedForce.gen.js +25 -0
  5. package/dist/components/generated/PhysicsCombinedImpulse.gen.d.ts +1 -0
  6. package/dist/components/generated/PhysicsCombinedImpulse.gen.js +25 -0
  7. package/dist/components/generated/component-names.gen.js +2 -0
  8. package/dist/components/generated/global.gen.d.ts +4 -0
  9. package/dist/components/generated/global.gen.js +2 -0
  10. package/dist/components/generated/index.gen.d.ts +8 -0
  11. package/dist/components/generated/index.gen.js +10 -0
  12. package/dist/components/generated/pb/decentraland/sdk/components/input_modifier.gen.d.ts +2 -0
  13. package/dist/components/generated/pb/decentraland/sdk/components/input_modifier.gen.js +20 -0
  14. package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.d.ts +25 -0
  15. package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.js +42 -0
  16. package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.d.ts +28 -0
  17. package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.js +51 -0
  18. package/dist/components/generated/pb/decentraland/sdk/components/tween.gen.d.ts +21 -0
  19. package/dist/components/generated/pb/decentraland/sdk/components/tween.gen.js +99 -0
  20. package/dist/components/types.d.ts +1 -1
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.js +1 -0
  23. package/dist/runtime/globals.d.ts +10 -1
  24. package/dist/runtime/globals.js +2 -2
  25. package/dist-cjs/components/extended/Tween.d.ts +48 -1
  26. package/dist-cjs/components/extended/Tween.js +66 -0
  27. package/dist-cjs/components/generated/PhysicsCombinedForce.gen.d.ts +1 -0
  28. package/dist-cjs/components/generated/PhysicsCombinedForce.gen.js +28 -0
  29. package/dist-cjs/components/generated/PhysicsCombinedImpulse.gen.d.ts +1 -0
  30. package/dist-cjs/components/generated/PhysicsCombinedImpulse.gen.js +28 -0
  31. package/dist-cjs/components/generated/component-names.gen.js +2 -0
  32. package/dist-cjs/components/generated/global.gen.d.ts +4 -0
  33. package/dist-cjs/components/generated/global.gen.js +3 -1
  34. package/dist-cjs/components/generated/index.gen.d.ts +8 -0
  35. package/dist-cjs/components/generated/index.gen.js +14 -2
  36. package/dist-cjs/components/generated/pb/decentraland/sdk/components/input_modifier.gen.d.ts +2 -0
  37. package/dist-cjs/components/generated/pb/decentraland/sdk/components/input_modifier.gen.js +20 -0
  38. package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.d.ts +25 -0
  39. package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.js +48 -0
  40. package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.d.ts +28 -0
  41. package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.js +57 -0
  42. package/dist-cjs/components/generated/pb/decentraland/sdk/components/tween.gen.d.ts +21 -0
  43. package/dist-cjs/components/generated/pb/decentraland/sdk/components/tween.gen.js +100 -1
  44. package/dist-cjs/components/types.d.ts +1 -1
  45. package/dist-cjs/index.d.ts +1 -0
  46. package/dist-cjs/index.js +1 -0
  47. package/dist-cjs/runtime/globals.d.ts +10 -1
  48. package/dist-cjs/runtime/globals.js +2 -2
  49. package/package.json +2 -2
@@ -1,6 +1,38 @@
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
+ }
4
36
  /**
5
37
  * @public
6
38
  */
@@ -33,13 +65,18 @@ export interface TweenHelper {
33
65
  * @returns a texture-move-continuous mode tween
34
66
  */
35
67
  TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
68
+ /**
69
+ * @returns a move-rotate-scale mode tween
70
+ * @param params - partial transform (at least one of position, rotation, scale); omit axes you don't need
71
+ */
72
+ MoveRotateScale: (params: MoveRotateScaleModeParams) => PBTween['mode'];
36
73
  }
37
74
  /**
38
75
  * @public
39
76
  */
40
77
  export interface TweenComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTween> {
41
78
  /**
42
- * Texture helpers with constructor
79
+ * Helpers with constructor
43
80
  */
44
81
  Mode: TweenHelper;
45
82
  /**
@@ -118,5 +155,15 @@ export interface TweenComponentDefinitionExtended extends LastWriteWinElementSet
118
155
  * @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
119
156
  */
120
157
  setTextureMoveContinuous(entity: Entity, direction: Vector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
158
+ /**
159
+ * @public
160
+ *
161
+ * Creates or replaces a move-rotate-scale tween component that simultaneously animates
162
+ * an entity's position, rotation, and/or scale from start to end. Provide only the
163
+ * properties you need (at least one of position, rotation, or scale).
164
+ * @param entity - entity to apply the tween to
165
+ * @param params - object with optional position, rotation, scale (each with start/end), duration, and optional easingFunction
166
+ */
167
+ setMoveRotateScale(entity: Entity, params: SetMoveRotateScaleParams): void;
121
168
  }
122
169
  export declare function defineTweenComponent(engine: Pick<IEngine, 'defineComponentFromSchema'>): TweenComponentDefinitionExtended;
@@ -1,4 +1,33 @@
1
1
  import { Tween } from '../generated/index.gen';
2
+ function assertDuration(duration, apiName) {
3
+ if (!Number.isFinite(duration) || duration < 0) {
4
+ throw new Error(`${apiName}: duration must be a non-negative finite number`);
5
+ }
6
+ }
7
+ /** Shared validation for params that have optional position/rotation/scale with start & end. */
8
+ function assertMoveRotateScaleAxesStartEnd(params, apiName) {
9
+ if (!params.position && !params.rotation && !params.scale) {
10
+ throw new Error(`${apiName}: at least one of position, rotation, or scale must be provided`);
11
+ }
12
+ if (params.position) {
13
+ const pos = params.position;
14
+ if (!pos.start || !pos.end) {
15
+ throw new Error(`${apiName}: position must have both start and end`);
16
+ }
17
+ }
18
+ if (params.rotation) {
19
+ const rot = params.rotation;
20
+ if (!rot.start || !rot.end) {
21
+ throw new Error(`${apiName}: rotation must have both start and end`);
22
+ }
23
+ }
24
+ if (params.scale) {
25
+ const scl = params.scale;
26
+ if (!scl.start || !scl.end) {
27
+ throw new Error(`${apiName}: scale must have both start and end`);
28
+ }
29
+ }
30
+ }
2
31
  const TweenHelper = {
3
32
  Move(move) {
4
33
  return {
@@ -41,6 +70,21 @@ const TweenHelper = {
41
70
  $case: 'textureMoveContinuous',
42
71
  textureMoveContinuous
43
72
  };
73
+ },
74
+ MoveRotateScale(params) {
75
+ assertMoveRotateScaleAxesStartEnd(params, 'Tween.Mode.MoveRotateScale');
76
+ const moveRotateScale = {
77
+ positionStart: params.position ? params.position.start : undefined,
78
+ positionEnd: params.position ? params.position.end : undefined,
79
+ rotationStart: params.rotation ? params.rotation.start : undefined,
80
+ rotationEnd: params.rotation ? params.rotation.end : undefined,
81
+ scaleStart: params.scale ? params.scale.start : undefined,
82
+ scaleEnd: params.scale ? params.scale.end : undefined
83
+ };
84
+ return {
85
+ $case: 'moveRotateScale',
86
+ moveRotateScale
87
+ };
44
88
  }
45
89
  };
46
90
  export function defineTweenComponent(engine) {
@@ -147,6 +191,28 @@ export function defineTweenComponent(engine) {
147
191
  easingFunction: 0 /* EasingFunction.EF_LINEAR */,
148
192
  playing: true
149
193
  });
194
+ },
195
+ setMoveRotateScale(entity, params) {
196
+ assertMoveRotateScaleAxesStartEnd(params, 'setMoveRotateScale');
197
+ assertDuration(params.duration, 'setMoveRotateScale');
198
+ const { position, rotation, scale, duration, easingFunction = 0 /* EasingFunction.EF_LINEAR */ } = params;
199
+ const moveRotateScale = {
200
+ positionStart: position ? position.start : undefined,
201
+ positionEnd: position ? position.end : undefined,
202
+ rotationStart: rotation ? rotation.start : undefined,
203
+ rotationEnd: rotation ? rotation.end : undefined,
204
+ scaleStart: scale ? scale.start : undefined,
205
+ scaleEnd: scale ? scale.end : undefined
206
+ };
207
+ theComponent.createOrReplace(entity, {
208
+ mode: {
209
+ $case: 'moveRotateScale',
210
+ moveRotateScale
211
+ },
212
+ duration,
213
+ easingFunction,
214
+ playing: true
215
+ });
150
216
  }
151
217
  };
152
218
  }
@@ -0,0 +1,25 @@
1
+ import { PBPhysicsCombinedForce } from './pb/decentraland/sdk/components/physics_combined_force.gen';
2
+ /**
3
+ * @internal
4
+ */
5
+ export const PhysicsCombinedForceSchema = {
6
+ COMPONENT_ID: 1216,
7
+ serialize(value, builder) {
8
+ const writer = PBPhysicsCombinedForce.encode(value);
9
+ const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
+ builder.writeBuffer(buffer, false);
11
+ },
12
+ deserialize(reader) {
13
+ return PBPhysicsCombinedForce.decode(reader.buffer(), reader.remainingBytes());
14
+ },
15
+ create() {
16
+ // TODO: this is a hack.
17
+ return PBPhysicsCombinedForce.decode(new Uint8Array());
18
+ },
19
+ jsonSchema: {
20
+ type: "object",
21
+ properties: {},
22
+ serializationType: "protocol-buffer",
23
+ protocolBuffer: "PBPhysicsCombinedForce"
24
+ }
25
+ };
@@ -0,0 +1,25 @@
1
+ import { PBPhysicsCombinedImpulse } from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
2
+ /**
3
+ * @internal
4
+ */
5
+ export const PhysicsCombinedImpulseSchema = {
6
+ COMPONENT_ID: 1215,
7
+ serialize(value, builder) {
8
+ const writer = PBPhysicsCombinedImpulse.encode(value);
9
+ const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
+ builder.writeBuffer(buffer, false);
11
+ },
12
+ deserialize(reader) {
13
+ return PBPhysicsCombinedImpulse.decode(reader.buffer(), reader.remainingBytes());
14
+ },
15
+ create() {
16
+ // TODO: this is a hack.
17
+ return PBPhysicsCombinedImpulse.decode(new Uint8Array());
18
+ },
19
+ jsonSchema: {
20
+ type: "object",
21
+ properties: {},
22
+ serializationType: "protocol-buffer",
23
+ protocolBuffer: "PBPhysicsCombinedImpulse"
24
+ }
25
+ };
@@ -30,6 +30,8 @@ export const coreComponentMappings = {
30
30
  "core::MeshCollider": 1019,
31
31
  "core::MeshRenderer": 1018,
32
32
  "core::NftShape": 1040,
33
+ "core::PhysicsCombinedForce": 1216,
34
+ "core::PhysicsCombinedImpulse": 1215,
33
35
  "core::PlayerIdentityData": 1089,
34
36
  "core::PointerEvents": 1062,
35
37
  "core::PointerEventsResult": 1063,
@@ -22,6 +22,8 @@ import { PBInputModifier } from './pb/decentraland/sdk/components/input_modifier
22
22
  import { PBLightSource } from './pb/decentraland/sdk/components/light_source.gen';
23
23
  import { PBMainCamera } from './pb/decentraland/sdk/components/main_camera.gen';
24
24
  import { PBNftShape } from './pb/decentraland/sdk/components/nft_shape.gen';
25
+ import { PBPhysicsCombinedForce } from './pb/decentraland/sdk/components/physics_combined_force.gen';
26
+ import { PBPhysicsCombinedImpulse } from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
25
27
  import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_identity_data.gen';
26
28
  import { PBPointerEvents } from './pb/decentraland/sdk/components/pointer_events.gen';
27
29
  import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_events_result.gen';
@@ -70,6 +72,8 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
70
72
  /** @public */ export declare const LightSource: LastWriteWinElementSetComponentDefinition<PBLightSource>;
71
73
  /** @public */ export declare const MainCamera: LastWriteWinElementSetComponentDefinition<PBMainCamera>;
72
74
  /** @public */ export declare const NftShape: LastWriteWinElementSetComponentDefinition<PBNftShape>;
75
+ /** @public */ export declare const PhysicsCombinedForce: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>;
76
+ /** @public */ export declare const PhysicsCombinedImpulse: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>;
73
77
  /** @public */ export declare const PlayerIdentityData: LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>;
74
78
  /** @public */ export declare const PointerEvents: LastWriteWinElementSetComponentDefinition<PBPointerEvents>;
75
79
  /** @public */ export declare const PointerEventsResult: GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>;
@@ -23,6 +23,8 @@ export * from './index.gen';
23
23
  /** @public */ export const LightSource = /* @__PURE__ */ components.LightSource(engine);
24
24
  /** @public */ export const MainCamera = /* @__PURE__ */ components.MainCamera(engine);
25
25
  /** @public */ export const NftShape = /* @__PURE__ */ components.NftShape(engine);
26
+ /** @public */ export const PhysicsCombinedForce = /* @__PURE__ */ components.PhysicsCombinedForce(engine);
27
+ /** @public */ export const PhysicsCombinedImpulse = /* @__PURE__ */ components.PhysicsCombinedImpulse(engine);
26
28
  /** @public */ export const PlayerIdentityData = /* @__PURE__ */ components.PlayerIdentityData(engine);
27
29
  /** @public */ export const PointerEvents = /* @__PURE__ */ components.PointerEvents(engine);
28
30
  /** @public */ export const PointerEventsResult = /* @__PURE__ */ components.PointerEventsResult(engine);
@@ -26,6 +26,8 @@ import { PBMaterial } from './pb/decentraland/sdk/components/material.gen';
26
26
  import { PBMeshCollider } from './pb/decentraland/sdk/components/mesh_collider.gen';
27
27
  import { PBMeshRenderer } from './pb/decentraland/sdk/components/mesh_renderer.gen';
28
28
  import { PBNftShape } from './pb/decentraland/sdk/components/nft_shape.gen';
29
+ import { PBPhysicsCombinedForce } from './pb/decentraland/sdk/components/physics_combined_force.gen';
30
+ import { PBPhysicsCombinedImpulse } from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
29
31
  import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_identity_data.gen';
30
32
  import { PBPointerEvents } from './pb/decentraland/sdk/components/pointer_events.gen';
31
33
  import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_events_result.gen';
@@ -79,6 +81,8 @@ export * from './pb/decentraland/sdk/components/material.gen';
79
81
  export * from './pb/decentraland/sdk/components/mesh_collider.gen';
80
82
  export * from './pb/decentraland/sdk/components/mesh_renderer.gen';
81
83
  export * from './pb/decentraland/sdk/components/nft_shape.gen';
84
+ export * from './pb/decentraland/sdk/components/physics_combined_force.gen';
85
+ export * from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
82
86
  export * from './pb/decentraland/sdk/components/player_identity_data.gen';
83
87
  export * from './pb/decentraland/sdk/components/pointer_events.gen';
84
88
  export * from './pb/decentraland/sdk/components/pointer_events_result.gen';
@@ -134,6 +138,8 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
134
138
  /** @public */ export declare const MeshCollider: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
135
139
  /** @public */ export declare const MeshRenderer: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
136
140
  /** @public */ export declare const NftShape: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
141
+ /** @public */ export declare const PhysicsCombinedForce: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
142
+ /** @public */ export declare const PhysicsCombinedImpulse: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
137
143
  /** @public */ export declare const PlayerIdentityData: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
138
144
  /** @public */ export declare const PointerEvents: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
139
145
  /** @public */ export declare const PointerEventsResult: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
@@ -189,6 +195,8 @@ export declare const componentDefinitionByName: {
189
195
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
190
196
  "core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
191
197
  "core::NftShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
198
+ "core::PhysicsCombinedForce": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
199
+ "core::PhysicsCombinedImpulse": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
192
200
  "core::PlayerIdentityData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
193
201
  "core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
194
202
  "core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
@@ -24,6 +24,8 @@ import { MaterialSchema } from './Material.gen';
24
24
  import { MeshColliderSchema } from './MeshCollider.gen';
25
25
  import { MeshRendererSchema } from './MeshRenderer.gen';
26
26
  import { NftShapeSchema } from './NftShape.gen';
27
+ import { PhysicsCombinedForceSchema } from './PhysicsCombinedForce.gen';
28
+ import { PhysicsCombinedImpulseSchema } from './PhysicsCombinedImpulse.gen';
27
29
  import { PlayerIdentityDataSchema } from './PlayerIdentityData.gen';
28
30
  import { PointerEventsSchema } from './PointerEvents.gen';
29
31
  import { PointerEventsResultSchema } from './PointerEventsResult.gen';
@@ -77,6 +79,8 @@ export * from './pb/decentraland/sdk/components/material.gen';
77
79
  export * from './pb/decentraland/sdk/components/mesh_collider.gen';
78
80
  export * from './pb/decentraland/sdk/components/mesh_renderer.gen';
79
81
  export * from './pb/decentraland/sdk/components/nft_shape.gen';
82
+ export * from './pb/decentraland/sdk/components/physics_combined_force.gen';
83
+ export * from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
80
84
  export * from './pb/decentraland/sdk/components/player_identity_data.gen';
81
85
  export * from './pb/decentraland/sdk/components/pointer_events.gen';
82
86
  export * from './pb/decentraland/sdk/components/pointer_events_result.gen';
@@ -162,6 +166,10 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
162
166
  /* @__PURE__ */ engine.defineComponentFromSchema("core::MeshRenderer", MeshRendererSchema);
163
167
  /** @public */ export const NftShape = engine =>
164
168
  /* @__PURE__ */ engine.defineComponentFromSchema("core::NftShape", NftShapeSchema);
169
+ /** @public */ export const PhysicsCombinedForce = engine =>
170
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::PhysicsCombinedForce", PhysicsCombinedForceSchema);
171
+ /** @public */ export const PhysicsCombinedImpulse = engine =>
172
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::PhysicsCombinedImpulse", PhysicsCombinedImpulseSchema);
165
173
  /** @public */ export const PlayerIdentityData = engine =>
166
174
  /* @__PURE__ */ engine.defineComponentFromSchema("core::PlayerIdentityData", PlayerIdentityDataSchema);
167
175
  /** @public */ export const PointerEvents = engine =>
@@ -250,6 +258,8 @@ export const componentDefinitionByName = /* @__PURE__ */ {
250
258
  "core::MeshCollider": MeshCollider,
251
259
  "core::MeshRenderer": MeshRenderer,
252
260
  "core::NftShape": NftShape,
261
+ "core::PhysicsCombinedForce": PhysicsCombinedForce,
262
+ "core::PhysicsCombinedImpulse": PhysicsCombinedImpulse,
253
263
  "core::PlayerIdentityData": PlayerIdentityData,
254
264
  "core::PointerEvents": PointerEvents,
255
265
  "core::PointerEventsResult": PointerEventsResult,
@@ -19,6 +19,8 @@ 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;
22
24
  }
23
25
  /**
24
26
  * @public
@@ -49,6 +49,8 @@ function createBasePBInputModifier_StandardInput() {
49
49
  disableRun: undefined,
50
50
  disableJump: undefined,
51
51
  disableEmote: undefined,
52
+ disableDoubleJump: undefined,
53
+ disableGliding: undefined,
52
54
  };
53
55
  }
54
56
  /**
@@ -75,6 +77,12 @@ export var PBInputModifier_StandardInput;
75
77
  if (message.disableEmote !== undefined) {
76
78
  writer.uint32(48).bool(message.disableEmote);
77
79
  }
80
+ if (message.disableDoubleJump !== undefined) {
81
+ writer.uint32(56).bool(message.disableDoubleJump);
82
+ }
83
+ if (message.disableGliding !== undefined) {
84
+ writer.uint32(64).bool(message.disableGliding);
85
+ }
78
86
  return writer;
79
87
  }
80
88
  PBInputModifier_StandardInput.encode = encode;
@@ -121,6 +129,18 @@ export var PBInputModifier_StandardInput;
121
129
  }
122
130
  message.disableEmote = reader.bool();
123
131
  continue;
132
+ case 7:
133
+ if (tag !== 56) {
134
+ break;
135
+ }
136
+ message.disableDoubleJump = reader.bool();
137
+ continue;
138
+ case 8:
139
+ if (tag !== 64) {
140
+ break;
141
+ }
142
+ message.disableGliding = reader.bool();
143
+ continue;
124
144
  }
125
145
  if ((tag & 7) === 4 || tag === 0) {
126
146
  break;
@@ -0,0 +1,25 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ import { Vector3 } from "../../common/vectors.gen";
3
+ /**
4
+ * This component applies a continuous physics force.
5
+ *
6
+ * @remarks Low-level component. Use Physics.applyForceToPlayer()/.removeForceToPlayer() instead.
7
+ * Direct manipulation will conflict with the force accumulation registry.
8
+ * Summary component: stores the accumulated result of all active forces registered by the scene in the current frame.
9
+ *
10
+ * State-like component: the force is applied every physics tick while the component is present on the entity.
11
+ */
12
+ /**
13
+ * @public
14
+ */
15
+ export interface PBPhysicsCombinedForce {
16
+ /** Includes force direction and magnitude */
17
+ vector: Vector3 | undefined;
18
+ }
19
+ /**
20
+ * @public
21
+ */
22
+ export declare namespace PBPhysicsCombinedForce {
23
+ function encode(message: PBPhysicsCombinedForce, writer?: _m0.Writer): _m0.Writer;
24
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBPhysicsCombinedForce;
25
+ }
@@ -0,0 +1,42 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+ import { Vector3 } from "../../common/vectors.gen";
4
+ const protobufPackageSarasa = "decentraland.sdk.components";
5
+ function createBasePBPhysicsCombinedForce() {
6
+ return { vector: undefined };
7
+ }
8
+ /**
9
+ * @public
10
+ */
11
+ export var PBPhysicsCombinedForce;
12
+ (function (PBPhysicsCombinedForce) {
13
+ function encode(message, writer = _m0.Writer.create()) {
14
+ if (message.vector !== undefined) {
15
+ Vector3.encode(message.vector, writer.uint32(10).fork()).ldelim();
16
+ }
17
+ return writer;
18
+ }
19
+ PBPhysicsCombinedForce.encode = encode;
20
+ function decode(input, length) {
21
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
22
+ let end = length === undefined ? reader.len : reader.pos + length;
23
+ const message = createBasePBPhysicsCombinedForce();
24
+ while (reader.pos < end) {
25
+ const tag = reader.uint32();
26
+ switch (tag >>> 3) {
27
+ case 1:
28
+ if (tag !== 10) {
29
+ break;
30
+ }
31
+ message.vector = Vector3.decode(reader, reader.uint32());
32
+ continue;
33
+ }
34
+ if ((tag & 7) === 4 || tag === 0) {
35
+ break;
36
+ }
37
+ reader.skipType(tag & 7);
38
+ }
39
+ return message;
40
+ }
41
+ PBPhysicsCombinedForce.decode = decode;
42
+ })(PBPhysicsCombinedForce || (PBPhysicsCombinedForce = {}));
@@ -0,0 +1,28 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ import { Vector3 } from "../../common/vectors.gen";
3
+ /**
4
+ * This component applies a one-shot physics summary impulse.
5
+ *
6
+ * @remarks Low-level component. Use Physics.applyImpulseToPlayer() instead.
7
+ * Direct manipulation will conflict with the force accumulation registry.
8
+ * Summary component: stores the accumulated result of all impulses registered by the scene in the current frame.
9
+ *
10
+ * Event-like component: each new impulse must increment the eventID to ensure delivery via CRDT, even if the direction is identical to the previous one.
11
+ * Renderer processes impulse with the unique ID only once. Increase eventID of the component to apply another impulse.
12
+ */
13
+ /**
14
+ * @public
15
+ */
16
+ export interface PBPhysicsCombinedImpulse {
17
+ /** Includes impulse direction and magnitude */
18
+ vector: Vector3 | undefined;
19
+ /** Monotonic counter to distinguish different impulses. */
20
+ eventId: number;
21
+ }
22
+ /**
23
+ * @public
24
+ */
25
+ export declare namespace PBPhysicsCombinedImpulse {
26
+ function encode(message: PBPhysicsCombinedImpulse, writer?: _m0.Writer): _m0.Writer;
27
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBPhysicsCombinedImpulse;
28
+ }
@@ -0,0 +1,51 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+ import { Vector3 } from "../../common/vectors.gen";
4
+ const protobufPackageSarasa = "decentraland.sdk.components";
5
+ function createBasePBPhysicsCombinedImpulse() {
6
+ return { vector: undefined, eventId: 0 };
7
+ }
8
+ /**
9
+ * @public
10
+ */
11
+ export var PBPhysicsCombinedImpulse;
12
+ (function (PBPhysicsCombinedImpulse) {
13
+ function encode(message, writer = _m0.Writer.create()) {
14
+ if (message.vector !== undefined) {
15
+ Vector3.encode(message.vector, writer.uint32(10).fork()).ldelim();
16
+ }
17
+ if (message.eventId !== 0) {
18
+ writer.uint32(16).uint32(message.eventId);
19
+ }
20
+ return writer;
21
+ }
22
+ PBPhysicsCombinedImpulse.encode = encode;
23
+ function decode(input, length) {
24
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
25
+ let end = length === undefined ? reader.len : reader.pos + length;
26
+ const message = createBasePBPhysicsCombinedImpulse();
27
+ while (reader.pos < end) {
28
+ const tag = reader.uint32();
29
+ switch (tag >>> 3) {
30
+ case 1:
31
+ if (tag !== 10) {
32
+ break;
33
+ }
34
+ message.vector = Vector3.decode(reader, reader.uint32());
35
+ continue;
36
+ case 2:
37
+ if (tag !== 16) {
38
+ break;
39
+ }
40
+ message.eventId = reader.uint32();
41
+ continue;
42
+ }
43
+ if ((tag & 7) === 4 || tag === 0) {
44
+ break;
45
+ }
46
+ reader.skipType(tag & 7);
47
+ }
48
+ return message;
49
+ }
50
+ PBPhysicsCombinedImpulse.decode = decode;
51
+ })(PBPhysicsCombinedImpulse || (PBPhysicsCombinedImpulse = {}));
@@ -77,6 +77,9 @@ export interface PBTween {
77
77
  } | {
78
78
  $case: "textureMoveContinuous";
79
79
  textureMoveContinuous: TextureMoveContinuous;
80
+ } | {
81
+ $case: "moveRotateScale";
82
+ moveRotateScale: MoveRotateScale;
80
83
  } | undefined;
81
84
  /** default true (pause or running) */
82
85
  playing?: boolean | undefined;
@@ -105,6 +108,17 @@ export interface Scale {
105
108
  start: Vector3 | undefined;
106
109
  end: Vector3 | undefined;
107
110
  }
111
+ /**
112
+ * @public
113
+ */
114
+ export interface MoveRotateScale {
115
+ positionStart: Vector3 | undefined;
116
+ positionEnd: Vector3 | undefined;
117
+ rotationStart: Quaternion | undefined;
118
+ rotationEnd: Quaternion | undefined;
119
+ scaleStart: Vector3 | undefined;
120
+ scaleEnd: Vector3 | undefined;
121
+ }
108
122
  /**
109
123
  * This tween mode allows to move the texture of a PbrMaterial or UnlitMaterial.
110
124
  * You can also specify the movement type (offset or tiling)
@@ -169,6 +183,13 @@ export declare namespace Scale {
169
183
  function encode(message: Scale, writer?: _m0.Writer): _m0.Writer;
170
184
  function decode(input: _m0.Reader | Uint8Array, length?: number): Scale;
171
185
  }
186
+ /**
187
+ * @public
188
+ */
189
+ export declare namespace MoveRotateScale {
190
+ function encode(message: MoveRotateScale, writer?: _m0.Writer): _m0.Writer;
191
+ function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScale;
192
+ }
172
193
  /**
173
194
  * @public
174
195
  */