@dcl/protocol 1.0.0-7290900808.commit-5536cee → 1.0.0-7713972320.commit-a4aa069

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.
@@ -5,11 +5,10 @@ export declare const protobufPackage = "decentraland.sdk.components";
5
5
  * avatar emotes playback.
6
6
  */
7
7
  export interface PBAvatarEmoteCommand {
8
- emoteCommand: PBAvatarEmoteCommand_EmoteCommand | undefined;
9
- }
10
- export interface PBAvatarEmoteCommand_EmoteCommand {
11
8
  emoteUrn: string;
12
9
  loop: boolean;
10
+ /** monotonic counter */
11
+ timestamp: number;
13
12
  }
14
13
  export declare namespace PBAvatarEmoteCommand {
15
14
  function encode(message: PBAvatarEmoteCommand, writer?: _m0.Writer): _m0.Writer;
@@ -19,14 +18,6 @@ export declare namespace PBAvatarEmoteCommand {
19
18
  function create<I extends Exact<DeepPartial<PBAvatarEmoteCommand>, I>>(base?: I): PBAvatarEmoteCommand;
20
19
  function fromPartial<I extends Exact<DeepPartial<PBAvatarEmoteCommand>, I>>(object: I): PBAvatarEmoteCommand;
21
20
  }
22
- export declare namespace PBAvatarEmoteCommand_EmoteCommand {
23
- function encode(message: PBAvatarEmoteCommand_EmoteCommand, writer?: _m0.Writer): _m0.Writer;
24
- function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEmoteCommand_EmoteCommand;
25
- function fromJSON(object: any): PBAvatarEmoteCommand_EmoteCommand;
26
- function toJSON(message: PBAvatarEmoteCommand_EmoteCommand): unknown;
27
- function create<I extends Exact<DeepPartial<PBAvatarEmoteCommand_EmoteCommand>, I>>(base?: I): PBAvatarEmoteCommand_EmoteCommand;
28
- function fromPartial<I extends Exact<DeepPartial<PBAvatarEmoteCommand_EmoteCommand>, I>>(object: I): PBAvatarEmoteCommand_EmoteCommand;
29
- }
30
21
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
31
22
  export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
32
23
  $case: string;
@@ -3,79 +3,15 @@ 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.PBAvatarEmoteCommand_EmoteCommand = exports.PBAvatarEmoteCommand = exports.protobufPackage = void 0;
6
+ exports.PBAvatarEmoteCommand = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
9
  exports.protobufPackage = "decentraland.sdk.components";
10
10
  function createBasePBAvatarEmoteCommand() {
11
- return { emoteCommand: undefined };
11
+ return { emoteUrn: "", loop: false, timestamp: 0 };
12
12
  }
13
13
  var PBAvatarEmoteCommand;
14
14
  (function (PBAvatarEmoteCommand) {
15
- function encode(message, writer = minimal_1.default.Writer.create()) {
16
- if (message.emoteCommand !== undefined) {
17
- PBAvatarEmoteCommand_EmoteCommand.encode(message.emoteCommand, writer.uint32(10).fork()).ldelim();
18
- }
19
- return writer;
20
- }
21
- PBAvatarEmoteCommand.encode = encode;
22
- function decode(input, length) {
23
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
24
- let end = length === undefined ? reader.len : reader.pos + length;
25
- const message = createBasePBAvatarEmoteCommand();
26
- while (reader.pos < end) {
27
- const tag = reader.uint32();
28
- switch (tag >>> 3) {
29
- case 1:
30
- if (tag !== 10) {
31
- break;
32
- }
33
- message.emoteCommand = PBAvatarEmoteCommand_EmoteCommand.decode(reader, reader.uint32());
34
- continue;
35
- }
36
- if ((tag & 7) === 4 || tag === 0) {
37
- break;
38
- }
39
- reader.skipType(tag & 7);
40
- }
41
- return message;
42
- }
43
- PBAvatarEmoteCommand.decode = decode;
44
- function fromJSON(object) {
45
- return {
46
- emoteCommand: isSet(object.emoteCommand)
47
- ? PBAvatarEmoteCommand_EmoteCommand.fromJSON(object.emoteCommand)
48
- : undefined,
49
- };
50
- }
51
- PBAvatarEmoteCommand.fromJSON = fromJSON;
52
- function toJSON(message) {
53
- const obj = {};
54
- message.emoteCommand !== undefined &&
55
- (obj.emoteCommand = message.emoteCommand
56
- ? PBAvatarEmoteCommand_EmoteCommand.toJSON(message.emoteCommand)
57
- : undefined);
58
- return obj;
59
- }
60
- PBAvatarEmoteCommand.toJSON = toJSON;
61
- function create(base) {
62
- return PBAvatarEmoteCommand.fromPartial(base !== null && base !== void 0 ? base : {});
63
- }
64
- PBAvatarEmoteCommand.create = create;
65
- function fromPartial(object) {
66
- const message = createBasePBAvatarEmoteCommand();
67
- message.emoteCommand = (object.emoteCommand !== undefined && object.emoteCommand !== null)
68
- ? PBAvatarEmoteCommand_EmoteCommand.fromPartial(object.emoteCommand)
69
- : undefined;
70
- return message;
71
- }
72
- PBAvatarEmoteCommand.fromPartial = fromPartial;
73
- })(PBAvatarEmoteCommand || (exports.PBAvatarEmoteCommand = PBAvatarEmoteCommand = {}));
74
- function createBasePBAvatarEmoteCommand_EmoteCommand() {
75
- return { emoteUrn: "", loop: false };
76
- }
77
- var PBAvatarEmoteCommand_EmoteCommand;
78
- (function (PBAvatarEmoteCommand_EmoteCommand) {
79
15
  function encode(message, writer = minimal_1.default.Writer.create()) {
80
16
  if (message.emoteUrn !== "") {
81
17
  writer.uint32(10).string(message.emoteUrn);
@@ -83,13 +19,16 @@ var PBAvatarEmoteCommand_EmoteCommand;
83
19
  if (message.loop === true) {
84
20
  writer.uint32(16).bool(message.loop);
85
21
  }
22
+ if (message.timestamp !== 0) {
23
+ writer.uint32(24).uint32(message.timestamp);
24
+ }
86
25
  return writer;
87
26
  }
88
- PBAvatarEmoteCommand_EmoteCommand.encode = encode;
27
+ PBAvatarEmoteCommand.encode = encode;
89
28
  function decode(input, length) {
90
29
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
91
30
  let end = length === undefined ? reader.len : reader.pos + length;
92
- const message = createBasePBAvatarEmoteCommand_EmoteCommand();
31
+ const message = createBasePBAvatarEmoteCommand();
93
32
  while (reader.pos < end) {
94
33
  const tag = reader.uint32();
95
34
  switch (tag >>> 3) {
@@ -105,6 +44,12 @@ var PBAvatarEmoteCommand_EmoteCommand;
105
44
  }
106
45
  message.loop = reader.bool();
107
46
  continue;
47
+ case 3:
48
+ if (tag !== 24) {
49
+ break;
50
+ }
51
+ message.timestamp = reader.uint32();
52
+ continue;
108
53
  }
109
54
  if ((tag & 7) === 4 || tag === 0) {
110
55
  break;
@@ -113,34 +58,37 @@ var PBAvatarEmoteCommand_EmoteCommand;
113
58
  }
114
59
  return message;
115
60
  }
116
- PBAvatarEmoteCommand_EmoteCommand.decode = decode;
61
+ PBAvatarEmoteCommand.decode = decode;
117
62
  function fromJSON(object) {
118
63
  return {
119
64
  emoteUrn: isSet(object.emoteUrn) ? String(object.emoteUrn) : "",
120
65
  loop: isSet(object.loop) ? Boolean(object.loop) : false,
66
+ timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
121
67
  };
122
68
  }
123
- PBAvatarEmoteCommand_EmoteCommand.fromJSON = fromJSON;
69
+ PBAvatarEmoteCommand.fromJSON = fromJSON;
124
70
  function toJSON(message) {
125
71
  const obj = {};
126
72
  message.emoteUrn !== undefined && (obj.emoteUrn = message.emoteUrn);
127
73
  message.loop !== undefined && (obj.loop = message.loop);
74
+ message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
128
75
  return obj;
129
76
  }
130
- PBAvatarEmoteCommand_EmoteCommand.toJSON = toJSON;
77
+ PBAvatarEmoteCommand.toJSON = toJSON;
131
78
  function create(base) {
132
- return PBAvatarEmoteCommand_EmoteCommand.fromPartial(base !== null && base !== void 0 ? base : {});
79
+ return PBAvatarEmoteCommand.fromPartial(base !== null && base !== void 0 ? base : {});
133
80
  }
134
- PBAvatarEmoteCommand_EmoteCommand.create = create;
81
+ PBAvatarEmoteCommand.create = create;
135
82
  function fromPartial(object) {
136
- var _a, _b;
137
- const message = createBasePBAvatarEmoteCommand_EmoteCommand();
83
+ var _a, _b, _c;
84
+ const message = createBasePBAvatarEmoteCommand();
138
85
  message.emoteUrn = (_a = object.emoteUrn) !== null && _a !== void 0 ? _a : "";
139
86
  message.loop = (_b = object.loop) !== null && _b !== void 0 ? _b : false;
87
+ message.timestamp = (_c = object.timestamp) !== null && _c !== void 0 ? _c : 0;
140
88
  return message;
141
89
  }
142
- PBAvatarEmoteCommand_EmoteCommand.fromPartial = fromPartial;
143
- })(PBAvatarEmoteCommand_EmoteCommand || (exports.PBAvatarEmoteCommand_EmoteCommand = PBAvatarEmoteCommand_EmoteCommand = {}));
90
+ PBAvatarEmoteCommand.fromPartial = fromPartial;
91
+ })(PBAvatarEmoteCommand || (exports.PBAvatarEmoteCommand = PBAvatarEmoteCommand = {}));
144
92
  function isSet(value) {
145
93
  return value !== null && value !== undefined;
146
94
  }
