@dcl/ecs 7.26.1-31707982174.commit-07a0182 → 7.26.1-31715266070.commit-0ddb8e7
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_shape.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_shape.gen.js +9 -0
- package/dist/systems/triggerArea.js +1 -2
- 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/systems/triggerArea.js +1 -2
- package/package.json +2 -2
|
@@ -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: "",
|
|
@@ -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) {
|
|
@@ -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: "",
|
|
@@ -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.26.1-
|
|
4
|
+
"version": "7.26.1-31715266070.commit-0ddb8e7",
|
|
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": "0ddb8e747bcf2d28e5bd201fe4e898d4ec08036d"
|
|
38
38
|
}
|