@dcl/ecs 7.23.2-25802088407.commit-15e8697 → 7.23.3-25829613631.commit-ac51407
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_locomotion_settings.gen.d.ts +6 -0
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.js +30 -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/virtual_camera.gen.d.ts +3 -0
- package/dist/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.js +10 -1
- package/dist/systems/triggerArea.js +1 -2
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +6 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.js +30 -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/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/systems/triggerArea.js +1 -2
- package/package.json +2 -2
package/dist/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts
CHANGED
|
@@ -19,6 +19,12 @@ export interface PBAvatarLocomotionSettings {
|
|
|
19
19
|
runJumpHeight?: number | undefined;
|
|
20
20
|
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
21
21
|
hardLandingCooldown?: number | undefined;
|
|
22
|
+
/** Height of the double jump (in meters) */
|
|
23
|
+
doubleJumpHeight?: number | undefined;
|
|
24
|
+
/** Maximum speed when gliding (in meters per second) */
|
|
25
|
+
glidingSpeed?: number | undefined;
|
|
26
|
+
/** Maximum falling speed when gliding (in meters per second) */
|
|
27
|
+
glidingFallingSpeed?: number | undefined;
|
|
22
28
|
}
|
|
23
29
|
/**
|
|
24
30
|
* @public
|
package/dist/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.js
CHANGED
|
@@ -9,6 +9,9 @@ function createBasePBAvatarLocomotionSettings() {
|
|
|
9
9
|
jumpHeight: undefined,
|
|
10
10
|
runJumpHeight: undefined,
|
|
11
11
|
hardLandingCooldown: undefined,
|
|
12
|
+
doubleJumpHeight: undefined,
|
|
13
|
+
glidingSpeed: undefined,
|
|
14
|
+
glidingFallingSpeed: undefined,
|
|
12
15
|
};
|
|
13
16
|
}
|
|
14
17
|
/**
|
|
@@ -35,6 +38,15 @@ export var PBAvatarLocomotionSettings;
|
|
|
35
38
|
if (message.hardLandingCooldown !== undefined) {
|
|
36
39
|
writer.uint32(53).float(message.hardLandingCooldown);
|
|
37
40
|
}
|
|
41
|
+
if (message.doubleJumpHeight !== undefined) {
|
|
42
|
+
writer.uint32(61).float(message.doubleJumpHeight);
|
|
43
|
+
}
|
|
44
|
+
if (message.glidingSpeed !== undefined) {
|
|
45
|
+
writer.uint32(69).float(message.glidingSpeed);
|
|
46
|
+
}
|
|
47
|
+
if (message.glidingFallingSpeed !== undefined) {
|
|
48
|
+
writer.uint32(77).float(message.glidingFallingSpeed);
|
|
49
|
+
}
|
|
38
50
|
return writer;
|
|
39
51
|
}
|
|
40
52
|
PBAvatarLocomotionSettings.encode = encode;
|
|
@@ -81,6 +93,24 @@ export var PBAvatarLocomotionSettings;
|
|
|
81
93
|
}
|
|
82
94
|
message.hardLandingCooldown = reader.float();
|
|
83
95
|
continue;
|
|
96
|
+
case 7:
|
|
97
|
+
if (tag !== 61) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
message.doubleJumpHeight = reader.float();
|
|
101
|
+
continue;
|
|
102
|
+
case 8:
|
|
103
|
+
if (tag !== 69) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
message.glidingSpeed = reader.float();
|
|
107
|
+
continue;
|
|
108
|
+
case 9:
|
|
109
|
+
if (tag !== 77) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
message.glidingFallingSpeed = reader.float();
|
|
113
|
+
continue;
|
|
84
114
|
}
|
|
85
115
|
if ((tag & 7) === 4 || tag === 0) {
|
|
86
116
|
break;
|
|
@@ -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: "",
|
|
@@ -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;
|
|
@@ -177,8 +177,7 @@ export function createTriggerAreaEventsSystem(engine) {
|
|
|
177
177
|
// Pass 2: synthesize per-tick onStay callbacks
|
|
178
178
|
// -----------------------------------------------------------------------
|
|
179
179
|
// Only run if an onStay callback is registered and there are tracked triggerers.
|
|
180
|
-
if (data.triggerCallbackMap.has(1 /* TriggerAreaEventType.TAET_STAY */) &&
|
|
181
|
-
data.insideTriggerers.size > 0) {
|
|
180
|
+
if (data.triggerCallbackMap.has(1 /* TriggerAreaEventType.TAET_STAY */) && data.insideTriggerers.size > 0) {
|
|
182
181
|
const onStay = data.triggerCallbackMap.get(1 /* TriggerAreaEventType.TAET_STAY */);
|
|
183
182
|
const currentTimestamp = Date.now();
|
|
184
183
|
for (const [triggererEntity, cachedResult] of data.insideTriggerers) {
|
|
@@ -19,6 +19,12 @@ export interface PBAvatarLocomotionSettings {
|
|
|
19
19
|
runJumpHeight?: number | undefined;
|
|
20
20
|
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
21
21
|
hardLandingCooldown?: number | undefined;
|
|
22
|
+
/** Height of the double jump (in meters) */
|
|
23
|
+
doubleJumpHeight?: number | undefined;
|
|
24
|
+
/** Maximum speed when gliding (in meters per second) */
|
|
25
|
+
glidingSpeed?: number | undefined;
|
|
26
|
+
/** Maximum falling speed when gliding (in meters per second) */
|
|
27
|
+
glidingFallingSpeed?: number | undefined;
|
|
22
28
|
}
|
|
23
29
|
/**
|
|
24
30
|
* @public
|
|
@@ -15,6 +15,9 @@ function createBasePBAvatarLocomotionSettings() {
|
|
|
15
15
|
jumpHeight: undefined,
|
|
16
16
|
runJumpHeight: undefined,
|
|
17
17
|
hardLandingCooldown: undefined,
|
|
18
|
+
doubleJumpHeight: undefined,
|
|
19
|
+
glidingSpeed: undefined,
|
|
20
|
+
glidingFallingSpeed: undefined,
|
|
18
21
|
};
|
|
19
22
|
}
|
|
20
23
|
/**
|
|
@@ -41,6 +44,15 @@ var PBAvatarLocomotionSettings;
|
|
|
41
44
|
if (message.hardLandingCooldown !== undefined) {
|
|
42
45
|
writer.uint32(53).float(message.hardLandingCooldown);
|
|
43
46
|
}
|
|
47
|
+
if (message.doubleJumpHeight !== undefined) {
|
|
48
|
+
writer.uint32(61).float(message.doubleJumpHeight);
|
|
49
|
+
}
|
|
50
|
+
if (message.glidingSpeed !== undefined) {
|
|
51
|
+
writer.uint32(69).float(message.glidingSpeed);
|
|
52
|
+
}
|
|
53
|
+
if (message.glidingFallingSpeed !== undefined) {
|
|
54
|
+
writer.uint32(77).float(message.glidingFallingSpeed);
|
|
55
|
+
}
|
|
44
56
|
return writer;
|
|
45
57
|
}
|
|
46
58
|
PBAvatarLocomotionSettings.encode = encode;
|
|
@@ -87,6 +99,24 @@ var PBAvatarLocomotionSettings;
|
|
|
87
99
|
}
|
|
88
100
|
message.hardLandingCooldown = reader.float();
|
|
89
101
|
continue;
|
|
102
|
+
case 7:
|
|
103
|
+
if (tag !== 61) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
message.doubleJumpHeight = reader.float();
|
|
107
|
+
continue;
|
|
108
|
+
case 8:
|
|
109
|
+
if (tag !== 69) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
message.glidingSpeed = reader.float();
|
|
113
|
+
continue;
|
|
114
|
+
case 9:
|
|
115
|
+
if (tag !== 77) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
message.glidingFallingSpeed = reader.float();
|
|
119
|
+
continue;
|
|
90
120
|
}
|
|
91
121
|
if ((tag & 7) === 4 || tag === 0) {
|
|
92
122
|
break;
|
|
@@ -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,12 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PBAvatarShape = void 0;
|
|
6
|
+
exports.PBAvatarShape = exports.AvatarEmoteMask = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
10
|
const colors_gen_1 = require("../../common/colors.gen");
|
|
11
11
|
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
12
|
+
/** Mask for which bones an animation applies to. */
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
var AvatarEmoteMask;
|
|
17
|
+
(function (AvatarEmoteMask) {
|
|
18
|
+
AvatarEmoteMask[AvatarEmoteMask["AEM_FULL_BODY"] = 0] = "AEM_FULL_BODY";
|
|
19
|
+
AvatarEmoteMask[AvatarEmoteMask["AEM_UPPER_BODY"] = 1] = "AEM_UPPER_BODY";
|
|
20
|
+
})(AvatarEmoteMask = exports.AvatarEmoteMask || (exports.AvatarEmoteMask = {}));
|
|
12
21
|
function createBasePBAvatarShape() {
|
|
13
22
|
return {
|
|
14
23
|
id: "",
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.d.ts
CHANGED
|
@@ -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
|
|
@@ -9,7 +9,7 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
|
9
9
|
const camera_transition_gen_1 = require("./common/camera_transition.gen");
|
|
10
10
|
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
11
11
|
function createBasePBVirtualCamera() {
|
|
12
|
-
return { defaultTransition: undefined, lookAtEntity: undefined };
|
|
12
|
+
return { defaultTransition: undefined, lookAtEntity: undefined, fov: undefined };
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* @public
|
|
@@ -23,6 +23,9 @@ var PBVirtualCamera;
|
|
|
23
23
|
if (message.lookAtEntity !== undefined) {
|
|
24
24
|
writer.uint32(16).uint32(message.lookAtEntity);
|
|
25
25
|
}
|
|
26
|
+
if (message.fov !== undefined) {
|
|
27
|
+
writer.uint32(29).float(message.fov);
|
|
28
|
+
}
|
|
26
29
|
return writer;
|
|
27
30
|
}
|
|
28
31
|
PBVirtualCamera.encode = encode;
|
|
@@ -45,6 +48,12 @@ var PBVirtualCamera;
|
|
|
45
48
|
}
|
|
46
49
|
message.lookAtEntity = reader.uint32();
|
|
47
50
|
continue;
|
|
51
|
+
case 3:
|
|
52
|
+
if (tag !== 29) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
message.fov = reader.float();
|
|
56
|
+
continue;
|
|
48
57
|
}
|
|
49
58
|
if ((tag & 7) === 4 || tag === 0) {
|
|
50
59
|
break;
|
|
@@ -203,8 +203,7 @@ function createTriggerAreaEventsSystem(engine) {
|
|
|
203
203
|
// Pass 2: synthesize per-tick onStay callbacks
|
|
204
204
|
// -----------------------------------------------------------------------
|
|
205
205
|
// Only run if an onStay callback is registered and there are tracked triggerers.
|
|
206
|
-
if (data.triggerCallbackMap.has(1 /* TriggerAreaEventType.TAET_STAY */) &&
|
|
207
|
-
data.insideTriggerers.size > 0) {
|
|
206
|
+
if (data.triggerCallbackMap.has(1 /* TriggerAreaEventType.TAET_STAY */) && data.insideTriggerers.size > 0) {
|
|
208
207
|
const onStay = data.triggerCallbackMap.get(1 /* TriggerAreaEventType.TAET_STAY */);
|
|
209
208
|
const currentTimestamp = Date.now();
|
|
210
209
|
for (const [triggererEntity, cachedResult] of data.insideTriggerers) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.23.
|
|
4
|
+
"version": "7.23.3-25829613631.commit-ac51407",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/ecs/issues",
|
|
7
7
|
"files": [
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"dependencies": {},
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
36
|
"typings": "./dist/index.d.ts",
|
|
37
|
-
"commit": "
|
|
37
|
+
"commit": "ac5140787a065a3c99997d6129e4e71b280f1cc2"
|
|
38
38
|
}
|