@dcl/protocol 1.0.0-15736212864.commit-41e200e → 1.0.0-15970336800.commit-4d07dcd

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 (98) hide show
  1. package/out-js/decentraland/common/texture.gen.d.ts +0 -18
  2. package/out-js/decentraland/common/texture.gen.js +4 -104
  3. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  4. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +0 -50
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1 -175
  6. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  7. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +5 -0
  8. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +14 -2
  9. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
  11. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
  12. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -41
  14. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
  15. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  16. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -2
  17. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
  18. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  19. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +1 -35
  20. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
  21. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  22. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -3
  23. package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
  24. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  25. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
  26. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
  27. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
  29. package/out-js/decentraland/sdk/components/material.gen.js +2 -86
  30. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  31. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
  32. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
  33. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
  35. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
  36. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
  38. package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
  39. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
  41. package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
  42. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  43. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +838 -22
  44. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +5093 -941
  45. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
  46. package/out-ts/decentraland/common/texture.gen.ts +4 -119
  47. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +0 -187
  48. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +19 -1
  49. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
  50. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
  51. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +0 -20
  52. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
  53. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
  54. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
  55. package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
  56. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
  57. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
  58. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
  59. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
  60. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +5630 -939
  61. package/package.json +4 -7
  62. package/proto/decentraland/common/texture.proto +1 -8
  63. package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -16
  64. package/proto/decentraland/kernel/comms/rfc4/comms.proto +4 -0
  65. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
  66. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
  67. package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
  68. package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
  69. package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
  70. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
  71. package/proto/decentraland/sdk/components/light_source.proto +35 -0
  72. package/proto/decentraland/sdk/components/material.proto +1 -13
  73. package/proto/decentraland/sdk/components/mesh_collider.proto +1 -8
  74. package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
  75. package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
  76. package/proto/decentraland/sdk/components/ui_text.proto +0 -3
  77. package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
  78. package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
  79. package/proto/decentraland/social_service/v2/social_service_v2.proto +347 -9
  80. package/public/sdk-components.proto +0 -2
  81. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
  82. package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
  83. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
  84. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
  85. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
  86. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
  87. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
  88. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
  89. package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
  90. package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
  91. package/proto/decentraland/sdk/components/global_light.proto +0 -22
  92. package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
  93. package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
  94. package/proto/decentraland/sdk/components/light.proto +0 -42
  95. package/proto/decentraland/sdk/components/spotlight.proto +0 -21
  96. package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
  97. package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
  98. package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
