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

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 (89) hide show
  1. package/dist/components/extended/Tween.d.ts +1 -48
  2. package/dist/components/extended/Tween.js +0 -66
  3. package/dist/components/generated/component-names.gen.js +0 -2
  4. package/dist/components/generated/global.gen.d.ts +0 -4
  5. package/dist/components/generated/global.gen.js +0 -2
  6. package/dist/components/generated/index.gen.d.ts +0 -8
  7. package/dist/components/generated/index.gen.js +0 -10
  8. package/dist/components/generated/pb/decentraland/sdk/components/input_modifier.gen.d.ts +0 -2
  9. package/dist/components/generated/pb/decentraland/sdk/components/input_modifier.gen.js +0 -20
  10. package/dist/components/generated/pb/decentraland/sdk/components/tween.gen.d.ts +0 -21
  11. package/dist/components/generated/pb/decentraland/sdk/components/tween.gen.js +0 -99
  12. package/dist/components/index.d.ts +5 -0
  13. package/dist/components/index.js +5 -2
  14. package/dist/components/manual/CreatedBy.d.ts +9 -0
  15. package/dist/components/manual/CreatedBy.js +8 -0
  16. package/dist/components/manual/Transform.d.ts +9 -0
  17. package/dist/components/manual/Transform.js +3 -3
  18. package/dist/components/types.d.ts +2 -1
  19. package/dist/engine/component.d.ts +52 -1
  20. package/dist/engine/grow-only-value-set-component-definition.js +45 -2
  21. package/dist/engine/lww-element-set-component-definition.d.ts +3 -1
  22. package/dist/engine/lww-element-set-component-definition.js +64 -12
  23. package/dist/index.d.ts +2 -2
  24. package/dist/index.js +1 -1
  25. package/dist/runtime/globals.d.ts +1 -10
  26. package/dist/runtime/globals.js +2 -2
  27. package/dist/serialization/crdt/authoritativePutComponent.d.ts +15 -0
  28. package/dist/serialization/crdt/authoritativePutComponent.js +47 -0
  29. package/dist/serialization/crdt/index.d.ts +1 -0
  30. package/dist/serialization/crdt/index.js +1 -0
  31. package/dist/serialization/crdt/types.d.ts +25 -3
  32. package/dist/serialization/crdt/types.js +3 -1
  33. package/dist/systems/crdt/index.d.ts +0 -1
  34. package/dist/systems/crdt/index.js +55 -146
  35. package/dist-cjs/components/extended/Tween.d.ts +1 -48
  36. package/dist-cjs/components/extended/Tween.js +0 -66
  37. package/dist-cjs/components/generated/component-names.gen.js +0 -2
  38. package/dist-cjs/components/generated/global.gen.d.ts +0 -4
  39. package/dist-cjs/components/generated/global.gen.js +1 -3
  40. package/dist-cjs/components/generated/index.gen.d.ts +0 -8
  41. package/dist-cjs/components/generated/index.gen.js +2 -14
  42. package/dist-cjs/components/generated/pb/decentraland/sdk/components/input_modifier.gen.d.ts +0 -2
  43. package/dist-cjs/components/generated/pb/decentraland/sdk/components/input_modifier.gen.js +0 -20
  44. package/dist-cjs/components/generated/pb/decentraland/sdk/components/tween.gen.d.ts +0 -21
  45. package/dist-cjs/components/generated/pb/decentraland/sdk/components/tween.gen.js +1 -100
  46. package/dist-cjs/components/index.d.ts +5 -0
  47. package/dist-cjs/components/index.js +7 -3
  48. package/dist-cjs/components/manual/CreatedBy.d.ts +9 -0
  49. package/dist-cjs/components/manual/CreatedBy.js +10 -0
  50. package/dist-cjs/components/manual/Transform.d.ts +9 -0
  51. package/dist-cjs/components/manual/Transform.js +3 -3
  52. package/dist-cjs/components/types.d.ts +2 -1
  53. package/dist-cjs/engine/component.d.ts +52 -1
  54. package/dist-cjs/engine/grow-only-value-set-component-definition.js +44 -1
  55. package/dist-cjs/engine/lww-element-set-component-definition.d.ts +3 -1
  56. package/dist-cjs/engine/lww-element-set-component-definition.js +67 -13
  57. package/dist-cjs/index.d.ts +2 -2
  58. package/dist-cjs/index.js +2 -2
  59. package/dist-cjs/runtime/globals.d.ts +1 -10
  60. package/dist-cjs/runtime/globals.js +2 -2
  61. package/dist-cjs/serialization/crdt/authoritativePutComponent.d.ts +15 -0
  62. package/dist-cjs/serialization/crdt/authoritativePutComponent.js +50 -0
  63. package/dist-cjs/serialization/crdt/index.d.ts +1 -0
  64. package/dist-cjs/serialization/crdt/index.js +1 -0
  65. package/dist-cjs/serialization/crdt/types.d.ts +25 -3
  66. package/dist-cjs/serialization/crdt/types.js +3 -1
  67. package/dist-cjs/systems/crdt/index.d.ts +0 -1
  68. package/dist-cjs/systems/crdt/index.js +55 -169
  69. package/package.json +2 -2
  70. package/dist/components/generated/PhysicsCombinedForce.gen.d.ts +0 -1
  71. package/dist/components/generated/PhysicsCombinedForce.gen.js +0 -25
  72. package/dist/components/generated/PhysicsCombinedImpulse.gen.d.ts +0 -1
  73. package/dist/components/generated/PhysicsCombinedImpulse.gen.js +0 -25
  74. package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.d.ts +0 -25
  75. package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.js +0 -42
  76. package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.d.ts +0 -28
  77. package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.js +0 -51
  78. package/dist/serialization/crdt/network/utils.d.ts +0 -9
  79. package/dist/serialization/crdt/network/utils.js +0 -60
  80. package/dist-cjs/components/generated/PhysicsCombinedForce.gen.d.ts +0 -1
  81. package/dist-cjs/components/generated/PhysicsCombinedForce.gen.js +0 -28
  82. package/dist-cjs/components/generated/PhysicsCombinedImpulse.gen.d.ts +0 -1
  83. package/dist-cjs/components/generated/PhysicsCombinedImpulse.gen.js +0 -28
  84. package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.d.ts +0 -25
  85. package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.js +0 -48
  86. package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.d.ts +0 -28
  87. package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.js +0 -57
  88. package/dist-cjs/serialization/crdt/network/utils.d.ts +0 -9
  89. package/dist-cjs/serialization/crdt/network/utils.js +0 -67
