@dcl/protocol 1.0.0-5812097343.commit-8025576 → 1.0.0-5824184720.commit-b3b5ebf

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.
Files changed (22) hide show
  1. package/out-js/decentraland/sdk/components/avatar_base.gen.d.ts +36 -0
  2. package/out-js/decentraland/sdk/components/avatar_base.gen.js +129 -0
  3. package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -0
  4. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +46 -0
  5. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +147 -0
  6. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -0
  7. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +36 -0
  8. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +90 -0
  9. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -0
  10. package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
  11. package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
  12. package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
  13. package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +149 -0
  14. package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +176 -0
  15. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +105 -0
  16. package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
  17. package/package.json +2 -2
  18. package/proto/decentraland/sdk/components/avatar_base.proto +15 -0
  19. package/proto/decentraland/sdk/components/avatar_emote_command.proto +16 -0
  20. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +13 -0
  21. package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
  22. package/public/sdk-components.proto +4 -1
@@ -0,0 +1,36 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ import { Color3 } from "../../common/colors.gen";
3
+ export declare const protobufPackage = "decentraland.sdk.components";
4
+ /** AvatarBase sets all modifiers over the avatar's apparence. */
5
+ export interface PBAvatarBase {
6
+ skinColor: Color3 | undefined;
7
+ eyesColor: Color3 | undefined;
8
+ hairColor: Color3 | undefined;
9
+ bodyShapeUrn: string;
10
+ name: string;
11
+ }
12
+ export declare namespace PBAvatarBase {
13
+ function encode(message: PBAvatarBase, writer?: _m0.Writer): _m0.Writer;
14
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarBase;
15
+ function fromJSON(object: any): PBAvatarBase;
16
+ function toJSON(message: PBAvatarBase): unknown;
17
+ function create<I extends Exact<DeepPartial<PBAvatarBase>, I>>(base?: I): PBAvatarBase;
18
+ function fromPartial<I extends Exact<DeepPartial<PBAvatarBase>, I>>(object: I): PBAvatarBase;
19
+ }
20
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
21
+ 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 {
22
+ $case: string;
23
+ } ? {
24
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
25
+ } & {
26
+ $case: T["$case"];
27
+ } : T extends {} ? {
28
+ [K in keyof T]?: DeepPartial<T[K]>;
29
+ } : Partial<T>;
30
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
31
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
32
+ [K in keyof P]: Exact<P[K], I[K]>;
33
+ } & {
34
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
35
+ };
36
+ export {};
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PBAvatarBase = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ const colors_gen_1 = require("../../common/colors.gen");
10
+ exports.protobufPackage = "decentraland.sdk.components";
11
+ function createBasePBAvatarBase() {
12
+ return { skinColor: undefined, eyesColor: undefined, hairColor: undefined, bodyShapeUrn: "", name: "" };
13
+ }
14
+ var PBAvatarBase;
15
+ (function (PBAvatarBase) {
16
+ function encode(message, writer = minimal_1.default.Writer.create()) {
17
+ if (message.skinColor !== undefined) {
18
+ colors_gen_1.Color3.encode(message.skinColor, writer.uint32(10).fork()).ldelim();
19
+ }
20
+ if (message.eyesColor !== undefined) {
21
+ colors_gen_1.Color3.encode(message.eyesColor, writer.uint32(18).fork()).ldelim();
22
+ }
23
+ if (message.hairColor !== undefined) {
24
+ colors_gen_1.Color3.encode(message.hairColor, writer.uint32(26).fork()).ldelim();
25
+ }
26
+ if (message.bodyShapeUrn !== "") {
27
+ writer.uint32(34).string(message.bodyShapeUrn);
28
+ }
29
+ if (message.name !== "") {
30
+ writer.uint32(42).string(message.name);
31
+ }
32
+ return writer;
33
+ }
34
+ PBAvatarBase.encode = encode;
35
+ function decode(input, length) {
36
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
37
+ let end = length === undefined ? reader.len : reader.pos + length;
38
+ const message = createBasePBAvatarBase();
39
+ while (reader.pos < end) {
40
+ const tag = reader.uint32();
41
+ switch (tag >>> 3) {
42
+ case 1:
43
+ if (tag !== 10) {
44
+ break;
45
+ }
46
+ message.skinColor = colors_gen_1.Color3.decode(reader, reader.uint32());
47
+ continue;
48
+ case 2:
49
+ if (tag !== 18) {
50
+ break;
51
+ }
52
+ message.eyesColor = colors_gen_1.Color3.decode(reader, reader.uint32());
53
+ continue;
54
+ case 3:
55
+ if (tag !== 26) {
56
+ break;
57
+ }
58
+ message.hairColor = colors_gen_1.Color3.decode(reader, reader.uint32());
59
+ continue;
60
+ case 4:
61
+ if (tag !== 34) {
62
+ break;
63
+ }
64
+ message.bodyShapeUrn = reader.string();
65
+ continue;
66
+ case 5:
67
+ if (tag !== 42) {
68
+ break;
69
+ }
70
+ message.name = reader.string();
71
+ continue;
72
+ }
73
+ if ((tag & 7) === 4 || tag === 0) {
74
+ break;
75
+ }
76
+ reader.skipType(tag & 7);
77
+ }
78
+ return message;
79
+ }
80
+ PBAvatarBase.decode = decode;
81
+ function fromJSON(object) {
82
+ return {
83
+ skinColor: isSet(object.skinColor) ? colors_gen_1.Color3.fromJSON(object.skinColor) : undefined,
84
+ eyesColor: isSet(object.eyesColor) ? colors_gen_1.Color3.fromJSON(object.eyesColor) : undefined,
85
+ hairColor: isSet(object.hairColor) ? colors_gen_1.Color3.fromJSON(object.hairColor) : undefined,
86
+ bodyShapeUrn: isSet(object.bodyShapeUrn) ? String(object.bodyShapeUrn) : "",
87
+ name: isSet(object.name) ? String(object.name) : "",
88
+ };
89
+ }
90
+ PBAvatarBase.fromJSON = fromJSON;
91
+ function toJSON(message) {
92
+ const obj = {};
93
+ message.skinColor !== undefined &&
94
+ (obj.skinColor = message.skinColor ? colors_gen_1.Color3.toJSON(message.skinColor) : undefined);
95
+ message.eyesColor !== undefined &&
96
+ (obj.eyesColor = message.eyesColor ? colors_gen_1.Color3.toJSON(message.eyesColor) : undefined);
97
+ message.hairColor !== undefined &&
98
+ (obj.hairColor = message.hairColor ? colors_gen_1.Color3.toJSON(message.hairColor) : undefined);
99
+ message.bodyShapeUrn !== undefined && (obj.bodyShapeUrn = message.bodyShapeUrn);
100
+ message.name !== undefined && (obj.name = message.name);
101
+ return obj;
102
+ }
103
+ PBAvatarBase.toJSON = toJSON;
104
+ function create(base) {
105
+ return PBAvatarBase.fromPartial(base !== null && base !== void 0 ? base : {});
106
+ }
107
+ PBAvatarBase.create = create;
108
+ function fromPartial(object) {
109
+ var _a, _b;
110
+ const message = createBasePBAvatarBase();
111
+ message.skinColor = (object.skinColor !== undefined && object.skinColor !== null)
112
+ ? colors_gen_1.Color3.fromPartial(object.skinColor)
113
+ : undefined;
114
+ message.eyesColor = (object.eyesColor !== undefined && object.eyesColor !== null)
115
+ ? colors_gen_1.Color3.fromPartial(object.eyesColor)
116
+ : undefined;
117
+ message.hairColor = (object.hairColor !== undefined && object.hairColor !== null)
118
+ ? colors_gen_1.Color3.fromPartial(object.hairColor)
119
+ : undefined;
120
+ message.bodyShapeUrn = (_a = object.bodyShapeUrn) !== null && _a !== void 0 ? _a : "";
121
+ message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
122
+ return message;
123
+ }
124
+ PBAvatarBase.fromPartial = fromPartial;
125
+ })(PBAvatarBase || (exports.PBAvatarBase = PBAvatarBase = {}));
126
+ function isSet(value) {
127
+ return value !== null && value !== undefined;
128
+ }
129
+ //# sourceMappingURL=avatar_base.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar_base.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_base.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,wDAAiD;AAEpC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAW7D,SAAS,sBAAsB;IAC7B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AAC1G,CAAC;AAED,IAAiB,YAAY,CAiH5B;AAjHD,WAAiB,YAAY;IAC3B,SAAgB,MAAM,CAAC,OAAqB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACpF,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS,EAAE;YACnC,mBAAM,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;SACrE;QACD,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS,EAAE;YACnC,mBAAM,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS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CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,EAAE,CAAC;QACjC,OAAO,OAAO,CAAC;IACjB,CAAC;IAde,wBAAW,cAc1B,CAAA;AACH,CAAC,EAjHgB,YAAY,4BAAZ,YAAY,QAiH5B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,46 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.sdk.components";
3
+ /**
4
+ * AvatarEmoteCommand is a grow only value set, used to signal the renderer about
5
+ * avatar emotes playback.
6
+ */
7
+ export interface PBAvatarEmoteCommand {
8
+ emoteCommand: PBAvatarEmoteCommand_EmoteCommand | undefined;
9
+ }
10
+ export interface PBAvatarEmoteCommand_EmoteCommand {
11
+ emoteUrn: string;
12
+ loop: boolean;
13
+ }
14
+ export declare namespace PBAvatarEmoteCommand {
15
+ function encode(message: PBAvatarEmoteCommand, writer?: _m0.Writer): _m0.Writer;
16
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEmoteCommand;
17
+ function fromJSON(object: any): PBAvatarEmoteCommand;
18
+ function toJSON(message: PBAvatarEmoteCommand): unknown;
19
+ function create<I extends Exact<DeepPartial<PBAvatarEmoteCommand>, I>>(base?: I): PBAvatarEmoteCommand;
20
+ function fromPartial<I extends Exact<DeepPartial<PBAvatarEmoteCommand>, I>>(object: I): PBAvatarEmoteCommand;
21
+ }
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
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
31
+ 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
+ $case: string;
33
+ } ? {
34
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
35
+ } & {
36
+ $case: T["$case"];
37
+ } : T extends {} ? {
38
+ [K in keyof T]?: DeepPartial<T[K]>;
39
+ } : Partial<T>;
40
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
41
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
42
+ [K in keyof P]: Exact<P[K], I[K]>;
43
+ } & {
44
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
45
+ };
46
+ export {};
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PBAvatarEmoteCommand_EmoteCommand = exports.PBAvatarEmoteCommand = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "decentraland.sdk.components";
10
+ function createBasePBAvatarEmoteCommand() {
11
+ return { emoteCommand: undefined };
12
+ }
13
+ var PBAvatarEmoteCommand;
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
+ function encode(message, writer = minimal_1.default.Writer.create()) {
80
+ if (message.emoteUrn !== "") {
81
+ writer.uint32(10).string(message.emoteUrn);
82
+ }
83
+ if (message.loop === true) {
84
+ writer.uint32(16).bool(message.loop);
85
+ }
86
+ return writer;
87
+ }
88
+ PBAvatarEmoteCommand_EmoteCommand.encode = encode;
89
+ function decode(input, length) {
90
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
91
+ let end = length === undefined ? reader.len : reader.pos + length;
92
+ const message = createBasePBAvatarEmoteCommand_EmoteCommand();
93
+ while (reader.pos < end) {
94
+ const tag = reader.uint32();
95
+ switch (tag >>> 3) {
96
+ case 1:
97
+ if (tag !== 10) {
98
+ break;
99
+ }
100
+ message.emoteUrn = reader.string();
101
+ continue;
102
+ case 2:
103
+ if (tag !== 16) {
104
+ break;
105
+ }
106
+ message.loop = reader.bool();
107
+ continue;
108
+ }
109
+ if ((tag & 7) === 4 || tag === 0) {
110
+ break;
111
+ }
112
+ reader.skipType(tag & 7);
113
+ }
114
+ return message;
115
+ }
116
+ PBAvatarEmoteCommand_EmoteCommand.decode = decode;
117
+ function fromJSON(object) {
118
+ return {
119
+ emoteUrn: isSet(object.emoteUrn) ? String(object.emoteUrn) : "",
120
+ loop: isSet(object.loop) ? Boolean(object.loop) : false,
121
+ };
122
+ }
123
+ PBAvatarEmoteCommand_EmoteCommand.fromJSON = fromJSON;
124
+ function toJSON(message) {
125
+ const obj = {};
126
+ message.emoteUrn !== undefined && (obj.emoteUrn = message.emoteUrn);
127
+ message.loop !== undefined && (obj.loop = message.loop);
128
+ return obj;
129
+ }
130
+ PBAvatarEmoteCommand_EmoteCommand.toJSON = toJSON;
131
+ function create(base) {
132
+ return PBAvatarEmoteCommand_EmoteCommand.fromPartial(base !== null && base !== void 0 ? base : {});
133
+ }
134
+ PBAvatarEmoteCommand_EmoteCommand.create = create;
135
+ function fromPartial(object) {
136
+ var _a, _b;
137
+ const message = createBasePBAvatarEmoteCommand_EmoteCommand();
138
+ message.emoteUrn = (_a = object.emoteUrn) !== null && _a !== void 0 ? _a : "";
139
+ message.loop = (_b = object.loop) !== null && _b !== void 0 ? _b : false;
140
+ return message;
141
+ }
142
+ PBAvatarEmoteCommand_EmoteCommand.fromPartial = fromPartial;
143
+ })(PBAvatarEmoteCommand_EmoteCommand || (exports.PBAvatarEmoteCommand_EmoteCommand = PBAvatarEmoteCommand_EmoteCommand = {}));
144
+ function isSet(value) {
145
+ return value !== null && value !== undefined;
146
+ }
147
+ //# sourceMappingURL=avatar_emote_command.gen.js.map
@@ -0,0 +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;YACtC,iCAAiC,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;SACnG;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IALe,2BAAM,SAKrB,CAAA;IAED,SAAgB,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpE,MAAM,MAAM,GAA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K,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,36 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.sdk.components";
3
+ /**
4
+ * AvatarEquipData is used to read the information about the avatar's owneables.
5
+ * this component is written by the engine using the communications transports'
6
+ * data.
7
+ */
8
+ export interface PBAvatarEquippedData {
9
+ wearableUrns: string[];
10
+ emotesUrns: string[];
11
+ }
12
+ export declare namespace PBAvatarEquippedData {
13
+ function encode(message: PBAvatarEquippedData, writer?: _m0.Writer): _m0.Writer;
14
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
15
+ function fromJSON(object: any): PBAvatarEquippedData;
16
+ function toJSON(message: PBAvatarEquippedData): unknown;
17
+ function create<I extends Exact<DeepPartial<PBAvatarEquippedData>, I>>(base?: I): PBAvatarEquippedData;
18
+ function fromPartial<I extends Exact<DeepPartial<PBAvatarEquippedData>, I>>(object: I): PBAvatarEquippedData;
19
+ }
20
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
21
+ 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 {
22
+ $case: string;
23
+ } ? {
24
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
25
+ } & {
26
+ $case: T["$case"];
27
+ } : T extends {} ? {
28
+ [K in keyof T]?: DeepPartial<T[K]>;
29
+ } : Partial<T>;
30
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
31
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
32
+ [K in keyof P]: Exact<P[K], I[K]>;
33
+ } & {
34
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
35
+ };
36
+ export {};
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PBAvatarEquippedData = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "decentraland.sdk.components";
10
+ function createBasePBAvatarEquippedData() {
11
+ return { wearableUrns: [], emotesUrns: [] };
12
+ }
13
+ var PBAvatarEquippedData;
14
+ (function (PBAvatarEquippedData) {
15
+ function encode(message, writer = minimal_1.default.Writer.create()) {
16
+ for (const v of message.wearableUrns) {
17
+ writer.uint32(10).string(v);
18
+ }
19
+ for (const v of message.emotesUrns) {
20
+ writer.uint32(18).string(v);
21
+ }
22
+ return writer;
23
+ }
24
+ PBAvatarEquippedData.encode = encode;
25
+ function decode(input, length) {
26
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBasePBAvatarEquippedData();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.wearableUrns.push(reader.string());
37
+ continue;
38
+ case 2:
39
+ if (tag !== 18) {
40
+ break;
41
+ }
42
+ message.emotesUrns.push(reader.string());
43
+ continue;
44
+ }
45
+ if ((tag & 7) === 4 || tag === 0) {
46
+ break;
47
+ }
48
+ reader.skipType(tag & 7);
49
+ }
50
+ return message;
51
+ }
52
+ PBAvatarEquippedData.decode = decode;
53
+ function fromJSON(object) {
54
+ return {
55
+ wearableUrns: Array.isArray(object === null || object === void 0 ? void 0 : object.wearableUrns) ? object.wearableUrns.map((e) => String(e)) : [],
56
+ emotesUrns: Array.isArray(object === null || object === void 0 ? void 0 : object.emotesUrns) ? object.emotesUrns.map((e) => String(e)) : [],
57
+ };
58
+ }
59
+ PBAvatarEquippedData.fromJSON = fromJSON;
60
+ function toJSON(message) {
61
+ const obj = {};
62
+ if (message.wearableUrns) {
63
+ obj.wearableUrns = message.wearableUrns.map((e) => e);
64
+ }
65
+ else {
66
+ obj.wearableUrns = [];
67
+ }
68
+ if (message.emotesUrns) {
69
+ obj.emotesUrns = message.emotesUrns.map((e) => e);
70
+ }
71
+ else {
72
+ obj.emotesUrns = [];
73
+ }
74
+ return obj;
75
+ }
76
+ PBAvatarEquippedData.toJSON = toJSON;
77
+ function create(base) {
78
+ return PBAvatarEquippedData.fromPartial(base !== null && base !== void 0 ? base : {});
79
+ }
80
+ PBAvatarEquippedData.create = create;
81
+ function fromPartial(object) {
82
+ var _a, _b;
83
+ const message = createBasePBAvatarEquippedData();
84
+ message.wearableUrns = ((_a = object.wearableUrns) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
85
+ message.emotesUrns = ((_b = object.emotesUrns) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
86
+ return message;
87
+ }
88
+ PBAvatarEquippedData.fromPartial = fromPartial;
89
+ })(PBAvatarEquippedData || (exports.PBAvatarEquippedData = PBAvatarEquippedData = {}));
90
+ //# sourceMappingURL=avatar_equipped_data.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar_equipped_data.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAY7D,SAAS,8BAA8B;IACrC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;AAC9C,CAAC;AAED,IAAiB,oBAAoB,CAyEpC;AAzED,WAAiB,oBAAoB;IACnC,SAAgB,MAAM,CAAC,OAA6B,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC5F,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,YAAY,EAAE;YACpC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAA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AW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAFe,2BAAM,SAErB,CAAA;IAED,SAAgB,WAAW,CAAwD,MAAS;;QAC1F,MAAM,OAAO,GAAG,8BAA8B,EAAE,CAAC;QACjD,OAAO,CAAC,YAAY,GAAG,CAAA,MAAA,MAAM,CAAC,YAAY,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QAChE,OAAO,CAAC,UAAU,GAAG,CAAA,MAAA,MAAM,CAAC,UAAU,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QAC5D,OAAO,OAAO,CAAC;IACjB,CAAC;IALe,gCAAW,cAK1B,CAAA;AACH,CAAC,EAzEgB,oBAAoB,oCAApB,oBAAoB,QAyEpC"}
@@ -0,0 +1,37 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.sdk.components";
3
+ /**
4
+ * PlayerIdentityData is used to read the information about the avatar's
5
+ * identity. this component is written by the engine using the communications
6
+ * transports' data.
7
+ */
8
+ export interface PBPlayerIdentityData {
9
+ /** ethereum address of this player */
10
+ address: string;
11
+ isGuest: boolean;
12
+ }
13
+ export declare namespace PBPlayerIdentityData {
14
+ function encode(message: PBPlayerIdentityData, writer?: _m0.Writer): _m0.Writer;
15
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBPlayerIdentityData;
16
+ function fromJSON(object: any): PBPlayerIdentityData;
17
+ function toJSON(message: PBPlayerIdentityData): unknown;
18
+ function create<I extends Exact<DeepPartial<PBPlayerIdentityData>, I>>(base?: I): PBPlayerIdentityData;
19
+ function fromPartial<I extends Exact<DeepPartial<PBPlayerIdentityData>, I>>(object: I): PBPlayerIdentityData;
20
+ }
21
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
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 {
23
+ $case: string;
24
+ } ? {
25
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
26
+ } & {
27
+ $case: T["$case"];
28
+ } : T extends {} ? {
29
+ [K in keyof T]?: DeepPartial<T[K]>;
30
+ } : Partial<T>;
31
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
32
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
33
+ [K in keyof P]: Exact<P[K], I[K]>;
34
+ } & {
35
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
36
+ };
37
+ export {};
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PBPlayerIdentityData = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "decentraland.sdk.components";
10
+ function createBasePBPlayerIdentityData() {
11
+ return { address: "", isGuest: false };
12
+ }
13
+ var PBPlayerIdentityData;
14
+ (function (PBPlayerIdentityData) {
15
+ function encode(message, writer = minimal_1.default.Writer.create()) {
16
+ if (message.address !== "") {
17
+ writer.uint32(10).string(message.address);
18
+ }
19
+ if (message.isGuest === true) {
20
+ writer.uint32(24).bool(message.isGuest);
21
+ }
22
+ return writer;
23
+ }
24
+ PBPlayerIdentityData.encode = encode;
25
+ function decode(input, length) {
26
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBasePBPlayerIdentityData();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.address = reader.string();
37
+ continue;
38
+ case 3:
39
+ if (tag !== 24) {
40
+ break;
41
+ }
42
+ message.isGuest = reader.bool();
43
+ continue;
44
+ }
45
+ if ((tag & 7) === 4 || tag === 0) {
46
+ break;
47
+ }
48
+ reader.skipType(tag & 7);
49
+ }
50
+ return message;
51
+ }
52
+ PBPlayerIdentityData.decode = decode;
53
+ function fromJSON(object) {
54
+ return {
55
+ address: isSet(object.address) ? String(object.address) : "",
56
+ isGuest: isSet(object.isGuest) ? Boolean(object.isGuest) : false,
57
+ };
58
+ }
59
+ PBPlayerIdentityData.fromJSON = fromJSON;
60
+ function toJSON(message) {
61
+ const obj = {};
62
+ message.address !== undefined && (obj.address = message.address);
63
+ message.isGuest !== undefined && (obj.isGuest = message.isGuest);
64
+ return obj;
65
+ }
66
+ PBPlayerIdentityData.toJSON = toJSON;
67
+ function create(base) {
68
+ return PBPlayerIdentityData.fromPartial(base !== null && base !== void 0 ? base : {});
69
+ }
70
+ PBPlayerIdentityData.create = create;
71
+ function fromPartial(object) {
72
+ var _a, _b;
73
+ const message = createBasePBPlayerIdentityData();
74
+ message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
75
+ message.isGuest = (_b = object.isGuest) !== null && _b !== void 0 ? _b : false;
76
+ return message;
77
+ }
78
+ PBPlayerIdentityData.fromPartial = fromPartial;
79
+ })(PBPlayerIdentityData || (exports.PBPlayerIdentityData = PBPlayerIdentityData = {}));
80
+ function isSet(value) {
81
+ return value !== null && value !== undefined;
82
+ }
83
+ //# sourceMappingURL=player_identity_data.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"player_identity_data.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/player_identity_data.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAa7D,SAAS,8BAA8B;IACrC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,OA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AC1F,MAAM,OAAO,GAAG,8BAA8B,EAAE,CAAC;QACjD,OAAO,CAAC,OAAO,GAAG,MAAA,MAAM,CAAC,OAAO,mCAAI,EAAE,CAAC;QACvC,OAAO,CAAC,OAAO,GAAG,MAAA,MAAM,CAAC,OAAO,mCAAI,KAAK,CAAC;QAC1C,OAAO,OAAO,CAAC;IACjB,CAAC;IALe,gCAAW,cAK1B,CAAA;AACH,CAAC,EAjEgB,oBAAoB,oCAApB,oBAAoB,QAiEpC;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,149 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+ import { Color3 } from "../../common/colors.gen";
4
+
5
+ export const protobufPackage = "decentraland.sdk.components";
6
+
7
+ /** AvatarBase sets all modifiers over the avatar's apparence. */
8
+ export interface PBAvatarBase {
9
+ skinColor: Color3 | undefined;
10
+ eyesColor: Color3 | undefined;
11
+ hairColor: Color3 | undefined;
12
+ bodyShapeUrn: string;
13
+ name: string;
14
+ }
15
+
16
+ function createBasePBAvatarBase(): PBAvatarBase {
17
+ return { skinColor: undefined, eyesColor: undefined, hairColor: undefined, bodyShapeUrn: "", name: "" };
18
+ }
19
+
20
+ export namespace PBAvatarBase {
21
+ export function encode(message: PBAvatarBase, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
22
+ if (message.skinColor !== undefined) {
23
+ Color3.encode(message.skinColor, writer.uint32(10).fork()).ldelim();
24
+ }
25
+ if (message.eyesColor !== undefined) {
26
+ Color3.encode(message.eyesColor, writer.uint32(18).fork()).ldelim();
27
+ }
28
+ if (message.hairColor !== undefined) {
29
+ Color3.encode(message.hairColor, writer.uint32(26).fork()).ldelim();
30
+ }
31
+ if (message.bodyShapeUrn !== "") {
32
+ writer.uint32(34).string(message.bodyShapeUrn);
33
+ }
34
+ if (message.name !== "") {
35
+ writer.uint32(42).string(message.name);
36
+ }
37
+ return writer;
38
+ }
39
+
40
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarBase {
41
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
42
+ let end = length === undefined ? reader.len : reader.pos + length;
43
+ const message = createBasePBAvatarBase();
44
+ while (reader.pos < end) {
45
+ const tag = reader.uint32();
46
+ switch (tag >>> 3) {
47
+ case 1:
48
+ if (tag !== 10) {
49
+ break;
50
+ }
51
+
52
+ message.skinColor = Color3.decode(reader, reader.uint32());
53
+ continue;
54
+ case 2:
55
+ if (tag !== 18) {
56
+ break;
57
+ }
58
+
59
+ message.eyesColor = Color3.decode(reader, reader.uint32());
60
+ continue;
61
+ case 3:
62
+ if (tag !== 26) {
63
+ break;
64
+ }
65
+
66
+ message.hairColor = Color3.decode(reader, reader.uint32());
67
+ continue;
68
+ case 4:
69
+ if (tag !== 34) {
70
+ break;
71
+ }
72
+
73
+ message.bodyShapeUrn = reader.string();
74
+ continue;
75
+ case 5:
76
+ if (tag !== 42) {
77
+ break;
78
+ }
79
+
80
+ message.name = reader.string();
81
+ continue;
82
+ }
83
+ if ((tag & 7) === 4 || tag === 0) {
84
+ break;
85
+ }
86
+ reader.skipType(tag & 7);
87
+ }
88
+ return message;
89
+ }
90
+
91
+ export function fromJSON(object: any): PBAvatarBase {
92
+ return {
93
+ skinColor: isSet(object.skinColor) ? Color3.fromJSON(object.skinColor) : undefined,
94
+ eyesColor: isSet(object.eyesColor) ? Color3.fromJSON(object.eyesColor) : undefined,
95
+ hairColor: isSet(object.hairColor) ? Color3.fromJSON(object.hairColor) : undefined,
96
+ bodyShapeUrn: isSet(object.bodyShapeUrn) ? String(object.bodyShapeUrn) : "",
97
+ name: isSet(object.name) ? String(object.name) : "",
98
+ };
99
+ }
100
+
101
+ export function toJSON(message: PBAvatarBase): unknown {
102
+ const obj: any = {};
103
+ message.skinColor !== undefined &&
104
+ (obj.skinColor = message.skinColor ? Color3.toJSON(message.skinColor) : undefined);
105
+ message.eyesColor !== undefined &&
106
+ (obj.eyesColor = message.eyesColor ? Color3.toJSON(message.eyesColor) : undefined);
107
+ message.hairColor !== undefined &&
108
+ (obj.hairColor = message.hairColor ? Color3.toJSON(message.hairColor) : undefined);
109
+ message.bodyShapeUrn !== undefined && (obj.bodyShapeUrn = message.bodyShapeUrn);
110
+ message.name !== undefined && (obj.name = message.name);
111
+ return obj;
112
+ }
113
+
114
+ export function create<I extends Exact<DeepPartial<PBAvatarBase>, I>>(base?: I): PBAvatarBase {
115
+ return PBAvatarBase.fromPartial(base ?? {});
116
+ }
117
+
118
+ export function fromPartial<I extends Exact<DeepPartial<PBAvatarBase>, I>>(object: I): PBAvatarBase {
119
+ const message = createBasePBAvatarBase();
120
+ message.skinColor = (object.skinColor !== undefined && object.skinColor !== null)
121
+ ? Color3.fromPartial(object.skinColor)
122
+ : undefined;
123
+ message.eyesColor = (object.eyesColor !== undefined && object.eyesColor !== null)
124
+ ? Color3.fromPartial(object.eyesColor)
125
+ : undefined;
126
+ message.hairColor = (object.hairColor !== undefined && object.hairColor !== null)
127
+ ? Color3.fromPartial(object.hairColor)
128
+ : undefined;
129
+ message.bodyShapeUrn = object.bodyShapeUrn ?? "";
130
+ message.name = object.name ?? "";
131
+ return message;
132
+ }
133
+ }
134
+
135
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
136
+
137
+ export type DeepPartial<T> = T extends Builtin ? T
138
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
139
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
140
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
141
+ : Partial<T>;
142
+
143
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
144
+ export type Exact<P, I extends P> = P extends Builtin ? P
145
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
146
+
147
+ function isSet(value: any): boolean {
148
+ return value !== null && value !== undefined;
149
+ }
@@ -0,0 +1,176 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+
4
+ export const protobufPackage = "decentraland.sdk.components";
5
+
6
+ /**
7
+ * AvatarEmoteCommand is a grow only value set, used to signal the renderer about
8
+ * avatar emotes playback.
9
+ */
10
+ export interface PBAvatarEmoteCommand {
11
+ emoteCommand: PBAvatarEmoteCommand_EmoteCommand | undefined;
12
+ }
13
+
14
+ export interface PBAvatarEmoteCommand_EmoteCommand {
15
+ emoteUrn: string;
16
+ loop: boolean;
17
+ }
18
+
19
+ function createBasePBAvatarEmoteCommand(): PBAvatarEmoteCommand {
20
+ return { emoteCommand: undefined };
21
+ }
22
+
23
+ export namespace PBAvatarEmoteCommand {
24
+ 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
+ if (message.emoteUrn !== "") {
94
+ writer.uint32(10).string(message.emoteUrn);
95
+ }
96
+ if (message.loop === true) {
97
+ writer.uint32(16).bool(message.loop);
98
+ }
99
+ return writer;
100
+ }
101
+
102
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEmoteCommand_EmoteCommand {
103
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
104
+ let end = length === undefined ? reader.len : reader.pos + length;
105
+ const message = createBasePBAvatarEmoteCommand_EmoteCommand();
106
+ while (reader.pos < end) {
107
+ const tag = reader.uint32();
108
+ switch (tag >>> 3) {
109
+ case 1:
110
+ if (tag !== 10) {
111
+ break;
112
+ }
113
+
114
+ message.emoteUrn = reader.string();
115
+ continue;
116
+ case 2:
117
+ if (tag !== 16) {
118
+ break;
119
+ }
120
+
121
+ message.loop = reader.bool();
122
+ continue;
123
+ }
124
+ if ((tag & 7) === 4 || tag === 0) {
125
+ break;
126
+ }
127
+ reader.skipType(tag & 7);
128
+ }
129
+ return message;
130
+ }
131
+
132
+ export function fromJSON(object: any): PBAvatarEmoteCommand_EmoteCommand {
133
+ return {
134
+ emoteUrn: isSet(object.emoteUrn) ? String(object.emoteUrn) : "",
135
+ loop: isSet(object.loop) ? Boolean(object.loop) : false,
136
+ };
137
+ }
138
+
139
+ export function toJSON(message: PBAvatarEmoteCommand_EmoteCommand): unknown {
140
+ const obj: any = {};
141
+ message.emoteUrn !== undefined && (obj.emoteUrn = message.emoteUrn);
142
+ message.loop !== undefined && (obj.loop = message.loop);
143
+ return obj;
144
+ }
145
+
146
+ export function create<I extends Exact<DeepPartial<PBAvatarEmoteCommand_EmoteCommand>, I>>(
147
+ base?: I,
148
+ ): PBAvatarEmoteCommand_EmoteCommand {
149
+ return PBAvatarEmoteCommand_EmoteCommand.fromPartial(base ?? {});
150
+ }
151
+
152
+ export function fromPartial<I extends Exact<DeepPartial<PBAvatarEmoteCommand_EmoteCommand>, I>>(
153
+ object: I,
154
+ ): PBAvatarEmoteCommand_EmoteCommand {
155
+ const message = createBasePBAvatarEmoteCommand_EmoteCommand();
156
+ message.emoteUrn = object.emoteUrn ?? "";
157
+ message.loop = object.loop ?? false;
158
+ return message;
159
+ }
160
+ }
161
+
162
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
163
+
164
+ export type DeepPartial<T> = T extends Builtin ? T
165
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
166
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
167
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
168
+ : Partial<T>;
169
+
170
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
171
+ export type Exact<P, I extends P> = P extends Builtin ? P
172
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
173
+
174
+ function isSet(value: any): boolean {
175
+ return value !== null && value !== undefined;
176
+ }
@@ -0,0 +1,105 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+
4
+ export const protobufPackage = "decentraland.sdk.components";
5
+
6
+ /**
7
+ * AvatarEquipData is used to read the information about the avatar's owneables.
8
+ * this component is written by the engine using the communications transports'
9
+ * data.
10
+ */
11
+ export interface PBAvatarEquippedData {
12
+ wearableUrns: string[];
13
+ emotesUrns: string[];
14
+ }
15
+
16
+ function createBasePBAvatarEquippedData(): PBAvatarEquippedData {
17
+ return { wearableUrns: [], emotesUrns: [] };
18
+ }
19
+
20
+ export namespace PBAvatarEquippedData {
21
+ export function encode(message: PBAvatarEquippedData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
22
+ for (const v of message.wearableUrns) {
23
+ writer.uint32(10).string(v!);
24
+ }
25
+ for (const v of message.emotesUrns) {
26
+ writer.uint32(18).string(v!);
27
+ }
28
+ return writer;
29
+ }
30
+
31
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData {
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 = createBasePBAvatarEquippedData();
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.wearableUrns.push(reader.string());
44
+ continue;
45
+ case 2:
46
+ if (tag !== 18) {
47
+ break;
48
+ }
49
+
50
+ message.emotesUrns.push(reader.string());
51
+ continue;
52
+ }
53
+ if ((tag & 7) === 4 || tag === 0) {
54
+ break;
55
+ }
56
+ reader.skipType(tag & 7);
57
+ }
58
+ return message;
59
+ }
60
+
61
+ export function fromJSON(object: any): PBAvatarEquippedData {
62
+ return {
63
+ wearableUrns: Array.isArray(object?.wearableUrns) ? object.wearableUrns.map((e: any) => String(e)) : [],
64
+ emotesUrns: Array.isArray(object?.emotesUrns) ? object.emotesUrns.map((e: any) => String(e)) : [],
65
+ };
66
+ }
67
+
68
+ export function toJSON(message: PBAvatarEquippedData): unknown {
69
+ const obj: any = {};
70
+ if (message.wearableUrns) {
71
+ obj.wearableUrns = message.wearableUrns.map((e) => e);
72
+ } else {
73
+ obj.wearableUrns = [];
74
+ }
75
+ if (message.emotesUrns) {
76
+ obj.emotesUrns = message.emotesUrns.map((e) => e);
77
+ } else {
78
+ obj.emotesUrns = [];
79
+ }
80
+ return obj;
81
+ }
82
+
83
+ export function create<I extends Exact<DeepPartial<PBAvatarEquippedData>, I>>(base?: I): PBAvatarEquippedData {
84
+ return PBAvatarEquippedData.fromPartial(base ?? {});
85
+ }
86
+
87
+ export function fromPartial<I extends Exact<DeepPartial<PBAvatarEquippedData>, I>>(object: I): PBAvatarEquippedData {
88
+ const message = createBasePBAvatarEquippedData();
89
+ message.wearableUrns = object.wearableUrns?.map((e) => e) || [];
90
+ message.emotesUrns = object.emotesUrns?.map((e) => e) || [];
91
+ return message;
92
+ }
93
+ }
94
+
95
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
96
+
97
+ export type DeepPartial<T> = T extends Builtin ? T
98
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
99
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
100
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
101
+ : Partial<T>;
102
+
103
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
104
+ export type Exact<P, I extends P> = P extends Builtin ? P
105
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
@@ -0,0 +1,102 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+
4
+ export const protobufPackage = "decentraland.sdk.components";
5
+
6
+ /**
7
+ * PlayerIdentityData is used to read the information about the avatar's
8
+ * identity. this component is written by the engine using the communications
9
+ * transports' data.
10
+ */
11
+ export interface PBPlayerIdentityData {
12
+ /** ethereum address of this player */
13
+ address: string;
14
+ isGuest: boolean;
15
+ }
16
+
17
+ function createBasePBPlayerIdentityData(): PBPlayerIdentityData {
18
+ return { address: "", isGuest: false };
19
+ }
20
+
21
+ export namespace PBPlayerIdentityData {
22
+ export function encode(message: PBPlayerIdentityData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
23
+ if (message.address !== "") {
24
+ writer.uint32(10).string(message.address);
25
+ }
26
+ if (message.isGuest === true) {
27
+ writer.uint32(24).bool(message.isGuest);
28
+ }
29
+ return writer;
30
+ }
31
+
32
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPlayerIdentityData {
33
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
34
+ let end = length === undefined ? reader.len : reader.pos + length;
35
+ const message = createBasePBPlayerIdentityData();
36
+ while (reader.pos < end) {
37
+ const tag = reader.uint32();
38
+ switch (tag >>> 3) {
39
+ case 1:
40
+ if (tag !== 10) {
41
+ break;
42
+ }
43
+
44
+ message.address = reader.string();
45
+ continue;
46
+ case 3:
47
+ if (tag !== 24) {
48
+ break;
49
+ }
50
+
51
+ message.isGuest = reader.bool();
52
+ continue;
53
+ }
54
+ if ((tag & 7) === 4 || tag === 0) {
55
+ break;
56
+ }
57
+ reader.skipType(tag & 7);
58
+ }
59
+ return message;
60
+ }
61
+
62
+ export function fromJSON(object: any): PBPlayerIdentityData {
63
+ return {
64
+ address: isSet(object.address) ? String(object.address) : "",
65
+ isGuest: isSet(object.isGuest) ? Boolean(object.isGuest) : false,
66
+ };
67
+ }
68
+
69
+ export function toJSON(message: PBPlayerIdentityData): unknown {
70
+ const obj: any = {};
71
+ message.address !== undefined && (obj.address = message.address);
72
+ message.isGuest !== undefined && (obj.isGuest = message.isGuest);
73
+ return obj;
74
+ }
75
+
76
+ export function create<I extends Exact<DeepPartial<PBPlayerIdentityData>, I>>(base?: I): PBPlayerIdentityData {
77
+ return PBPlayerIdentityData.fromPartial(base ?? {});
78
+ }
79
+
80
+ export function fromPartial<I extends Exact<DeepPartial<PBPlayerIdentityData>, I>>(object: I): PBPlayerIdentityData {
81
+ const message = createBasePBPlayerIdentityData();
82
+ message.address = object.address ?? "";
83
+ message.isGuest = object.isGuest ?? false;
84
+ return message;
85
+ }
86
+ }
87
+
88
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
89
+
90
+ export type DeepPartial<T> = T extends Builtin ? T
91
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
92
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
93
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
94
+ : Partial<T>;
95
+
96
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
97
+ export type Exact<P, I extends P> = P extends Builtin ? P
98
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
99
+
100
+ function isSet(value: any): boolean {
101
+ return value !== null && value !== undefined;
102
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-5812097343.commit-8025576",
3
+ "version": "1.0.0-5824184720.commit-b3b5ebf",
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": "80255769e81c9b66ecb5057487e5ce31de7496b6"
32
+ "commit": "b3b5ebfeb9468854c4d492df514113421a572916"
33
33
  }
