@dcl/ecs 7.25.1-31605440953.commit-08dff78 → 7.25.1-31608505224.commit-f858f90
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_emote_command.gen.d.ts +24 -0
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.js +30 -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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/runtime/initialization/index.d.ts +7 -0
- package/dist/runtime/initialization/index.js +6 -0
- package/dist/systems/audioEvents.d.ts +19 -0
- package/dist/systems/audioEvents.js +61 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.d.ts +24 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.js +31 -2
- 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/index.d.ts +1 -0
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/runtime/initialization/index.d.ts +7 -0
- package/dist-cjs/runtime/initialization/index.js +7 -1
- package/dist-cjs/systems/audioEvents.d.ts +19 -0
- package/dist-cjs/systems/audioEvents.js +88 -0
- package/package.json +2 -2
package/dist/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.d.ts
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
import { AvatarMask } from "./common/avatar_mask.gen";
|
|
3
|
+
/** EmoteState describes the lifecycle state of an emote playback. */
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const enum EmoteState {
|
|
8
|
+
/**
|
|
9
|
+
* ES_STARTED - ES_STARTED indicates the emote started playing.
|
|
10
|
+
* This is the zero value and is used for backward compatibility — entries
|
|
11
|
+
* written by older explorers (field absent) read as "started".
|
|
12
|
+
*/
|
|
13
|
+
ES_STARTED = 0,
|
|
14
|
+
/** ES_FINISHED - ES_FINISHED indicates a non-looping emote completed naturally. */
|
|
15
|
+
ES_FINISHED = 1,
|
|
16
|
+
/**
|
|
17
|
+
* ES_INTERRUPTED - ES_INTERRUPTED indicates playback was cancelled (movement, teleport,
|
|
18
|
+
* another emote superseding it, explicit stop, or scene change).
|
|
19
|
+
*/
|
|
20
|
+
ES_INTERRUPTED = 2
|
|
21
|
+
}
|
|
3
22
|
/**
|
|
4
23
|
* AvatarEmoteCommand is a grow only value set, written by the explorer to report
|
|
5
24
|
* avatar emote playback to the scene. It is appended to every player entity in the
|
|
@@ -14,6 +33,11 @@ export interface PBAvatarEmoteCommand {
|
|
|
14
33
|
/** monotonic counter */
|
|
15
34
|
timestamp: number;
|
|
16
35
|
mask?: AvatarMask | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* state describes the lifecycle event for this emote entry.
|
|
38
|
+
* When absent (older explorers), defaults to ES_STARTED.
|
|
39
|
+
*/
|
|
40
|
+
state?: EmoteState | undefined;
|
|
17
41
|
}
|
|
18
42
|
/**
|
|
19
43
|
* @public
|
package/dist/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.js
CHANGED
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
4
|
+
/** EmoteState describes the lifecycle state of an emote playback. */
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export var EmoteState;
|
|
9
|
+
(function (EmoteState) {
|
|
10
|
+
/**
|
|
11
|
+
* ES_STARTED - ES_STARTED indicates the emote started playing.
|
|
12
|
+
* This is the zero value and is used for backward compatibility — entries
|
|
13
|
+
* written by older explorers (field absent) read as "started".
|
|
14
|
+
*/
|
|
15
|
+
EmoteState[EmoteState["ES_STARTED"] = 0] = "ES_STARTED";
|
|
16
|
+
/** ES_FINISHED - ES_FINISHED indicates a non-looping emote completed naturally. */
|
|
17
|
+
EmoteState[EmoteState["ES_FINISHED"] = 1] = "ES_FINISHED";
|
|
18
|
+
/**
|
|
19
|
+
* ES_INTERRUPTED - ES_INTERRUPTED indicates playback was cancelled (movement, teleport,
|
|
20
|
+
* another emote superseding it, explicit stop, or scene change).
|
|
21
|
+
*/
|
|
22
|
+
EmoteState[EmoteState["ES_INTERRUPTED"] = 2] = "ES_INTERRUPTED";
|
|
23
|
+
})(EmoteState || (EmoteState = {}));
|
|
4
24
|
function createBasePBAvatarEmoteCommand() {
|
|
5
|
-
return { emoteUrn: "", loop: false, timestamp: 0, mask: undefined };
|
|
25
|
+
return { emoteUrn: "", loop: false, timestamp: 0, mask: undefined, state: undefined };
|
|
6
26
|
}
|
|
7
27
|
/**
|
|
8
28
|
* @public
|
|
@@ -22,6 +42,9 @@ export var PBAvatarEmoteCommand;
|
|
|
22
42
|
if (message.mask !== undefined) {
|
|
23
43
|
writer.uint32(32).int32(message.mask);
|
|
24
44
|
}
|
|
45
|
+
if (message.state !== undefined) {
|
|
46
|
+
writer.uint32(40).int32(message.state);
|
|
47
|
+
}
|
|
25
48
|
return writer;
|
|
26
49
|
}
|
|
27
50
|
PBAvatarEmoteCommand.encode = encode;
|
|
@@ -56,6 +79,12 @@ export var PBAvatarEmoteCommand;
|
|
|
56
79
|
}
|
|
57
80
|
message.mask = reader.int32();
|
|
58
81
|
continue;
|
|
82
|
+
case 5:
|
|
83
|
+
if (tag !== 40) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.state = reader.int32();
|
|
87
|
+
continue;
|
|
59
88
|
}
|
|
60
89
|
if ((tag & 7) === 4 || tag === 0) {
|
|
61
90
|
break;
|