@dcl/protocol 1.0.0-25007946712.commit-f0cdbab → 1.0.0-25334828851.commit-af74b1d

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 (114) 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 -109
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1 -383
  6. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  7. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
  8. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
  9. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -41
  11. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
  12. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -2
  14. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
  15. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  16. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +1 -35
  17. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
  18. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  19. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +1 -3
  20. package/out-js/decentraland/sdk/components/common/input_action.gen.js +1 -18
  21. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  22. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
  23. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
  24. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  25. package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
  26. package/out-js/decentraland/sdk/components/material.gen.js +2 -86
  27. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
  29. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
  30. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  31. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
  32. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
  33. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +0 -13
  35. package/out-js/decentraland/sdk/components/raycast.gen.js +2 -64
  36. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +0 -2
  38. package/out-js/decentraland/sdk/components/ui_input.gen.js +1 -14
  39. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
  41. package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
  42. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  43. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
  44. package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
  45. package/out-js/decentraland/sdk/components/ui_transform.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 -410
  48. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
  49. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
  50. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
  51. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
  52. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +1 -18
  53. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
  54. package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
  55. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
  56. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
  57. package/out-ts/decentraland/sdk/components/raycast.gen.ts +1 -73
  58. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +1 -19
  59. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
  60. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
  61. package/package.json +3 -6
  62. package/proto/decentraland/common/texture.proto +1 -8
  63. package/proto/decentraland/kernel/apis/restricted_actions.proto +1 -39
  64. package/proto/decentraland/sdk/components/audio_analysis.proto +44 -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 +1 -3
  70. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
  71. package/proto/decentraland/sdk/components/material.proto +1 -13
  72. package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
  73. package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
  74. package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
  75. package/proto/decentraland/sdk/components/raycast.proto +0 -13
  76. package/proto/decentraland/sdk/components/ui_input.proto +0 -1
  77. package/proto/decentraland/sdk/components/ui_text.proto +0 -3
  78. package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
  79. package/public/sdk-components.proto +0 -4
  80. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -45
  81. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -138
  82. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +0 -1
  83. package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +0 -36
  84. package/out-js/decentraland/sdk/components/avatar_movement.gen.js +0 -113
  85. package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +0 -1
  86. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +0 -48
  87. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -207
  88. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +0 -1
  89. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
  90. package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
  91. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
  92. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
  93. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
  94. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
  95. package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +0 -52
  96. package/out-js/decentraland/sdk/components/input_modifier.gen.js +0 -233
  97. package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +0 -1
  98. package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +0 -183
  99. package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -136
  100. package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -249
  101. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
  102. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
  103. package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +0 -265
  104. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -18
  105. package/proto/decentraland/sdk/components/avatar_movement.proto +0 -46
  106. package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -22
  107. package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
  108. package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
  109. package/proto/decentraland/sdk/components/global_light.proto +0 -22
  110. package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
  111. package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
  112. package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
  113. package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
  114. package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