@@ -1,38 +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
4
  /**
37
5
  * @public
38
6
  */
@@ -65,18 +33,13 @@ export interface TweenHelper {
65
33
  * @returns a texture-move-continuous mode tween
66
34
  */
67
35
  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'];
73
36
  }
74
37
  /**
75
38
  * @public
76
39
  */
77
40
  export interface TweenComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTween> {
78
41
  /**
79
- * Helpers with constructor
42
+ * Texture helpers with constructor
80
43
  */
81
44
  Mode: TweenHelper;
82
45
  /**
@@ -155,15 +118,5 @@ export interface TweenComponentDefinitionExtended extends LastWriteWinElementSet
155
118
  * @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
156
119
  */
157
120
  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;
168
121
  }
169
122
  export declare function defineTweenComponent(engine: Pick<IEngine, 'defineComponentFromSchema'>): TweenComponentDefinitionExtended;
@@ -1,33 +1,4 @@
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
- }
31
2
  const TweenHelper = {
32
3
  Move(move) {
33
4
  return {
@@ -70,21 +41,6 @@ const TweenHelper = {
70
41
  $case: 'textureMoveContinuous',
71
42
  textureMoveContinuous
72
43
  };
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
- };
88
44
  }
89
45
  };
90
46
  export function defineTweenComponent(engine) {
@@ -191,28 +147,6 @@ export function defineTweenComponent(engine) {
191
147
  easingFunction: 0 /* EasingFunction.EF_LINEAR */,
192
148
  playing: true
193
149
  });
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
- });
216
150
  }
217
151
  };
218
152
  }
@@ -30,8 +30,6 @@ 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,
35
33
  "core::PlayerIdentityData": 1089,
36
34
  "core::PointerEvents": 1062,
37
35
  "core::PointerEventsResult": 1063,
@@ -22,8 +22,6 @@ 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';
27
25
  import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_identity_data.gen';
28
26
  import { PBPointerEvents } from './pb/decentraland/sdk/components/pointer_events.gen';
29
27
  import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_events_result.gen';
@@ -72,8 +70,6 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
72
70
  /** @public */ export declare const LightSource: LastWriteWinElementSetComponentDefinition<PBLightSource>;
73
71
  /** @public */ export declare const MainCamera: LastWriteWinElementSetComponentDefinition<PBMainCamera>;
