@dcl/ecs 7.24.4 → 7.24.5-28985931443.commit-4a0bcfc
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/generated/pb/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +3 -1
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_modifier_area.gen.js +2 -0
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_shape.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_shape.gen.js +9 -0
- package/dist/components/generated/pb/decentraland/sdk/components/billboard.gen.d.ts +9 -2
- package/dist/components/generated/pb/decentraland/sdk/components/billboard.gen.js +10 -1
- package/dist/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.d.ts +3 -0
- package/dist/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.js +10 -1
- package/dist/components/generated/pb/google/protobuf/descriptor.gen.d.ts +640 -1
- package/dist/components/generated/pb/google/protobuf/descriptor.gen.js +260 -4
- package/dist/systems/triggerArea.js +1 -2
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +3 -1
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_modifier_area.gen.js +2 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_shape.gen.d.ts +8 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_shape.gen.js +10 -1
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/billboard.gen.d.ts +9 -2
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/billboard.gen.js +10 -1
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.d.ts +3 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.js +10 -1
- package/dist-cjs/components/generated/pb/google/protobuf/descriptor.gen.d.ts +640 -1
- package/dist-cjs/components/generated/pb/google/protobuf/descriptor.gen.js +261 -5
- package/dist-cjs/systems/triggerArea.js +1 -2
- package/package.json +2 -2
package/dist/components/generated/pb/decentraland/sdk/components/avatar_modifier_area.gen.d.ts
CHANGED
|
@@ -8,7 +8,9 @@ export declare const enum AvatarModifierType {
|
|
|
8
8
|
/** AMT_HIDE_AVATARS - avatars are invisible */
|
|
9
9
|
AMT_HIDE_AVATARS = 0,
|
|
10
10
|
/** AMT_DISABLE_PASSPORTS - selecting (e.g. clicking) an avatar will not bring up their profile. */
|
|
11
|
-
AMT_DISABLE_PASSPORTS = 1
|
|
11
|
+
AMT_DISABLE_PASSPORTS = 1,
|
|
12
|
+
/** AMT_HIDE_NAMETAGS - the name tag displayed above an avatar is hidden. */
|
|
13
|
+
AMT_HIDE_NAMETAGS = 2
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
package/dist/components/generated/pb/decentraland/sdk/components/avatar_modifier_area.gen.js
CHANGED
|
@@ -12,6 +12,8 @@ export var AvatarModifierType;
|
|
|
12
12
|
AvatarModifierType[AvatarModifierType["AMT_HIDE_AVATARS"] = 0] = "AMT_HIDE_AVATARS";
|
|
13
13
|
/** AMT_DISABLE_PASSPORTS - selecting (e.g. clicking) an avatar will not bring up their profile. */
|
|
14
14
|
AvatarModifierType[AvatarModifierType["AMT_DISABLE_PASSPORTS"] = 1] = "AMT_DISABLE_PASSPORTS";
|
|
15
|
+
/** AMT_HIDE_NAMETAGS - the name tag displayed above an avatar is hidden. */
|
|
16
|
+
AvatarModifierType[AvatarModifierType["AMT_HIDE_NAMETAGS"] = 2] = "AMT_HIDE_NAMETAGS";
|
|
15
17
|
})(AvatarModifierType || (AvatarModifierType = {}));
|
|
16
18
|
function createBasePBAvatarModifierArea() {
|
|
17
19
|
return { area: undefined, excludeIds: [], modifiers: [] };
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
import { Color3 } from "../../common/colors.gen";
|
|
3
|
+
/** Mask for which bones an animation applies to. */
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const enum AvatarEmoteMask {
|
|
8
|
+
AEM_FULL_BODY = 0,
|
|
9
|
+
AEM_UPPER_BODY = 1
|
|
10
|
+
}
|
|
3
11
|
/**
|
|
4
12
|
* The AvatarShape component contains the information required to draw and animate avatar, acting as
|
|
5
13
|
* a simplified GLTF container for this specific case.
|
|
@@ -3,6 +3,15 @@ import Long from "long";
|
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
4
|
import { Color3 } from "../../common/colors.gen";
|
|
5
5
|
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
6
|
+
/** Mask for which bones an animation applies to. */
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export var AvatarEmoteMask;
|
|
11
|
+
(function (AvatarEmoteMask) {
|
|
12
|
+
AvatarEmoteMask[AvatarEmoteMask["AEM_FULL_BODY"] = 0] = "AEM_FULL_BODY";
|
|
13
|
+
AvatarEmoteMask[AvatarEmoteMask["AEM_UPPER_BODY"] = 1] = "AEM_UPPER_BODY";
|
|
14
|
+
})(AvatarEmoteMask || (AvatarEmoteMask = {}));
|
|
6
15
|
function createBasePBAvatarShape() {
|
|
7
16
|
return {
|
|
8
17
|
id: "",
|
|
@@ -15,11 +15,16 @@ export declare const enum BillboardMode {
|
|
|
15
15
|
BM_ALL = 7
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* The Billboard component makes an Entity automatically reorient its rotation to face
|
|
18
|
+
* The Billboard component makes an Entity automatically reorient its rotation to face a target.
|
|
19
|
+
* By default (when target_entity is unset), the billboard faces the main camera. When target_entity
|
|
20
|
+
* is set, the billboard faces that entity instead. Setting target_entity to the camera reserved
|
|
21
|
+
* entity (2) is equivalent to leaving the field unset. If the referenced target entity doesn’t exist
|
|
22
|
+
* or is deleted, the billboard reorientation is disabled until the target exists again.
|
|
23
|
+
*
|
|
19
24
|
* As the name indicates, it’s used to display in-game billboards and frequently combined with
|
|
20
25
|
* the TextShape component.
|
|
21
26
|
*
|
|
22
|
-
* Billboard only affects the Entity
|
|
27
|
+
* Billboard only affects the Entity’s rotation. Its scale and position are still determined by its
|
|
23
28
|
* Transform.
|
|
24
29
|
*/
|
|
25
30
|
/**
|
|
@@ -28,6 +33,8 @@ export declare const enum BillboardMode {
|
|
|
28
33
|
export interface PBBillboard {
|
|
29
34
|
/** the BillboardMode (default: BM_ALL) */
|
|
30
35
|
billboardMode?: BillboardMode | undefined;
|
|
36
|
+
/** entity to face instead of the camera; if the referenced entity doesn’t exist, the billboard behavior is disabled until it does */
|
|
37
|
+
targetEntity?: number | undefined;
|
|
31
38
|
}
|
|
32
39
|
/**
|
|
33
40
|
* @public
|
|
@@ -18,7 +18,7 @@ export var BillboardMode;
|
|
|
18
18
|
BillboardMode[BillboardMode["BM_ALL"] = 7] = "BM_ALL";
|
|
19
19
|
})(BillboardMode || (BillboardMode = {}));
|
|
20
20
|
function createBasePBBillboard() {
|
|
21
|
-
return { billboardMode: undefined };
|
|
21
|
+
return { billboardMode: undefined, targetEntity: undefined };
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* @public
|
|
@@ -29,6 +29,9 @@ export var PBBillboard;
|
|
|
29
29
|
if (message.billboardMode !== undefined) {
|
|
30
30
|
writer.uint32(8).int32(message.billboardMode);
|
|
31
31
|
}
|
|
32
|
+
if (message.targetEntity !== undefined) {
|
|
33
|
+
writer.uint32(16).uint32(message.targetEntity);
|
|
34
|
+
}
|
|
32
35
|
return writer;
|
|
33
36
|
}
|
|
34
37
|
PBBillboard.encode = encode;
|
|
@@ -45,6 +48,12 @@ export var PBBillboard;
|
|
|
45
48
|
}
|
|
46
49
|
message.billboardMode = reader.int32();
|
|
47
50
|
continue;
|
|
51
|
+
case 2:
|
|
52
|
+
if (tag !== 16) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
message.targetEntity = reader.uint32();
|
|
56
|
+
continue;
|
|
48
57
|
}
|
|
49
58
|
if ((tag & 7) === 4 || tag === 0) {
|
|
50
59
|
break;
|
|
@@ -6,6 +6,7 @@ import { CameraTransition } from "./common/camera_transition.gen";
|
|
|
6
6
|
* an 'instant' transition (like using speed/time = 0)
|
|
7
7
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
8
8
|
* the holding entity transform).
|
|
9
|
+
* * The fov defines the Field of View of the virtual camera
|
|
9
10
|
*/
|
|
10
11
|
/**
|
|
11
12
|
* @public
|
|
@@ -13,6 +14,8 @@ import { CameraTransition } from "./common/camera_transition.gen";
|
|
|
13
14
|
export interface PBVirtualCamera {
|
|
14
15
|
defaultTransition?: CameraTransition | undefined;
|
|
15
16
|
lookAtEntity?: number | undefined;
|
|
17
|
+
/** default: 60 */
|
|
18
|
+
fov?: number | undefined;
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
21
|
* @public
|
|
@@ -3,7 +3,7 @@ import _m0 from "protobufjs/minimal";
|
|
|
3
3
|
import { CameraTransition } from "./common/camera_transition.gen";
|
|
4
4
|
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
5
5
|
function createBasePBVirtualCamera() {
|
|
6
|
-
return { defaultTransition: undefined, lookAtEntity: undefined };
|
|
6
|
+
return { defaultTransition: undefined, lookAtEntity: undefined, fov: undefined };
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* @public
|
|
@@ -17,6 +17,9 @@ export var PBVirtualCamera;
|
|
|
17
17
|
if (message.lookAtEntity !== undefined) {
|
|
18
18
|
writer.uint32(16).uint32(message.lookAtEntity);
|
|
19
19
|
}
|
|
20
|
+
if (message.fov !== undefined) {
|
|
21
|
+
writer.uint32(29).float(message.fov);
|
|
22
|
+
}
|
|
20
23
|
return writer;
|
|
21
24
|
}
|
|
22
25
|
PBVirtualCamera.encode = encode;
|
|
@@ -39,6 +42,12 @@ export var PBVirtualCamera;
|
|
|
39
42
|
}
|
|
40
43
|
message.lookAtEntity = reader.uint32();
|
|
41
44
|
continue;
|
|
45
|
+
case 3:
|
|
46
|
+
if (tag !== 29) {
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
message.fov = reader.float();
|
|
50
|
+
continue;
|
|
42
51
|
}
|
|
43
52
|
if ((tag & 7) === 4 || tag === 0) {
|
|
44
53
|
break;
|