@@ -1,122 +0,0 @@
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.PBGltfNodeState = exports.GltfNodeStateValue = exports.protobufPackage = void 0;
7
- exports.gltfNodeStateValueFromJSON = gltfNodeStateValueFromJSON;
8
- exports.gltfNodeStateValueToJSON = gltfNodeStateValueToJSON;
9
- /* eslint-disable */
10
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
11
- exports.protobufPackage = "decentraland.sdk.components";
12
- var GltfNodeStateValue;
13
- (function (GltfNodeStateValue) {
14
- GltfNodeStateValue[GltfNodeStateValue["GNSV_PENDING"] = 0] = "GNSV_PENDING";
15
- GltfNodeStateValue[GltfNodeStateValue["GNSV_FAILED"] = 1] = "GNSV_FAILED";
16
- GltfNodeStateValue[GltfNodeStateValue["GNSV_READY"] = 2] = "GNSV_READY";
17
- GltfNodeStateValue[GltfNodeStateValue["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
18
- })(GltfNodeStateValue || (exports.GltfNodeStateValue = GltfNodeStateValue = {}));
19
- function gltfNodeStateValueFromJSON(object) {
20
- switch (object) {
21
- case 0:
22
- case "GNSV_PENDING":
23
- return GltfNodeStateValue.GNSV_PENDING;
24
- case 1:
25
- case "GNSV_FAILED":
26
- return GltfNodeStateValue.GNSV_FAILED;
27
- case 2:
28
- case "GNSV_READY":
29
- return GltfNodeStateValue.GNSV_READY;
30
- case -1:
31
- case "UNRECOGNIZED":
32
- default:
33
- return GltfNodeStateValue.UNRECOGNIZED;
34
- }
35
- }
36
- function gltfNodeStateValueToJSON(object) {
37
- switch (object) {
38
- case GltfNodeStateValue.GNSV_PENDING:
39
- return "GNSV_PENDING";
40
- case GltfNodeStateValue.GNSV_FAILED:
41
- return "GNSV_FAILED";
42
- case GltfNodeStateValue.GNSV_READY:
43
- return "GNSV_READY";
44
- case GltfNodeStateValue.UNRECOGNIZED:
45
- default:
46
- return "UNRECOGNIZED";
47
- }
48
- }
49
- function createBasePBGltfNodeState() {
50
- return { state: 0, error: undefined };
51
- }
52
- var PBGltfNodeState;
53
- (function (PBGltfNodeState) {
54
- function encode(message, writer = minimal_1.default.Writer.create()) {
55
- if (message.state !== 0) {
56
- writer.uint32(8).int32(message.state);
57
- }
58
- if (message.error !== undefined) {
59
- writer.uint32(18).string(message.error);
60
- }
61
- return writer;
62
- }
63
- PBGltfNodeState.encode = encode;
64
- function decode(input, length) {
65
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
66
- let end = length === undefined ? reader.len : reader.pos + length;
67
- const message = createBasePBGltfNodeState();
68
- while (reader.pos < end) {
69
- const tag = reader.uint32();
70
- switch (tag >>> 3) {
71
- case 1:
72
- if (tag !== 8) {
73
- break;
74
- }
75
- message.state = reader.int32();
76
- continue;
77
- case 2:
78
- if (tag !== 18) {
79
- break;
80
- }
81
- message.error = reader.string();
82
- continue;
83
- }
84
- if ((tag & 7) === 4 || tag === 0) {
85
- break;
86
- }
87
- reader.skipType(tag & 7);
88
- }
89
- return message;
90
- }
91
- PBGltfNodeState.decode = decode;
92
- function fromJSON(object) {
93
- return {
94
- state: isSet(object.state) ? gltfNodeStateValueFromJSON(object.state) : 0,
95
- error: isSet(object.error) ? String(object.error) : undefined,
96
- };
97
- }
98
- PBGltfNodeState.fromJSON = fromJSON;
99
- function toJSON(message) {
100
- const obj = {};
101
- message.state !== undefined && (obj.state = gltfNodeStateValueToJSON(message.state));
102
- message.error !== undefined && (obj.error = message.error);
103
- return obj;
104
- }
105
- PBGltfNodeState.toJSON = toJSON;
106
- function create(base) {
107
- return PBGltfNodeState.fromPartial(base !== null && base !== void 0 ? base : {});
108
- }
109
- PBGltfNodeState.create = create;
110
- function fromPartial(object) {
111
- var _a, _b;
112
- const message = createBasePBGltfNodeState();
113
- message.state = (_a = object.state) !== null && _a !== void 0 ? _a : 0;
114
- message.error = (_b = object.error) !== null && _b !== void 0 ? _b : undefined;
115
- return message;
116
- }
117
- PBGltfNodeState.fromPartial = fromPartial;
118
- })(PBGltfNodeState || (exports.PBGltfNodeState = PBGltfNodeState = {}));
119
- function isSet(value) {
120
- return value !== null && value !== undefined;
121
- }
122
- //# sourceMappingURL=gltf_node_state.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gltf_node_state.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/gltf_node_state.gen.ts"],"names":[],"mappings":";;;;;;AAYA,gEAgBC;AAED,4DAYC;AA1CD,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAE7D,IAAY,kBAKX;A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AI,SAAS,CAAC;QAC1C,OAAO,OAAO,CAAC;IACjB,CAAC;IALe,2BAAW,cAK1B,CAAA;AACH,CAAC,EAjEgB,eAAe,+BAAf,eAAe,QAiE/B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -1,116 +0,0 @@
1
- /* eslint-disable */
2
- import _m0 from "protobufjs/minimal";
3
-
4
- export const protobufPackage = "decentraland.sdk.components";
5
-
6
- /**
7
- * a GltfNode links a scene entity with a node from within a gltf, allowing the scene to inspect it or modify it.
8
- * This component must be added to a direct child of an entity with a PBGltfContainer component, or
9
- * to a direct child of another entity with a GltfNode component, and the referenced gltf node must be a descendent of the gltf node
10
- * in the parent.
11
- * The name must match the path of one of the nodes within the Gltf. These are available on the GltfContainerLoadingState component.
12
- *
13
- * The renderer will attach a PBGltfNodeState to the entity describing the state. Once the state is `GNS_READY`,
14
- * - the `Transform` will be updated to match the position of the node within the gltf (relative to the gltf root, or the parent node),
15
- * - a `MeshRenderer` with a GltfMesh mesh type will be added (if the gltf node has a mesh).
16
- * - a `MeshCollider` with a GltfMesh mesh type will be added (if the gltf node has a collider).
17
- * - a `Material` component including a GltfMaterial reference will be added (if the gltf node has a material).
18
- *
19
- * After creation, if an animation moves the node, the `Transform` will be updated.
20
- *
21
- * From the scene, you can modify various components to alter the gltf node:
22
- * - modifying the `Transform` position/rotation/scale will move the node. The position is interpreted relative to the gltf root (or parent node),
23
- * regardless of any intermediate gltf node hierarchy.
24
- * If an animation is playing, the animation takes priority and the scene entity's position will be updated to match the animation.
25
- * - `Visibility` can be added to hide or show the node and it's children in the gltf hierarchy.
26
- * - `MeshRenderer` can be added/modified/removed to create/modify/remove a mesh on the node.
27
- * - `MeshCollider` can be added/modified/removed to create/modify/remove a collider on the node.
28
- * - `Material` can be added or modified to change the material properties. If the gltf node has a material, the original material will be
29
- * used as a base, and any gltf features (e.g. occlusion maps) from the gtlf spec that the renderer supports but that are not exposed in the
30
- * PBMaterial will be maintained.
31
- *
32
- * The scene can add additional entities as children to the gltf node, but structural modifications of the gltf are not possible:
33
- * - changing the scene hierarchy will not change the gltf node hierarchy. Moving the entity out of the gltf will sever the link and
34
- * change the state to `GNS_FAILED`.
35
- * - deleting the scene entity will not delete the gltf node.
36
- *
37
- * Removing the GltfNode will revert any changes to the original gltf. If the GltfNode component is removed and the mesh/collider/material
38
- * are not removed, this will result in a duplication of these components as the previously-linked entity will retain it's components and
39
- * the gltf node will also be displayed.
40
- */
41
- export interface PBGltfNode {
42
- /** the path of the target node in the Gltf. */
43
- path: string;
44
- }
45
-
46
- function createBasePBGltfNode(): PBGltfNode {
47
- return { path: "" };
48
- }
49
-
50
- export namespace PBGltfNode {
51
- export function encode(message: PBGltfNode, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
52
- if (message.path !== "") {
53
- writer.uint32(10).string(message.path);
54
- }
55
- return writer;
56
- }
57
-
58
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNode {
59
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
60
- let end = length === undefined ? reader.len : reader.pos + length;
61
- const message = createBasePBGltfNode();
62
- while (reader.pos < end) {
63
- const tag = reader.uint32();
64
- switch (tag >>> 3) {
65
- case 1:
66
- if (tag !== 10) {
67
- break;
68
- }
69
-
70
- message.path = 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
-
81
- export function fromJSON(object: any): PBGltfNode {
82
- return { path: isSet(object.path) ? String(object.path) : "" };
83
- }
84
-
85
- export function toJSON(message: PBGltfNode): unknown {
86
- const obj: any = {};
87
- message.path !== undefined && (obj.path = message.path);
88
- return obj;
89
- }
90
-
91
- export function create<I extends Exact<DeepPartial<PBGltfNode>, I>>(base?: I): PBGltfNode {
92
- return PBGltfNode.fromPartial(base ?? {});
93
- }
94
-
95
- export function fromPartial<I extends Exact<DeepPartial<PBGltfNode>, I>>(object: I): PBGltfNode {
96
- const message = createBasePBGltfNode();
97
- message.path = object.path ?? "";
98
- return message;
99
- }
100
- }
101
-
102
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
103
-
104
- export type DeepPartial<T> = T extends Builtin ? T
105
- : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
106
- : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
107
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
108
- : Partial<T>;
109
-
110
- type KeysOfUnion<T> = T extends T ? keyof T : never;
111
- export type Exact<P, I extends P> = P extends Builtin ? P
112
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
113
-
114
- function isSet(value: any): boolean {
115
- return value !== null && value !== undefined;
116
- }
@@ -1,139 +0,0 @@
1
- /* eslint-disable */
2
- import _m0 from "protobufjs/minimal";
3
-
4
- export const protobufPackage = "decentraland.sdk.components";
5
-
6
- export enum GltfNodeStateValue {
7
- GNSV_PENDING = 0,
8
- GNSV_FAILED = 1,
9
- GNSV_READY = 2,
10
- UNRECOGNIZED = -1,
11
- }
12
-
13
- export function gltfNodeStateValueFromJSON(object: any): GltfNodeStateValue {
14
- switch (object) {
15
- case 0:
16
- case "GNSV_PENDING":
17
- return GltfNodeStateValue.GNSV_PENDING;
18
- case 1:
19
- case "GNSV_FAILED":
20
- return GltfNodeStateValue.GNSV_FAILED;
21
- case 2:
22
- case "GNSV_READY":
23
- return GltfNodeStateValue.GNSV_READY;
24
- case -1:
25
- case "UNRECOGNIZED":
26
- default:
27
- return GltfNodeStateValue.UNRECOGNIZED;
28
- }
29
- }
30
-
31
- export function gltfNodeStateValueToJSON(object: GltfNodeStateValue): string {
32
- switch (object) {
33
- case GltfNodeStateValue.GNSV_PENDING:
34
- return "GNSV_PENDING";
35
- case GltfNodeStateValue.GNSV_FAILED:
36
- return "GNSV_FAILED";
37
- case GltfNodeStateValue.GNSV_READY:
38
- return "GNSV_READY";
39
- case GltfNodeStateValue.UNRECOGNIZED:
40
- default:
41
- return "UNRECOGNIZED";
42
- }
43
- }
44
-
45
- /**
46
- * The state of a linked gltf node.
47
- * If the state is GNSV_FAILED, the renderer may describe the failure in the error string.
48
- */
49
- export interface PBGltfNodeState {
50
- state: GltfNodeStateValue;
51
- error?: string | undefined;
52
- }
53
-
54
- function createBasePBGltfNodeState(): PBGltfNodeState {
55
- return { state: 0, error: undefined };
56
- }
57
-
58
- export namespace PBGltfNodeState {
59
- export function encode(message: PBGltfNodeState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
60
- if (message.state !== 0) {
61
- writer.uint32(8).int32(message.state);
62
- }
63
- if (message.error !== undefined) {
64
- writer.uint32(18).string(message.error);
65
- }
66
- return writer;
67
- }
68
-
69
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeState {
70
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
71
- let end = length === undefined ? reader.len : reader.pos + length;
72
- const message = createBasePBGltfNodeState();
73
- while (reader.pos < end) {
74
- const tag = reader.uint32();
75
- switch (tag >>> 3) {
76
- case 1:
77
- if (tag !== 8) {
78
- break;
79
- }
80
-
81
- message.state = reader.int32() as any;
82
- continue;
83
- case 2:
84
- if (tag !== 18) {
85
- break;
86
- }
87
-
88
- message.error = reader.string();
89
- continue;
90
- }
91
- if ((tag & 7) === 4 || tag === 0) {
92
- break;
93
- }
94
- reader.skipType(tag & 7);
95
- }
96
- return message;
97
- }
98
-
99
- export function fromJSON(object: any): PBGltfNodeState {
100
- return {
101
- state: isSet(object.state) ? gltfNodeStateValueFromJSON(object.state) : 0,
102
- error: isSet(object.error) ? String(object.error) : undefined,
103
- };
104
- }
105
-
106
- export function toJSON(message: PBGltfNodeState): unknown {
107
- const obj: any = {};
108
- message.state !== undefined && (obj.state = gltfNodeStateValueToJSON(message.state));
109
- message.error !== undefined && (obj.error = message.error);
110
- return obj;
111
- }
112
-
113
- export function create<I extends Exact<DeepPartial<PBGltfNodeState>, I>>(base?: I): PBGltfNodeState {
114
- return PBGltfNodeState.fromPartial(base ?? {});
115
- }
116
-
117
- export function fromPartial<I extends Exact<DeepPartial<PBGltfNodeState>, I>>(object: I): PBGltfNodeState {
118
- const message = createBasePBGltfNodeState();
119
- message.state = object.state ?? 0;
120
- message.error = object.error ?? undefined;
121
- return message;
122
- }
123
- }
124
-
125
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
126
-
127
- export type DeepPartial<T> = T extends Builtin ? T
128
- : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
129
- : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
130
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
131
- : Partial<T>;
132
-
133
- type KeysOfUnion<T> = T extends T ? keyof T : never;
134
- export type Exact<P, I extends P> = P extends Builtin ? P
135
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
136
-
137
- function isSet(value: any): boolean {
138
- return value !== null && value !== undefined;
139
- }
@@ -1,30 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package decentraland.sdk.components;
4
-
5
- import "decentraland/sdk/components/common/id.proto";
6
- import "decentraland/common/colors.proto";
7
-
8
- option (common.ecs_component_id) = 1210;
9
-
10
- message PBCameraLayer {
11
- // layer to which these settings apply. must be > 0
12
- // Layer 0 is the default "real world" layer viewed by the player and cannot be modified.
13
- uint32 layer = 1;
14
-
15
- // should the sun light affect this layer? default false
16
- optional bool directional_light = 2;
17
-
18
- // should this layer show player avatars? default false
19
- optional bool show_avatars = 3;
20
-
21
- // should this layer show the sky? default false
22
- optional bool show_skybox = 4;
23
-
24
- // should this layer show distance fog? default false
25
- optional bool show_fog = 5;
26
-
27
- // ambient light overrides for this layer. default -> use same as main camera
28
- optional decentraland.common.Color3 ambient_color_override = 6;
29
- optional float ambient_brightness_override = 7;
30
- }
@@ -1,11 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package decentraland.sdk.components;
4
-
5
- import "decentraland/sdk/components/common/id.proto";
6
-
7
- option (common.ecs_component_id) = 1208;
8
-
9
- message PBCameraLayers {
10
- repeated uint32 layers = 1;
11
- }
@@ -1,22 +0,0 @@
1
- syntax = "proto3";
2
- package decentraland.sdk.components;
3
-
4
- import "decentraland/common/colors.proto";
5
- import "decentraland/common/vectors.proto";
6
-
7
- import "decentraland/sdk/components/common/id.proto";
8
- option (common.ecs_component_id) = 1206;
9
-
10
- // defines the global scene light settings. must be added to the scene root.
11
- // to control sunlight color, intensity, shadows etc, you can also add a PBLight to the scene root.
12
- message PBGlobalLight {
13
- // the direction the directional light shines in.
14
- // default depends on time of day and explorer implementation
15
- optional decentraland.common.Vector3 direction = 1;
16
- // ambient light color
17
- // default: White
18
- optional decentraland.common.Color3 ambient_color = 2;
19
- // ambient light intensity. the explorer default ambient brightness is multiplied by this non-physical quantity.
20
- // default 1
21
- optional float ambient_brightness = 3;
22
- }
@@ -1,42 +0,0 @@
1
- syntax = "proto3";
2
- package decentraland.sdk.components;
3
-
4
- import "decentraland/sdk/components/common/id.proto";
5
- option (common.ecs_component_id) = 1200;
6
-
7
- // a GltfNode links a scene entity with a node from within a gltf, allowing the scene to inspect it or modify it.
8
- // This component must be added to a direct child of an entity with a PBGltfContainer component, or
9
- // to a direct child of another entity with a GltfNode component, and the referenced gltf node must be a descendent of the gltf node
10
- // in the parent.
11
- // The name must match the path of one of the nodes within the Gltf. These are available on the GltfContainerLoadingState component.
12
- //
13
- // The renderer will attach a PBGltfNodeState to the entity describing the state. Once the state is `GNS_READY`,
14
- // - the `Transform` will be updated to match the position of the node within the gltf (relative to the gltf root, or the parent node),
15
- // - a `MeshRenderer` with a GltfMesh mesh type will be added (if the gltf node has a mesh).
16
- // - a `MeshCollider` with a GltfMesh mesh type will be added (if the gltf node has a collider).
17
- // - a `Material` component including a GltfMaterial reference will be added (if the gltf node has a material).
18
- //
19
- // After creation, if an animation moves the node, the `Transform` will be updated.
20
- //
21
- // From the scene, you can modify various components to alter the gltf node:
22
- // - modifying the `Transform` position/rotation/scale will move the node. The position is interpreted relative to the gltf root (or parent node),
23
- // regardless of any intermediate gltf node hierarchy.
24
- // If an animation is playing, the animation takes priority and the scene entity's position will be updated to match the animation.
25
- // - `Visibility` can be added to hide or show the node and it's children in the gltf hierarchy.
26
- // - `MeshRenderer` can be added/modified/removed to create/modify/remove a mesh on the node.
27
- // - `MeshCollider` can be added/modified/removed to create/modify/remove a collider on the node.
28
- // - `Material` can be added or modified to change the material properties. If the gltf node has a material, the original material will be
29
- // used as a base, and any gltf features (e.g. occlusion maps) from the gtlf spec that the renderer supports but that are not exposed in the
30
- // PBMaterial will be maintained.
31
- //
32
- // The scene can add additional entities as children to the gltf node, but structural modifications of the gltf are not possible:
33
- // - changing the scene hierarchy will not change the gltf node hierarchy. Moving the entity out of the gltf will sever the link and
34
- // change the state to `GNS_FAILED`.
35
- // - deleting the scene entity will not delete the gltf node.
36
- //
37
- // Removing the GltfNode will revert any changes to the original gltf. If the GltfNode component is removed and the mesh/collider/material
38
- // are not removed, this will result in a duplication of these components as the previously-linked entity will retain it's components and
39
- // the gltf node will also be displayed.
40
- message PBGltfNode {
41
- string path = 1; // the path of the target node in the Gltf.
42
- }
@@ -1,20 +0,0 @@
1
- syntax = "proto3";
2
- package decentraland.sdk.components;
3
-
4
- import "decentraland/sdk/components/common/id.proto";
5
- option (common.ecs_component_id) = 1201;
6
-
7
- // See the details of the GltfNode component for more information.
8
-
9
- // The state of a linked gltf node.
10
- // If the state is GNSV_FAILED, the renderer may describe the failure in the error string.
11
- message PBGltfNodeState {
12
- GltfNodeStateValue state = 1;
13
- optional string error = 2;
14
- }
15
-
16
- enum GltfNodeStateValue {
17
- GNSV_PENDING = 0;
18
- GNSV_FAILED = 1;
19
- GNSV_READY = 2;
20
- }
@@ -1,42 +0,0 @@
1
- syntax = "proto3";
2
- package decentraland.sdk.components;
3
-
4
- import "decentraland/common/colors.proto";
5
-
6
- import "decentraland/sdk/components/common/id.proto";
7
- option (common.ecs_component_id) = 1204;
8
-
9
- // defines a light source.
10
- // the world has a default directional light (like sunlight) which can be overridden by adding the light component to the scene root.
11
- // a PBGlobalLight component can also be added to the root to control the directional light direction.
12
- // point lights (lightbulbs) or spotlights can be created by attaching the light component to non-root entities.
13
- message PBLight {
14
- // whether the light is on
15
- // default true
16
- optional bool enabled = 1;
17
- // light brightness in lux (lumens/m^2).
18
- //
19
- // for global directional light, this applies as a constant value at all surfaces and distances (though the effect on the surface still depends on incidence angle).
20
- // the default global light illuminance varies from 400 (sunrise/sunset) to 10,000 (midday).
21
- // for typical values, see https://en.wikipedia.org/wiki/Lux#Illuminance
22
- //
23
- // for point and spot lights, this is the lumens/m^2 at 1m distance from the light. to transform from raw lumens,
24
- // divide lumens by ~12 (4*pi).
25
- // e.g. a 100w household bulb with 1200 lumens would have an illuminance of ~100.
26
- // a lighthouse bulb with 200,000 lumens would have an illuminance of ~15,000 (ignoring beam reflections)
27
- //
28
- // default
29
- // for point/spotlights: 10,000
30
- // for global directional light: depends on explorer implementation. may vary on light direction, time of day, etc
31
- optional float illuminance = 2;
32
- // whether the light should cast shadows.
33
- // note: even when set to true the engine may not display shadows, or may only show shadows for a limited number
34
- // of lights depending on the implementation, platform, and user settings.
35
- // default
36
- // for point/spotlights: false / off
37
- // for global directional light: true / on
38
- optional bool shadows = 3;
39
- // light color
40
- // default White
41
- optional decentraland.common.Color3 color = 4;
42
- }
@@ -1,21 +0,0 @@
1
- syntax = "proto3";
2
- package decentraland.sdk.components;
3
-
4
- import "decentraland/sdk/components/common/id.proto";
5
- option (common.ecs_component_id) = 1205;
6
-
7
- // defines a spotlight.
8
- // spotlights are point lights that emit light only in a cone around the transform's forward direction.
9
- // add this component together with the PBLight component to transform a point light into a spotlight.
10
- // note that spotlights do not model any internal reflections / focus, they only restrict the area of effect.
11
- // so for e.g. a torch beam, the bulb illuminance should be multiplied by the solid angle.
12
- // a typical torch with a beam width of 15 degrees would use outer angle of 0.15 (7.5 degrees in radians),
13
- // and an illuminance approximately equal to the bulb's lumens, e.g. 1200.
14
- message PBSpotlight {
15
- // the cone radius in radians. distance away from forward in which the light is visible.
16
- // for a torch a value around 0.15 is appropriate.
17
- float angle = 1;
18
- // optional angle at which the light is brightest. should be <= outer angle.
19
- // if specified, the light will fall off smoothly between `inner_angle` and `angle`.
20
- optional float inner_angle = 2;
21
- }
@@ -1,46 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package decentraland.sdk.components;
4
-
5
- import "decentraland/sdk/components/common/id.proto";
6
- import "decentraland/common/colors.proto";
7
-
8
- option (common.ecs_component_id) = 1207;
9
-
10
- message PBTextureCamera {
11
- // rendered texture width
12
- optional uint32 width = 1;
13
- // rendered texture height
14
- optional uint32 height = 2;
15
- // which layer of entities to render. entity layers can be specified by adding PBCameraLayers to target entities.
16
- // defaults to 0
17
- optional uint32 layer = 3;
18
-
19
- // default black
20
- optional decentraland.common.Color4 clear_color = 6;
21
- // default infinity
22
- optional float far_plane = 7;
23
-
24
- oneof mode {
25
- Perspective perspective = 8;
26
- Orthographic orthographic = 9;
27
- /* Portal portal = 10; */
28
- };
29
-
30
- // controls whether this camera acts as a receiver for audio on sources with matching `PBCameraLayers`.
31
- // range: 0 (off) - 1 (full volume)
32
- // default: 0
33
- optional float volume = 10;
34
- }
35
-
36
- message Perspective {
37
- // vertical field of view in radians
38
- // defaults to pi/4 = 45 degrees
39
- optional float field_of_view = 1;
40
- }
41
-
42
- message Orthographic {
43
- // vertical extent of the visible range in meters
44
- // defaults to 4m
45
- optional float vertical_range = 1;
46
- }
@@ -1,16 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "decentraland/sdk/components/common/id.proto";
4
- package decentraland.sdk.components;
5
-
6
- option (common.ecs_component_id) = 1203;
7
-
8
- import "decentraland/common/colors.proto";
9
-
10
- // The UiCanvas component can be attached to a ui root entity to specify properties of the ui texture.
11
- message PBUiCanvas {
12
- uint32 width = 1;
13
- uint32 height = 2;
14
-
15
- optional decentraland.common.Color4 color = 3; // default = (0.0, 0.0, 0.0, 0.0) / transparent
16
- }
@@ -1,12 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package decentraland.sdk.components;
4
-
5
- import "decentraland/sdk/components/common/id.proto";
6
- import "decentraland/common/vectors.proto";
7
-
8
- option (common.ecs_component_id) = 1202;
9
-
10
- message PBUiScrollResult {
11
- decentraland.common.Vector2 value = 1;
12
- }