74
72
  /** @public */ export declare const NftShape: LastWriteWinElementSetComponentDefinition<PBNftShape>;
75
- /** @public */ export declare const PhysicsCombinedForce: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>;
76
- /** @public */ export declare const PhysicsCombinedImpulse: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>;
77
73
  /** @public */ export declare const PlayerIdentityData: LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>;
78
74
  /** @public */ export declare const PointerEvents: LastWriteWinElementSetComponentDefinition<PBPointerEvents>;
79
75
  /** @public */ export declare const PointerEventsResult: GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>;
@@ -23,8 +23,6 @@ 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);
28
26
  /** @public */ export const PlayerIdentityData = /* @__PURE__ */ components.PlayerIdentityData(engine);
29
27
  /** @public */ export const PointerEvents = /* @__PURE__ */ components.PointerEvents(engine);
30
28
  /** @public */ export const PointerEventsResult = /* @__PURE__ */ components.PointerEventsResult(engine);
@@ -26,8 +26,6 @@ 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';
31
29
  import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_identity_data.gen';
32
30
  import { PBPointerEvents } from './pb/decentraland/sdk/components/pointer_events.gen';
33
31
  import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_events_result.gen';
@@ -81,8 +79,6 @@ export * from './pb/decentraland/sdk/components/material.gen';
81
79
  export * from './pb/decentraland/sdk/components/mesh_collider.gen';
82
80
  export * from './pb/decentraland/sdk/components/mesh_renderer.gen';
83
81
  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';
86
82
  export * from './pb/decentraland/sdk/components/player_identity_data.gen';
87
83
  export * from './pb/decentraland/sdk/components/pointer_events.gen';
88
84
  export * from './pb/decentraland/sdk/components/pointer_events_result.gen';
@@ -138,8 +134,6 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
138
134
  /** @public */ export declare const MeshCollider: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
139
135
  /** @public */ export declare const MeshRenderer: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
140
136
  /** @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>>;
143
137
  /** @public */ export declare const PlayerIdentityData: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
144
138
  /** @public */ export declare const PointerEvents: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
145
139
  /** @public */ export declare const PointerEventsResult: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
@@ -195,8 +189,6 @@ export declare const componentDefinitionByName: {
195
189
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
196
190
  "core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
197
191
  "core::NftShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
198
- "core::PhysicsCombinedForce": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
199
- "core::PhysicsCombinedImpulse": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
200
192
  "core::PlayerIdentityData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
201
193
  "core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
202
194
  "core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
@@ -24,8 +24,6 @@ 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';
29
27
  import { PlayerIdentityDataSchema } from './PlayerIdentityData.gen';
30
28
  import { PointerEventsSchema } from './PointerEvents.gen';
31
29
  import { PointerEventsResultSchema } from './PointerEventsResult.gen';
@@ -79,8 +77,6 @@ export * from './pb/decentraland/sdk/components/material.gen';
79
77
  export * from './pb/decentraland/sdk/components/mesh_collider.gen';
80
78
  export * from './pb/decentraland/sdk/components/mesh_renderer.gen';
81
79
  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';
84
80
  export * from './pb/decentraland/sdk/components/player_identity_data.gen';
85
81
  export * from './pb/decentraland/sdk/components/pointer_events.gen';
86
82
  export * from './pb/decentraland/sdk/components/pointer_events_result.gen';
@@ -166,10 +162,6 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
166
162
  /* @__PURE__ */ engine.defineComponentFromSchema("core::MeshRenderer", MeshRendererSchema);
167
163
  /** @public */ export const NftShape = engine =>
168
164
  /* @__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);
173
165
  /** @public */ export const PlayerIdentityData = engine =>
174
166
  /* @__PURE__ */ engine.defineComponentFromSchema("core::PlayerIdentityData", PlayerIdentityDataSchema);
175
167
  /** @public */ export const PointerEvents = engine =>
@@ -258,8 +250,6 @@ export const componentDefinitionByName = /* @__PURE__ */ {
258
250
  "core::MeshCollider": MeshCollider,
259
251
  "core::MeshRenderer": MeshRenderer,
260
252
  "core::NftShape": NftShape,
261
- "core::PhysicsCombinedForce": PhysicsCombinedForce,
262
- "core::PhysicsCombinedImpulse": PhysicsCombinedImpulse,
263
253
  "core::PlayerIdentityData": PlayerIdentityData,
264
254
  "core::PointerEvents": PointerEvents,
265
255
  "core::PointerEventsResult": PointerEventsResult,
@@ -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
@@ -49,8 +49,6 @@ function createBasePBInputModifier_StandardInput() {
49
49
  disableRun: undefined,
50
50
  disableJump: undefined,
51
51
  disableEmote: undefined,
52
- disableDoubleJump: undefined,
53
- disableGliding: undefined,
54
52
  };
55
53
  }
56
54
  /**
@@ -77,12 +75,6 @@ export var PBInputModifier_StandardInput;
77
75
  if (message.disableEmote !== undefined) {
78
76
  writer.uint32(48).bool(message.disableEmote);
79
77
  }
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
- }
86
78
  return writer;
87
79
  }
88
80
  PBInputModifier_StandardInput.encode = encode;
@@ -129,18 +121,6 @@ export var PBInputModifier_StandardInput;
129
121
  }
130
122
  message.disableEmote = reader.bool();
131
123
  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;
144
124
  }
145
125
  if ((tag & 7) === 4 || tag === 0) {
146
126
  break;
@@ -77,9 +77,6 @@ export interface PBTween {
77
77
  } | {
78
78
  $case: "textureMoveContinuous";
79
79
  textureMoveContinuous: TextureMoveContinuous;
80
- } | {
81
- $case: "moveRotateScale";
82
- moveRotateScale: MoveRotateScale;
83
80
  } | undefined;
84
81
  /** default true (pause or running) */
85
82
  playing?: boolean | undefined;
@@ -108,17 +105,6 @@ export interface Scale {
108
105
  start: Vector3 | undefined;
109
106
  end: Vector3 | undefined;
110
107
  }
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
- }
122
108
  /**
123
109
  * This tween mode allows to move the texture of a PbrMaterial or UnlitMaterial.
124
110
  * You can also specify the movement type (offset or tiling)
@@ -183,13 +169,6 @@ export declare namespace Scale {
183
169
  function encode(message: Scale, writer?: _m0.Writer): _m0.Writer;
184
170
  function decode(input: _m0.Reader | Uint8Array, length?: number): Scale;
185
171
  }
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
- }
193
172
  /**
194
173
  * @public
195
174
  */