@@ -0,0 +1,15 @@
1
+
2
+ syntax = "proto3";
3
+ package decentraland.sdk.components;
4
+ import "decentraland/common/colors.proto";
5
+ import "decentraland/sdk/components/common/id.proto";
6
+ option (common.ecs_component_id) = 1087;
7
+
8
+ // AvatarBase sets all modifiers over the avatar's apparence.
9
+ message PBAvatarBase {
10
+ decentraland.common.Color3 skin_color = 1;
11
+ decentraland.common.Color3 eyes_color = 2;
12
+ decentraland.common.Color3 hair_color = 3;
13
+ string body_shape_urn = 4;
14
+ string name = 5;
15
+ }
@@ -0,0 +1,16 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1088;
6
+
7
+ // AvatarEmoteCommand is a grow only value set, used to signal the renderer about
8
+ // avatar emotes playback.
9
+ message PBAvatarEmoteCommand {
10
+ message EmoteCommand {
11
+ string emote_urn = 1;
12
+ bool loop = 2;
13
+ }
14
+
15
+ EmoteCommand emote_command = 1;
16
+ }
@@ -0,0 +1,13 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1091;
6
+
7
+ // AvatarEquipData is used to read the information about the avatar's owneables.
8
+ // this component is written by the engine using the communications transports'
9
+ // data.
10
+ message PBAvatarEquippedData {
11
+ repeated string wearable_urns = 1;
12
+ repeated string emotes_urns = 2;
13
+ }
@@ -0,0 +1,13 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1089;
6
+
7
+ // PlayerIdentityData is used to read the information about the avatar's
8
+ // identity. this component is written by the engine using the communications
9
+ // transports' data.
10
+ message PBPlayerIdentityData {
11
+ string address = 1; // ethereum address of this player
12
+ bool is_guest = 3;
13
+ }
@@ -1,11 +1,13 @@
1
1
  syntax = "proto3";