@@ -1,265 +0,0 @@
1
- /* eslint-disable */
2
- import _m0 from "protobufjs/minimal";
3
-
4
- export const protobufPackage = "decentraland.sdk.components";
5
-
6
- export interface PBInputModifier {
7
- mode?: { $case: "standard"; standard: PBInputModifier_StandardInput } | undefined;
8
- }
9
-
10
- /** when a boolean = false (default) the message is ignored and doesn't consume bandwidth */
11
- export interface PBInputModifier_StandardInput {
12
- disableAll?: boolean | undefined;
13
- disableWalk?: boolean | undefined;
14
- disableJog?: boolean | undefined;
15
- disableRun?: boolean | undefined;
16
- disableJump?: boolean | undefined;
17
- disableEmote?: boolean | undefined;
18
- disableDoubleJump?: boolean | undefined;
19
- disableGliding?: boolean | undefined;
20
- }
21
-
22
- function createBasePBInputModifier(): PBInputModifier {
23
- return { mode: undefined };
24
- }
25
-
26
- export namespace PBInputModifier {
27
- export function encode(message: PBInputModifier, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
28
- switch (message.mode?.$case) {
29
- case "standard":
30
- PBInputModifier_StandardInput.encode(message.mode.standard, writer.uint32(10).fork()).ldelim();
31
- break;
32
- }
33
- return writer;
34
- }
35
-
36
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier {
37
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38
- let end = length === undefined ? reader.len : reader.pos + length;
39
- const message = createBasePBInputModifier();
40
- while (reader.pos < end) {
41
- const tag = reader.uint32();
42
- switch (tag >>> 3) {
43
- case 1:
44
- if (tag !== 10) {
45
- break;
46
- }
47
-
48
- message.mode = { $case: "standard", standard: PBInputModifier_StandardInput.decode(reader, reader.uint32()) };
49
- continue;
50
- }
51
- if ((tag & 7) === 4 || tag === 0) {
52
- break;
53
- }
54
- reader.skipType(tag & 7);
55
- }
56
- return message;
57
- }
58
-
59
- export function fromJSON(object: any): PBInputModifier {
60
- return {
61
- mode: isSet(object.standard)
62
- ? { $case: "standard", standard: PBInputModifier_StandardInput.fromJSON(object.standard) }
63
- : undefined,
64
- };
65
- }
66
-
67
- export function toJSON(message: PBInputModifier): unknown {
68
- const obj: any = {};
69
- message.mode?.$case === "standard" &&
70
- (obj.standard = message.mode?.standard
71
- ? PBInputModifier_StandardInput.toJSON(message.mode?.standard)
72
- : undefined);
73
- return obj;
74
- }
75
-
76
- export function create<I extends Exact<DeepPartial<PBInputModifier>, I>>(base?: I): PBInputModifier {
77
- return PBInputModifier.fromPartial(base ?? {});
78
- }
79
-
80
- export function fromPartial<I extends Exact<DeepPartial<PBInputModifier>, I>>(object: I): PBInputModifier {
81
- const message = createBasePBInputModifier();
82
- if (object.mode?.$case === "standard" && object.mode?.standard !== undefined && object.mode?.standard !== null) {
83
- message.mode = { $case: "standard", standard: PBInputModifier_StandardInput.fromPartial(object.mode.standard) };
84
- }
85
- return message;
86
- }
87
- }
88
-
89
- function createBasePBInputModifier_StandardInput(): PBInputModifier_StandardInput {
90
- return {
91
- disableAll: undefined,
92
- disableWalk: undefined,
93
- disableJog: undefined,
94
- disableRun: undefined,
95
- disableJump: undefined,
96
- disableEmote: undefined,
97
- disableDoubleJump: undefined,
98
- disableGliding: undefined,
99
- };
100
- }
101
-
102
- export namespace PBInputModifier_StandardInput {
103
- export function encode(message: PBInputModifier_StandardInput, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
104
- if (message.disableAll !== undefined) {
105
- writer.uint32(8).bool(message.disableAll);
106
- }
107
- if (message.disableWalk !== undefined) {
108
- writer.uint32(16).bool(message.disableWalk);
109
- }
110
- if (message.disableJog !== undefined) {
111
- writer.uint32(24).bool(message.disableJog);
112
- }
113
- if (message.disableRun !== undefined) {
114
- writer.uint32(32).bool(message.disableRun);
115
- }
116
- if (message.disableJump !== undefined) {
117
- writer.uint32(40).bool(message.disableJump);
118
- }
119
- if (message.disableEmote !== undefined) {
120
- writer.uint32(48).bool(message.disableEmote);
121
- }
122
- if (message.disableDoubleJump !== undefined) {
123
- writer.uint32(56).bool(message.disableDoubleJump);
124
- }
125
- if (message.disableGliding !== undefined) {
126
- writer.uint32(64).bool(message.disableGliding);
127
- }
128
- return writer;
129
- }
130
-
131
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput {
132
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
133
- let end = length === undefined ? reader.len : reader.pos + length;
134
- const message = createBasePBInputModifier_StandardInput();
135
- while (reader.pos < end) {
136
- const tag = reader.uint32();
137
- switch (tag >>> 3) {
138
- case 1:
139
- if (tag !== 8) {
140
- break;
141
- }
142
-
143
- message.disableAll = reader.bool();
144
- continue;
145
- case 2:
146
- if (tag !== 16) {
147
- break;
148
- }
149
-
150
- message.disableWalk = reader.bool();
151
- continue;
152
- case 3:
153
- if (tag !== 24) {
154
- break;
155
- }
156
-
157
- message.disableJog = reader.bool();
158
- continue;
159
- case 4:
160
- if (tag !== 32) {
161
- break;
162
- }
163
-
164
- message.disableRun = reader.bool();
165
- continue;
166
- case 5:
167
- if (tag !== 40) {
168
- break;
169
- }
170
-
171
- message.disableJump = reader.bool();
172
- continue;
173
- case 6:
174
- if (tag !== 48) {
175
- break;
176
- }
177
-
178
- message.disableEmote = reader.bool();
179
- continue;
180
- case 7:
181
- if (tag !== 56) {
182
- break;
183
- }
184
-
185
- message.disableDoubleJump = reader.bool();
186
- continue;
187
- case 8:
188
- if (tag !== 64) {
189
- break;
190
- }
191
-
192
- message.disableGliding = reader.bool();
193
- continue;
194
- }
195
- if ((tag & 7) === 4 || tag === 0) {
196
- break;
197
- }
198
- reader.skipType(tag & 7);
199
- }
200
- return message;
201
- }
202
-
203
- export function fromJSON(object: any): PBInputModifier_StandardInput {
204
- return {
205
- disableAll: isSet(object.disableAll) ? Boolean(object.disableAll) : undefined,
206
- disableWalk: isSet(object.disableWalk) ? Boolean(object.disableWalk) : undefined,
207
- disableJog: isSet(object.disableJog) ? Boolean(object.disableJog) : undefined,
208
- disableRun: isSet(object.disableRun) ? Boolean(object.disableRun) : undefined,
209
- disableJump: isSet(object.disableJump) ? Boolean(object.disableJump) : undefined,
210
- disableEmote: isSet(object.disableEmote) ? Boolean(object.disableEmote) : undefined,
211
- disableDoubleJump: isSet(object.disableDoubleJump) ? Boolean(object.disableDoubleJump) : undefined,
212
- disableGliding: isSet(object.disableGliding) ? Boolean(object.disableGliding) : undefined,
213
- };
214
- }
215
-
216
- export function toJSON(message: PBInputModifier_StandardInput): unknown {
217
- const obj: any = {};
218
- message.disableAll !== undefined && (obj.disableAll = message.disableAll);
219
- message.disableWalk !== undefined && (obj.disableWalk = message.disableWalk);
220
- message.disableJog !== undefined && (obj.disableJog = message.disableJog);
221
- message.disableRun !== undefined && (obj.disableRun = message.disableRun);
222
- message.disableJump !== undefined && (obj.disableJump = message.disableJump);
223
- message.disableEmote !== undefined && (obj.disableEmote = message.disableEmote);
224
- message.disableDoubleJump !== undefined && (obj.disableDoubleJump = message.disableDoubleJump);
225
- message.disableGliding !== undefined && (obj.disableGliding = message.disableGliding);
226
- return obj;
227
- }
228
-
229
- export function create<I extends Exact<DeepPartial<PBInputModifier_StandardInput>, I>>(
230
- base?: I,
231
- ): PBInputModifier_StandardInput {
232
- return PBInputModifier_StandardInput.fromPartial(base ?? {});
233
- }
234
-
235
- export function fromPartial<I extends Exact<DeepPartial<PBInputModifier_StandardInput>, I>>(
236
- object: I,
237
- ): PBInputModifier_StandardInput {
238
- const message = createBasePBInputModifier_StandardInput();
239
- message.disableAll = object.disableAll ?? undefined;
240
- message.disableWalk = object.disableWalk ?? undefined;
241
- message.disableJog = object.disableJog ?? undefined;
242
- message.disableRun = object.disableRun ?? undefined;
243
- message.disableJump = object.disableJump ?? undefined;
244
- message.disableEmote = object.disableEmote ?? undefined;
245
- message.disableDoubleJump = object.disableDoubleJump ?? undefined;
246
- message.disableGliding = object.disableGliding ?? undefined;
247
- return message;
248
- }
249
- }
250
-
251
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
252
-
253
- export type DeepPartial<T> = T extends Builtin ? T
254
- : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
255
- : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
256
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
257
- : Partial<T>;
258
-
259
- type KeysOfUnion<T> = T extends T ? keyof T : never;
260
- export type Exact<P, I extends P> = P extends Builtin ? P
261
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
262
-
263
- function isSet(value: any): boolean {
264
- return value !== null && value !== undefined;
265
- }
@@ -1,18 +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) = 1211;
8
-
9
- // The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
10
- // as the avatar movement speed, jump height etc.
11
- message PBAvatarLocomotionSettings {
12
- optional float walk_speed = 1; // Maximum speed when walking (in meters per second)
13
- optional float jog_speed = 2; // Maximum speed when jogging (in meters per second)
14
- optional float run_speed = 3; // Maximum speed when running (in meters per second)
15
- optional float jump_height = 4; // Height of a regular jump (in meters)
16
- optional float run_jump_height = 5; // Height of a jump while running (in meters)
17
- optional float hard_landing_cooldown = 6; // Cooldown time after a hard landing before the avatar can move again (in seconds)
18
- }
@@ -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/vectors.proto";
7
-
8
- option (common.ecs_component_id) = 1501;
9
-
10
- message PBAvatarMovement {
11
- decentraland.common.Vector3 velocity = 1;
12
- float orientation = 2; // 0-360, we don't allow pitch/roll
13
- optional decentraland.common.Vector3 ground_direction = 3;
14
- optional bool walk_success = 4; // set for one frame when a walk_target ends: true = reached target, false = failed; absent = in progress or no walk
15
- }
16
-
17
- // engine behaviour (uses only capsule shapecasts and GJK closest point for portability):
18
- // 1: set avatar orientation from movement info -> P1
19
- // 2: record "ground collider" - nearest collider within threshold distance in ground_direction using avatar collider shapecast
20
- // 3: update all colliders, record previous transform and new transform.
21
- // 4: apply ground collider movement: take collider closest point, modify P1 translation and rotation by closest point translation and rotation change -> P2
22
- // 5: resolve collisions using position-based constraints
23
- // initialize constraints to -inf, +inf
24
- // repeat
25
- // for each collider[i] that collides with the P3+N player:
26
- // if closest point = capsule middle (i.e. collider collides with P3 collider but with radius 0),
27
- // ignore / continue
28
- // else
29
- // update constraints based on minimum movement to escape collision
30
- // e.g. if avatar is 1cm into the floor, constraint_min = max(constraint_min, vec3(0, 0.01, 0))
31
- // reposition player to satisfy constraints for each axis:
32
- // y: satsify floor before ceiling: new position = max(constraint_min, min(constraint_max, current position))
33
- // x and z: if squashed, take average, else satisfy the required constraint
34
- // if constraint_min > constraint_max then new position = average(constraint_min, constraint_max)
35
- // else new position = clamp(current position, constraint_min, constraint_max)
36
- // while position !~= previous position
37
- // 6: apply velocity (collide and slide)
38
- // disable anything we are initially colliding with
39
- // shapecast avatar from position to position + velocity * timestep
40
- // on impact:
41
- // project velocity onto slide plane (standard "Collide & Slide")
42
- // velocity = old velocity - (normal * dot(velocity, normal))
43
- // repeat continue with residual velocity and residual time
44
- // 7: provide AvatarMovementInfo values
45
- // actual velocity = (final - P3+N) / timestep
46
- // external_velocity = (P3+N - P1) / timestep
@@ -1,22 +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
- import "decentraland/sdk/components/avatar_locomotion_settings.proto";
8
- import "decentraland/sdk/components/input_modifier.proto";
9
-
10
- option (common.ecs_component_id) = 1500;
11
-
12
- message PBAvatarMovementInfo {
13
- float step_time = 1; // the length of time the current step velocity will apply for
14
- float previous_step_time = 2; // the length of time the previous step velocity applied for
15
- decentraland.common.Vector3 requested_velocity = 3; // the velocity requested for the previous frame
16
- decentraland.common.Vector3 actual_velocity = 4; // the resulting velocity taking collisions into account
17
- decentraland.common.Vector3 external_velocity = 5; // the velocity imparted by movement of the "ground" platform or pushing from other moving colliders
18
- decentraland.sdk.components.PBAvatarLocomotionSettings active_avatar_locomotion_settings = 6;
19
- decentraland.sdk.components.PBInputModifier active_input_modifier = 7;
20
- optional decentraland.common.Vector3 walk_target = 8; // if set, the movement scene should walk the player to this scene-relative position
21
- optional float walk_threshold = 9; // stop distance for walk_target; considered reached when within this distance
22
- }
@@ -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) = 1503;
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,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
- }