@@ -90,9 +90,6 @@ export var PBTween;
90
90
  case "textureMoveContinuous":
91
91
  TextureMoveContinuous.encode(message.mode.textureMoveContinuous, writer.uint32(90).fork()).ldelim();
92
92
  break;
93
- case "moveRotateScale":
94
- MoveRotateScale.encode(message.mode.moveRotateScale, writer.uint32(98).fork()).ldelim();
95
- break;
96
93
  }
97
94
  if (message.playing !== undefined) {
98
95
  writer.uint32(48).bool(message.playing);
@@ -170,12 +167,6 @@ export var PBTween;
170
167
  textureMoveContinuous: TextureMoveContinuous.decode(reader, reader.uint32()),
171
168
  };
172
169
  continue;
173
- case 12:
174
- if (tag !== 98) {
175
- break;
176
- }
177
- message.mode = { $case: "moveRotateScale", moveRotateScale: MoveRotateScale.decode(reader, reader.uint32()) };
178
- continue;
179
170
  case 6:
180
171
  if (tag !== 48) {
181
172
  break;
@@ -348,96 +339,6 @@ export var Scale;
348
339
  }
349
340
  Scale.decode = decode;
350
341
  })(Scale || (Scale = {}));
351
- function createBaseMoveRotateScale() {
352
- return {
353
- positionStart: undefined,
354
- positionEnd: undefined,
355
- rotationStart: undefined,
356
- rotationEnd: undefined,
357
- scaleStart: undefined,
358
- scaleEnd: undefined,
359
- };
360
- }
361
- /**
362
- * @public
363
- */
364
- export var MoveRotateScale;
365
- (function (MoveRotateScale) {
366
- function encode(message, writer = _m0.Writer.create()) {
367
- if (message.positionStart !== undefined) {
368
- Vector3.encode(message.positionStart, writer.uint32(10).fork()).ldelim();
369
- }
370
- if (message.positionEnd !== undefined) {
371
- Vector3.encode(message.positionEnd, writer.uint32(18).fork()).ldelim();
372
- }
373
- if (message.rotationStart !== undefined) {
374
- Quaternion.encode(message.rotationStart, writer.uint32(26).fork()).ldelim();
375
- }
376
- if (message.rotationEnd !== undefined) {
377
- Quaternion.encode(message.rotationEnd, writer.uint32(34).fork()).ldelim();
378
- }
379
- if (message.scaleStart !== undefined) {
380
- Vector3.encode(message.scaleStart, writer.uint32(42).fork()).ldelim();
381
- }
382
- if (message.scaleEnd !== undefined) {
383
- Vector3.encode(message.scaleEnd, writer.uint32(50).fork()).ldelim();
384
- }
385
- return writer;
386
- }
387
- MoveRotateScale.encode = encode;
388
- function decode(input, length) {
389
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
390
- let end = length === undefined ? reader.len : reader.pos + length;
391
- const message = createBaseMoveRotateScale();
392
- while (reader.pos < end) {
393
- const tag = reader.uint32();
394
- switch (tag >>> 3) {
395
- case 1:
396
- if (tag !== 10) {
397
- break;
398
- }
399
- message.positionStart = Vector3.decode(reader, reader.uint32());
400
- continue;
401
- case 2:
402
- if (tag !== 18) {
403
- break;
404
- }
405
- message.positionEnd = Vector3.decode(reader, reader.uint32());
406
- continue;
407
- case 3:
408
- if (tag !== 26) {
409
- break;
410
- }
411
- message.rotationStart = Quaternion.decode(reader, reader.uint32());
412
- continue;
413
- case 4:
414
- if (tag !== 34) {
415
- break;
416
- }
417
- message.rotationEnd = Quaternion.decode(reader, reader.uint32());
418
- continue;
419
- case 5:
420
- if (tag !== 42) {
421
- break;
422
- }
423
- message.scaleStart = Vector3.decode(reader, reader.uint32());
424
- continue;
425
- case 6:
426
- if (tag !== 50) {
427
- break;
428
- }
429
- message.scaleEnd = Vector3.decode(reader, reader.uint32());
430
- continue;
431
- }
432
- if ((tag & 7) === 4 || tag === 0) {
433
- break;
434
- }
435
- reader.skipType(tag & 7);
436
- }
437
- return message;
438
- }
439
- MoveRotateScale.decode = decode;
440
- })(MoveRotateScale || (MoveRotateScale = {}));
441
342
  function createBaseTextureMove() {
442
343
  return { start: undefined, end: undefined, movementType: undefined };
443
344
  }