@@ -1 +1 @@
1
- {"version":3,"file":"avatar_emote_command.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAe7D,SAAS,8BAA8B;IACrC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC;AACrC,CAAC;AAED,IAAiB,oBAAoB,CA2DpC;AA3DD,WAAiB,oBAAoB;IACnC,SAAgB,MAAM,CAAC,OAA6B,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC5F,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;YACvC,iCAAiC,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;QACpG,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IALe,2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AAC,IAAI,mCAAI,KAAK,CAAC;QACpC,OAAO,OAAO,CAAC;IACjB,CAAC;IAPe,6CAAW,cAO1B,CAAA;AACH,CAAC,EAxEgB,iCAAiC,iDAAjC,iCAAiC,QAwEjD;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
1
+ {"version":3,"file":"avatar_emote_command.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAa7D,SAAS,8BAA8B;IACrC,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;AACrD,CAAC;AAED,IAAiB,oBAAoB,CA8EpC;AA9ED,WAAiB,oBAAoB;IACnC,SAAgB,MAAM,CAAC,OAA6B,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC5F,IAAI,OAAO,CAAC,QAAQ,KAAK,EAAE,EAAE,CAAC;YAC5B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC7C,CAAC;QACD,IAAI,OAAO,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;YAC1B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACvC,CAAC;QACD,IAAI,OAAO,CAAC,SAAS,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC9C,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAXe,2BAAM,SAWrB,CAA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,EAAE,CAAC;QACjD,OAAO,CAAC,QAAQ,GAAG,MAAA,MAAM,CAAC,QAAQ,mCAAI,EAAE,CAAC;QACzC,OAAO,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,KAAK,CAAC;QACpC,OAAO,CAAC,SAAS,GAAG,MAAA,MAAM,CAAC,SAAS,mCAAI,CAAC,CAAC;QAC1C,OAAO,OAAO,CAAC;IACjB,CAAC;IANe,gCAAW,cAM1B,CAAA;AACH,CAAC,EA9EgB,oBAAoB,oCAApB,oBAAoB,QA8EpC;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -8,101 +8,34 @@ export const protobufPackage = "decentraland.sdk.components";
8
8
  * avatar emotes playback.
9
9
  */
10
10
  export interface PBAvatarEmoteCommand {
11
- emoteCommand: PBAvatarEmoteCommand_EmoteCommand | undefined;
12
- }
13
-
14
- export interface PBAvatarEmoteCommand_EmoteCommand {
15
11
  emoteUrn: string;
16
12
  loop: boolean;
13
+ /** monotonic counter */
14
+ timestamp: number;
17
15
  }
18
16
 
19
17
  function createBasePBAvatarEmoteCommand(): PBAvatarEmoteCommand {
20
- return { emoteCommand: undefined };
18
+ return { emoteUrn: "", loop: false, timestamp: 0 };
21
19
  }
22
20
 
23
21
  export namespace PBAvatarEmoteCommand {
24
22
  export function encode(message: PBAvatarEmoteCommand, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
25
- if (message.emoteCommand !== undefined) {
26
- PBAvatarEmoteCommand_EmoteCommand.encode(message.emoteCommand, writer.uint32(10).fork()).ldelim();
27
- }
28
- return writer;
29
- }
30
-
31
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEmoteCommand {
32
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
33
- let end = length === undefined ? reader.len : reader.pos + length;
34
- const message = createBasePBAvatarEmoteCommand();
35
- while (reader.pos < end) {
36
- const tag = reader.uint32();
37
- switch (tag >>> 3) {
38
- case 1:
39
- if (tag !== 10) {
40
- break;
41
- }
42
-
43
- message.emoteCommand = PBAvatarEmoteCommand_EmoteCommand.decode(reader, reader.uint32());
44
- continue;
45
- }
46
- if ((tag & 7) === 4 || tag === 0) {
47
- break;
48
- }
49
- reader.skipType(tag & 7);
50
- }
51
- return message;
52
- }
53
-
54
- export function fromJSON(object: any): PBAvatarEmoteCommand {
55
- return {
56
- emoteCommand: isSet(object.emoteCommand)
57
- ? PBAvatarEmoteCommand_EmoteCommand.fromJSON(object.emoteCommand)
58
- : undefined,
59
- };
60
- }
61
-
62
- export function toJSON(message: PBAvatarEmoteCommand): unknown {
63
- const obj: any = {};
64
- message.emoteCommand !== undefined &&
65
- (obj.emoteCommand = message.emoteCommand
66
- ? PBAvatarEmoteCommand_EmoteCommand.toJSON(message.emoteCommand)
67
- : undefined);
68
- return obj;
69
- }
70
-
71
- export function create<I extends Exact<DeepPartial<PBAvatarEmoteCommand>, I>>(base?: I): PBAvatarEmoteCommand {
72
- return PBAvatarEmoteCommand.fromPartial(base ?? {});
73
- }
74
-
75
- export function fromPartial<I extends Exact<DeepPartial<PBAvatarEmoteCommand>, I>>(object: I): PBAvatarEmoteCommand {
76
- const message = createBasePBAvatarEmoteCommand();
77
- message.emoteCommand = (object.emoteCommand !== undefined && object.emoteCommand !== null)
78
- ? PBAvatarEmoteCommand_EmoteCommand.fromPartial(object.emoteCommand)
79
- : undefined;
80
- return message;
81
- }
82
- }
83
-
84
- function createBasePBAvatarEmoteCommand_EmoteCommand(): PBAvatarEmoteCommand_EmoteCommand {
85
- return { emoteUrn: "", loop: false };
86
- }
87
-
88
- export namespace PBAvatarEmoteCommand_EmoteCommand {
89
- export function encode(
90
- message: PBAvatarEmoteCommand_EmoteCommand,
91
- writer: _m0.Writer = _m0.Writer.create(),
92
- ): _m0.Writer {
93
23
  if (message.emoteUrn !== "") {
94
24
  writer.uint32(10).string(message.emoteUrn);
95
25
  }
96
26
  if (message.loop === true) {
97
27
  writer.uint32(16).bool(message.loop);
98
28
  }
29
+ if (message.timestamp !== 0) {
30
+ writer.uint32(24).uint32(message.timestamp);
31
+ }
99
32
  return writer;
100
33
  }
101
34
 
102
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEmoteCommand_EmoteCommand {
35
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEmoteCommand {
103
36
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
104
37
  let end = length === undefined ? reader.len : reader.pos + length;
105
- const message = createBasePBAvatarEmoteCommand_EmoteCommand();
38
+ const message = createBasePBAvatarEmoteCommand();
106
39
  while (reader.pos < end) {
107
40
  const tag = reader.uint32();
108
41
  switch (tag >>> 3) {
@@ -120,6 +53,13 @@ export namespace PBAvatarEmoteCommand_EmoteCommand {
120
53
 
121
54
  message.loop = reader.bool();
122
55
  continue;
56
+ case 3:
57
+ if (tag !== 24) {
58
+ break;
59
+ }
60
+
61
+ message.timestamp = reader.uint32();
62
+ continue;
123
63
  }
124
64
  if ((tag & 7) === 4 || tag === 0) {
125
65
  break;
@@ -129,32 +69,31 @@ export namespace PBAvatarEmoteCommand_EmoteCommand {
129
69
  return message;
130
70
  }
131
71
 
132
- export function fromJSON(object: any): PBAvatarEmoteCommand_EmoteCommand {
72
+ export function fromJSON(object: any): PBAvatarEmoteCommand {
133
73
  return {
134
74
  emoteUrn: isSet(object.emoteUrn) ? String(object.emoteUrn) : "",
135
75
  loop: isSet(object.loop) ? Boolean(object.loop) : false,
76
+ timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
136
77
  };
137
78
  }
138
79
 
139
- export function toJSON(message: PBAvatarEmoteCommand_EmoteCommand): unknown {
80
+ export function toJSON(message: PBAvatarEmoteCommand): unknown {
140
81
  const obj: any = {};
141
82
  message.emoteUrn !== undefined && (obj.emoteUrn = message.emoteUrn);
142
83
  message.loop !== undefined && (obj.loop = message.loop);
84
+ message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
143
85
  return obj;
144
86
  }
145
87
 
146
- export function create<I extends Exact<DeepPartial<PBAvatarEmoteCommand_EmoteCommand>, I>>(
147
- base?: I,
148
- ): PBAvatarEmoteCommand_EmoteCommand {
149
- return PBAvatarEmoteCommand_EmoteCommand.fromPartial(base ?? {});
88
+ export function create<I extends Exact<DeepPartial<PBAvatarEmoteCommand>, I>>(base?: I): PBAvatarEmoteCommand {
89
+ return PBAvatarEmoteCommand.fromPartial(base ?? {});
150
90
  }
151
91
 
152
- export function fromPartial<I extends Exact<DeepPartial<PBAvatarEmoteCommand_EmoteCommand>, I>>(
153
- object: I,
154
- ): PBAvatarEmoteCommand_EmoteCommand {
155
- const message = createBasePBAvatarEmoteCommand_EmoteCommand();
92
+ export function fromPartial<I extends Exact<DeepPartial<PBAvatarEmoteCommand>, I>>(object: I): PBAvatarEmoteCommand {
93
+ const message = createBasePBAvatarEmoteCommand();
156
94
  message.emoteUrn = object.emoteUrn ?? "";
157
95
  message.loop = object.loop ?? false;
96
+ message.timestamp = object.timestamp ?? 0;
158
97
  return message;
159
98
  }
160
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-7290900808.commit-5536cee",
3
+ "version": "1.0.0-7713972320.commit-a4aa069",
4
4
  "description": "",
5
5
  "repository": "decentraland/protocol.git",
6
6
  "homepage": "https://github.com/decentraland/protocol#readme",
@@ -29,5 +29,5 @@
29
29
  "out-js",
30
30
  "public"
31
31
  ],
32
- "commit": "5536cee3332abd763d76cf4daae249464fbd0199"
32
+ "commit": "a4aa0694aa1eccd299854ed824ed8abafe905f67"
33
33
  }
@@ -7,10 +7,7 @@ option (common.ecs_component_id) = 1088;
7
7
  // AvatarEmoteCommand is a grow only value set, used to signal the renderer about
8
8
  // avatar emotes playback.
9
9
  message PBAvatarEmoteCommand {
10
- message EmoteCommand {
11
- string emote_urn = 1;
12
- bool loop = 2;
13
- }
14
-
15
- EmoteCommand emote_command = 1;
10
+ string emote_urn = 1;
11
+ bool loop = 2;
12
+ uint32 timestamp = 3; // monotonic counter
16
13
  }