2
2
 
3
3
  package decentraland.sdk.components;
4
-
5
4
  import public "decentraland/sdk/components/animator.proto";
6
5
  import public "decentraland/sdk/components/audio_source.proto";
7
6
  import public "decentraland/sdk/components/audio_stream.proto";
8
7
  import public "decentraland/sdk/components/avatar_attach.proto";
8
+ import public "decentraland/sdk/components/avatar_base.proto";
9
+ import public "decentraland/sdk/components/avatar_emote_command.proto";
10
+ import public "decentraland/sdk/components/avatar_equipped_data.proto";
9
11
  import public "decentraland/sdk/components/avatar_modifier_area.proto";
10
12
  import public "decentraland/sdk/components/avatar_shape.proto";
11
13
  import public "decentraland/sdk/components/billboard.proto";
@@ -18,6 +20,7 @@ import public "decentraland/sdk/components/material.proto";
18
20
  import public "decentraland/sdk/components/mesh_collider.proto";
19
21
  import public "decentraland/sdk/components/mesh_renderer.proto";
20
22
  import public "decentraland/sdk/components/nft_shape.proto";
23
+ import public "decentraland/sdk/components/player_identity_data.proto";
21
24
  import public "decentraland/sdk/components/pointer_events_result.proto";
22
25
  import public "decentraland/sdk/components/pointer_events.proto";
23
26
  import public "decentraland/sdk/components/pointer_lock.proto";