@@ -19,6 +19,7 @@ import { InputModifierComponentDefinitionExtended } from './extended/InputModifi
19
19
  import { LightSourceComponentDefinitionExtended } from './extended/LightSource';
20
20
  import { TriggerAreaComponentDefinitionExtended } from './extended/TriggerArea';
21
21
  import { TagsComponentDefinitionExtended } from './manual/Tags';
22
+ import { ICreatedByType } from './manual/CreatedBy';
22
23
  export * from './generated/index.gen';
23
24
  export type { GrowOnlyValueSetComponentDefinition, LastWriteWinElementSetComponentDefinition, LwwComponentGetter, GSetComponentGetter };
24
25
  export declare const Transform: LwwComponentGetter<TransformComponentExtended>;
@@ -50,4 +51,8 @@ export declare const NetworkEntity: (engine: Pick<IEngine, 'defineComponent'>) =
50
51
  * @alpha
51
52
  */
52
53
  export declare const NetworkParent: (engine: Pick<IEngine, 'defineComponent'>) => LastWriteWinElementSetComponentDefinition<INetowrkParentType>;
54
+ /**
55
+ * @public
56
+ */
57
+ export declare const CreatedBy: (engine: Pick<IEngine, 'defineComponent'>) => LastWriteWinElementSetComponentDefinition<ICreatedByType>;
53
58
  export { MediaState };
@@ -16,6 +16,7 @@ import { defineInputModifierComponent } from './extended/InputModifier';
16
16
  import { defineLightSourceComponent } from './extended/LightSource';
17
17
  import { defineTriggerAreaComponent } from './extended/TriggerArea';
18
18
  import defineTagsComponent from './manual/Tags';
19
+ import defineCreatedBy from './manual/CreatedBy';
19
20
  export * from './generated/index.gen';
20
21
  /* @__PURE__ */
21
22
  export const Transform = (engine) => defineTransformComponent(engine);
@@ -56,11 +57,13 @@ export const SyncComponents = (engine) => defineSyncComponent(engine);
56
57
  /**
57
58
  * @alpha
58
59
  */
59
- /* @__PURE__ */
60
60
  export const NetworkEntity = (engine) => defineNetworkEntity(engine);
61
61
  /**
62
62
  * @alpha
63
63
  */
64
- /* @__PURE__ */
65
64
  export const NetworkParent = (engine) => defineNetworkParent(engine);
65
+ /**
66
+ * @public
67
+ */
68
+ export const CreatedBy = (engine) => defineCreatedBy(engine);
66
69
  export { MediaState };
@@ -0,0 +1,9 @@
1
+ import { IEngine, LastWriteWinElementSetComponentDefinition } from '../../engine/types';
2
+ export interface ICreatedByType {
3
+ address: string;
4
+ }
5
+ export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
6
+ declare function defineCreatedBy(engine: Pick<IEngine, 'defineComponent'>): import("../../engine/types").MapComponentDefinition<import("../..").MapResult<{
7
+ address: import("../../schemas").ISchema<string>;
8
+ }>>;
9
+ export default defineCreatedBy;
@@ -0,0 +1,8 @@
1
+ import { Schemas } from '../../schemas';
2
+ function defineCreatedBy(engine) {
3
+ const CreatedBy = engine.defineComponent('core-schema::Created-By', {
4
+ address: Schemas.String
5
+ });
6
+ return CreatedBy;
7
+ }
8
+ export default defineCreatedBy;
@@ -1,5 +1,6 @@
1
1
  import { LastWriteWinElementSetComponentDefinition, IEngine } from '../../engine';
2
2
  import { Entity } from '../../engine/entity';
3
+ import type { ISchema } from '../../schemas/ISchema';
3
4
  /**
4
5
  * @public
5
6
  */
@@ -11,6 +12,10 @@ export interface TransformComponentExtended extends TransformComponent {
11
12
  create(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
12
13
  createOrReplace(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
13
14
  }
15
+ /**
16
+ * @public
17
+ */
18
+ export declare const COMPONENT_ID = 1;
14
19
  /**
15
20
  * @public
16
21
  */
@@ -33,6 +38,10 @@ export type TransformType = {
33
38
  };
34
39
  parent?: Entity;
35
40
  };
41
+ /** @public */
42
+ export declare const TRANSFORM_LENGTH = 44;
43
+ /** @public */
44
+ export declare const TransformSchema: ISchema<TransformType>;
36
45
  /**
37
46
  * @public
38
47
  */
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @internal
2
+ * @public
3
3
  */
4
4
  export const COMPONENT_ID = 1;
5
- /** @internal */
5
+ /** @public */
6
6
  export const TRANSFORM_LENGTH = 44;
7
- /** @internal */
7
+ /** @public */
8
8
  export const TransformSchema = {
9
9
  serialize(value, builder) {
10
10
  const ptr = builder.incrementWriteOffset(TRANSFORM_LENGTH);
@@ -4,7 +4,7 @@ export type { AudioStreamComponentDefinitionExtended } from './extended/AudioStr
4
4
  export type { MeshRendererComponentDefinitionExtended } from './extended/MeshRenderer';
5
5
  export type { MeshColliderComponentDefinitionExtended } from './extended/MeshCollider';
6
6
  export type { TextureHelper, MaterialComponentDefinitionExtended, FlatTexture, ReadonlyFlatMaterial, ReadonlyFlatTexture, FlatMaterial } from './extended/Material';
7
- export type { TweenHelper, TweenComponentDefinitionExtended, SetMoveRotateScaleParams, MoveRotateScaleModeParams } from './extended/Tween';
7
+ export type { TweenHelper, TweenComponentDefinitionExtended } from './extended/Tween';
8
8
  export type { CameraTransitionHelper, VirtualCameraComponentDefinitionExtended } from './extended/VirtualCamera';
9
9
  export type { TransformComponentExtended, TransformTypeWithOptionals } from './manual/Transform';
10
10
  export type { NameComponent, NameType } from './manual/Name';
@@ -12,6 +12,7 @@ export type { TagsComponentDefinitionExtended, TagsType } from './manual/Tags';
12
12
  export type { ISyncComponents, ISyncComponentsType } from './manual/SyncComponents';
13
13
  export type { INetowrkEntity, INetowrkEntityType } from './manual/NetworkEntity';
14
14
  export type { INetowrkParent, INetowrkParentType } from './manual/NetworkParent';
15
+ export type { ICreatedBy, ICreatedByType } from './manual/CreatedBy';
15
16
  export type { InputModifierHelper, InputModifierComponentDefinitionExtended } from './extended/InputModifier';
16
17
  export type { LightSourceHelper, LightSourceComponentDefinitionExtended } from './extended/LightSource';
17
18
  export type { TriggerAreaComponentDefinitionExtended } from './extended/TriggerArea';