@dcl/protocol 1.0.0-45443187908.commit-ad382e2 → 1.0.0-45872166367.commit-57a13e1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out-js/decentraland/common/gradient.gen.d.ts +50 -0
- package/out-js/decentraland/common/gradient.gen.js +147 -0
- package/out-js/decentraland/common/gradient.gen.js.map +1 -0
- package/out-js/decentraland/common/texture.gen.d.ts +0 -18
- package/out-js/decentraland/common/texture.gen.js +4 -104
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +2 -113
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +3 -387
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/scene_credits.gen.d.ts +186 -0
- package/out-js/decentraland/kernel/apis/scene_credits.gen.js +388 -0
- package/out-js/decentraland/kernel/apis/scene_credits.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +2 -14
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +27 -14
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +2 -14
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -3
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/environment_fog.gen.d.ts +44 -0
- package/out-js/decentraland/sdk/components/environment_fog.gen.js +86 -0
- package/out-js/decentraland/sdk/components/environment_fog.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
- package/out-js/decentraland/sdk/components/material.gen.js +2 -86
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +0 -13
- package/out-js/decentraland/sdk/components/raycast.gen.js +2 -64
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/skybox.gen.d.ts +103 -0
- package/out-js/decentraland/sdk/components/skybox.gen.js +355 -0
- package/out-js/decentraland/sdk/components/skybox.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/sun.gen.d.ts +53 -0
- package/out-js/decentraland/sdk/components/{global_light.gen.js → sun.gen.js} +48 -37
- package/out-js/decentraland/sdk/components/sun.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +0 -4
- package/out-js/decentraland/sdk/components/ui_input.gen.js +2 -28
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-ts/decentraland/common/gradient.gen.ts +170 -0
- package/out-ts/decentraland/common/texture.gen.ts +4 -119
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +2 -414
- package/out-ts/decentraland/kernel/apis/scene_credits.gen.ts +459 -0
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -16
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +28 -35
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +1 -16
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
- package/out-ts/decentraland/sdk/components/environment_fog.gen.ts +113 -0
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
- package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +1 -73
- package/out-ts/decentraland/sdk/components/skybox.gen.ts +440 -0
- package/out-ts/decentraland/sdk/components/sun.gen.ts +155 -0
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +0 -36
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
- package/package.json +2 -2
- package/proto/decentraland/common/gradient.proto +16 -0
- package/proto/decentraland/common/texture.proto +1 -8
- package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -38
- package/proto/decentraland/kernel/apis/scene_credits.proto +108 -0
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -1
- package/proto/decentraland/sdk/components/avatar_shape.proto +32 -18
- package/proto/decentraland/sdk/components/camera_mode_area.proto +0 -1
- package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
- package/proto/decentraland/sdk/components/environment_fog.proto +21 -0
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
- package/proto/decentraland/sdk/components/material.proto +1 -13
- package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
- package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
- package/proto/decentraland/sdk/components/raycast.proto +0 -13
- package/proto/decentraland/sdk/components/skybox.proto +51 -0
- package/proto/decentraland/sdk/components/sun.proto +26 -0
- package/proto/decentraland/sdk/components/ui_input.proto +0 -2
- package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
- package/public/sdk-apis.proto +1 -0
- package/public/sdk-components.proto +3 -10
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -51
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -177
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +0 -71
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js +0 -303
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +0 -79
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -357
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/camera_layer.gen.d.ts +0 -46
- package/out-js/decentraland/sdk/components/camera_layer.gen.js +0 -162
- package/out-js/decentraland/sdk/components/camera_layer.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/camera_layers.gen.d.ts +0 -30
- package/out-js/decentraland/sdk/components/camera_layers.gen.js +0 -80
- package/out-js/decentraland/sdk/components/camera_layers.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/global_light.gen.d.ts +0 -50
- package/out-js/decentraland/sdk/components/global_light.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +0 -52
- package/out-js/decentraland/sdk/components/input_modifier.gen.js +0 -233
- package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/texture_camera.gen.d.ts +0 -86
- package/out-js/decentraland/sdk/components/texture_camera.gen.js +0 -296
- package/out-js/decentraland/sdk/components/texture_camera.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/ui_canvas.gen.d.ts +0 -35
- package/out-js/decentraland/sdk/components/ui_canvas.gen.js +0 -98
- package/out-js/decentraland/sdk/components/ui_canvas.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.d.ts +0 -31
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js +0 -71
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js.map +0 -1
- package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +0 -237
- package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -372
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -432
- package/out-ts/decentraland/sdk/components/camera_layer.gen.ts +0 -202
- package/out-ts/decentraland/sdk/components/camera_layers.gen.ts +0 -92
- package/out-ts/decentraland/sdk/components/global_light.gen.ts +0 -138
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
- package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +0 -265
- package/out-ts/decentraland/sdk/components/texture_camera.gen.ts +0 -362
- package/out-ts/decentraland/sdk/components/ui_canvas.gen.ts +0 -115
- package/out-ts/decentraland/sdk/components/ui_scroll_result.gen.ts +0 -83
- package/proto/decentraland/sdk/components/avatar_movement.proto +0 -62
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -36
- package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
- package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
- package/proto/decentraland/sdk/components/global_light.proto +0 -22
- package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
- package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
- package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
- package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { Color4 } from "../../common/colors.gen";
|
|
4
|
-
import { Vector2 } from "../../common/vectors.gen";
|
|
5
4
|
|
|
6
5
|
export const protobufPackage = "decentraland.sdk.components";
|
|
7
6
|
|
|
@@ -473,55 +472,6 @@ export function pointerFilterModeToJSON(object: PointerFilterMode): string {
|
|
|
473
472
|
}
|
|
474
473
|
}
|
|
475
474
|
|
|
476
|
-
export enum ShowScrollBar {
|
|
477
|
-
SSB_BOTH = 0,
|
|
478
|
-
SSB_ONLY_VERTICAL = 1,
|
|
479
|
-
SSB_ONLY_HORIZONTAL = 2,
|
|
480
|
-
SSB_HIDDEN = 3,
|
|
481
|
-
UNRECOGNIZED = -1,
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
export function showScrollBarFromJSON(object: any): ShowScrollBar {
|
|
485
|
-
switch (object) {
|
|
486
|
-
case 0:
|
|
487
|
-
case "SSB_BOTH":
|
|
488
|
-
return ShowScrollBar.SSB_BOTH;
|
|
489
|
-
case 1:
|
|
490
|
-
case "SSB_ONLY_VERTICAL":
|
|
491
|
-
return ShowScrollBar.SSB_ONLY_VERTICAL;
|
|
492
|
-
case 2:
|
|
493
|
-
case "SSB_ONLY_HORIZONTAL":
|
|
494
|
-
return ShowScrollBar.SSB_ONLY_HORIZONTAL;
|
|
495
|
-
case 3:
|
|
496
|
-
case "SSB_HIDDEN":
|
|
497
|
-
return ShowScrollBar.SSB_HIDDEN;
|
|
498
|
-
case -1:
|
|
499
|
-
case "UNRECOGNIZED":
|
|
500
|
-
default:
|
|
501
|
-
return ShowScrollBar.UNRECOGNIZED;
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
export function showScrollBarToJSON(object: ShowScrollBar): string {
|
|
506
|
-
switch (object) {
|
|
507
|
-
case ShowScrollBar.SSB_BOTH:
|
|
508
|
-
return "SSB_BOTH";
|
|
509
|
-
case ShowScrollBar.SSB_ONLY_VERTICAL:
|
|
510
|
-
return "SSB_ONLY_VERTICAL";
|
|
511
|
-
case ShowScrollBar.SSB_ONLY_HORIZONTAL:
|
|
512
|
-
return "SSB_ONLY_HORIZONTAL";
|
|
513
|
-
case ShowScrollBar.SSB_HIDDEN:
|
|
514
|
-
return "SSB_HIDDEN";
|
|
515
|
-
case ShowScrollBar.UNRECOGNIZED:
|
|
516
|
-
default:
|
|
517
|
-
return "UNRECOGNIZED";
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
export interface ScrollPositionValue {
|
|
522
|
-
value?: { $case: "position"; position: Vector2 } | { $case: "reference"; reference: string } | undefined;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
475
|
export interface PBUiTransform {
|
|
526
476
|
parent: number;
|
|
527
477
|
rightOf: number;
|
|
@@ -666,105 +616,10 @@ export interface PBUiTransform {
|
|
|
666
616
|
opacity?:
|
|
667
617
|
| number
|
|
668
618
|
| undefined;
|
|
669
|
-
/** reference for scroll_position. default empty */
|
|
670
|
-
elementId?:
|
|
671
|
-
| string
|
|
672
|
-
| undefined;
|
|
673
|
-
/** default position=(0,0) */
|
|
674
|
-
scrollPosition?:
|
|
675
|
-
| ScrollPositionValue
|
|
676
|
-
| undefined;
|
|
677
|
-
/** default ShowScrollBar.SSB_BOTH */
|
|
678
|
-
scrollVisible?:
|
|
679
|
-
| ShowScrollBar
|
|
680
|
-
| undefined;
|
|
681
619
|
/** default: 0 — controls render stacking order. Higher values appear in front of lower values. */
|
|
682
620
|
zIndex?: number | undefined;
|
|
683
621
|
}
|
|
684
622
|
|
|
685
|
-
function createBaseScrollPositionValue(): ScrollPositionValue {
|
|
686
|
-
return { value: undefined };
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
export namespace ScrollPositionValue {
|
|
690
|
-
export function encode(message: ScrollPositionValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
691
|
-
switch (message.value?.$case) {
|
|
692
|
-
case "position":
|
|
693
|
-
Vector2.encode(message.value.position, writer.uint32(10).fork()).ldelim();
|
|
694
|
-
break;
|
|
695
|
-
case "reference":
|
|
696
|
-
writer.uint32(18).string(message.value.reference);
|
|
697
|
-
break;
|
|
698
|
-
}
|
|
699
|
-
return writer;
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): ScrollPositionValue {
|
|
703
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
704
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
705
|
-
const message = createBaseScrollPositionValue();
|
|
706
|
-
while (reader.pos < end) {
|
|
707
|
-
const tag = reader.uint32();
|
|
708
|
-
switch (tag >>> 3) {
|
|
709
|
-
case 1:
|
|
710
|
-
if (tag !== 10) {
|
|
711
|
-
break;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
message.value = { $case: "position", position: Vector2.decode(reader, reader.uint32()) };
|
|
715
|
-
continue;
|
|
716
|
-
case 2:
|
|
717
|
-
if (tag !== 18) {
|
|
718
|
-
break;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
message.value = { $case: "reference", reference: reader.string() };
|
|
722
|
-
continue;
|
|
723
|
-
}
|
|
724
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
725
|
-
break;
|
|
726
|
-
}
|
|
727
|
-
reader.skipType(tag & 7);
|
|
728
|
-
}
|
|
729
|
-
return message;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
export function fromJSON(object: any): ScrollPositionValue {
|
|
733
|
-
return {
|
|
734
|
-
value: isSet(object.position)
|
|
735
|
-
? { $case: "position", position: Vector2.fromJSON(object.position) }
|
|
736
|
-
: isSet(object.reference)
|
|
737
|
-
? { $case: "reference", reference: String(object.reference) }
|
|
738
|
-
: undefined,
|
|
739
|
-
};
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
export function toJSON(message: ScrollPositionValue): unknown {
|
|
743
|
-
const obj: any = {};
|
|
744
|
-
message.value?.$case === "position" &&
|
|
745
|
-
(obj.position = message.value?.position ? Vector2.toJSON(message.value?.position) : undefined);
|
|
746
|
-
message.value?.$case === "reference" && (obj.reference = message.value?.reference);
|
|
747
|
-
return obj;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
export function create<I extends Exact<DeepPartial<ScrollPositionValue>, I>>(base?: I): ScrollPositionValue {
|
|
751
|
-
return ScrollPositionValue.fromPartial(base ?? {});
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
export function fromPartial<I extends Exact<DeepPartial<ScrollPositionValue>, I>>(object: I): ScrollPositionValue {
|
|
755
|
-
const message = createBaseScrollPositionValue();
|
|
756
|
-
if (object.value?.$case === "position" && object.value?.position !== undefined && object.value?.position !== null) {
|
|
757
|
-
message.value = { $case: "position", position: Vector2.fromPartial(object.value.position) };
|
|
758
|
-
}
|
|
759
|
-
if (
|
|
760
|
-
object.value?.$case === "reference" && object.value?.reference !== undefined && object.value?.reference !== null
|
|
761
|
-
) {
|
|
762
|
-
message.value = { $case: "reference", reference: object.value.reference };
|
|
763
|
-
}
|
|
764
|
-
return message;
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
|
|
768
623
|
function createBasePBUiTransform(): PBUiTransform {
|
|
769
624
|
return {
|
|
770
625
|
parent: 0,
|
|
@@ -840,9 +695,6 @@ function createBasePBUiTransform(): PBUiTransform {
|
|
|
840
695
|
borderLeftColor: undefined,
|
|
841
696
|
borderRightColor: undefined,
|
|
842
697
|
opacity: undefined,
|
|
843
|
-
elementId: undefined,
|
|
844
|
-
scrollPosition: undefined,
|
|
845
|
-
scrollVisible: undefined,
|
|
846
698
|
zIndex: undefined,
|
|
847
699
|
};
|
|
848
700
|
}
|
|
@@ -1068,15 +920,6 @@ export namespace PBUiTransform {
|
|
|
1068
920
|
if (message.opacity !== undefined) {
|
|
1069
921
|
writer.uint32(589).float(message.opacity);
|
|
1070
922
|
}
|
|
1071
|
-
if (message.elementId !== undefined) {
|
|
1072
|
-
writer.uint32(594).string(message.elementId);
|
|
1073
|
-
}
|
|
1074
|
-
if (message.scrollPosition !== undefined) {
|
|
1075
|
-
ScrollPositionValue.encode(message.scrollPosition, writer.uint32(602).fork()).ldelim();
|
|
1076
|
-
}
|
|
1077
|
-
if (message.scrollVisible !== undefined) {
|
|
1078
|
-
writer.uint32(608).int32(message.scrollVisible);
|
|
1079
|
-
}
|
|
1080
923
|
if (message.zIndex !== undefined) {
|
|
1081
924
|
writer.uint32(616).int32(message.zIndex);
|
|
1082
925
|
}
|
|
@@ -1601,27 +1444,6 @@ export namespace PBUiTransform {
|
|
|
1601
1444
|
|
|
1602
1445
|
message.opacity = reader.float();
|
|
1603
1446
|
continue;
|
|
1604
|
-
case 74:
|
|
1605
|
-
if (tag !== 594) {
|
|
1606
|
-
break;
|
|
1607
|
-
}
|
|
1608
|
-
|
|
1609
|
-
message.elementId = reader.string();
|
|
1610
|
-
continue;
|
|
1611
|
-
case 75:
|
|
1612
|
-
if (tag !== 602) {
|
|
1613
|
-
break;
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
message.scrollPosition = ScrollPositionValue.decode(reader, reader.uint32());
|
|
1617
|
-
continue;
|
|
1618
|
-
case 76:
|
|
1619
|
-
if (tag !== 608) {
|
|
1620
|
-
break;
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
message.scrollVisible = reader.int32() as any;
|
|
1624
|
-
continue;
|
|
1625
1447
|
case 77:
|
|
1626
1448
|
if (tag !== 616) {
|
|
1627
1449
|
break;
|
|
@@ -1727,9 +1549,6 @@ export namespace PBUiTransform {
|
|
|
1727
1549
|
borderLeftColor: isSet(object.borderLeftColor) ? Color4.fromJSON(object.borderLeftColor) : undefined,
|
|
1728
1550
|
borderRightColor: isSet(object.borderRightColor) ? Color4.fromJSON(object.borderRightColor) : undefined,
|
|
1729
1551
|
opacity: isSet(object.opacity) ? Number(object.opacity) : undefined,
|
|
1730
|
-
elementId: isSet(object.elementId) ? String(object.elementId) : undefined,
|
|
1731
|
-
scrollPosition: isSet(object.scrollPosition) ? ScrollPositionValue.fromJSON(object.scrollPosition) : undefined,
|
|
1732
|
-
scrollVisible: isSet(object.scrollVisible) ? showScrollBarFromJSON(object.scrollVisible) : undefined,
|
|
1733
1552
|
zIndex: isSet(object.zIndex) ? Number(object.zIndex) : undefined,
|
|
1734
1553
|
};
|
|
1735
1554
|
}
|
|
@@ -1843,13 +1662,6 @@ export namespace PBUiTransform {
|
|
|
1843
1662
|
message.borderRightColor !== undefined &&
|
|
1844
1663
|
(obj.borderRightColor = message.borderRightColor ? Color4.toJSON(message.borderRightColor) : undefined);
|
|
1845
1664
|
message.opacity !== undefined && (obj.opacity = message.opacity);
|
|
1846
|
-
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
1847
|
-
message.scrollPosition !== undefined &&
|
|
1848
|
-
(obj.scrollPosition = message.scrollPosition ? ScrollPositionValue.toJSON(message.scrollPosition) : undefined);
|
|
1849
|
-
message.scrollVisible !== undefined &&
|
|
1850
|
-
(obj.scrollVisible = message.scrollVisible !== undefined
|
|
1851
|
-
? showScrollBarToJSON(message.scrollVisible)
|
|
1852
|
-
: undefined);
|
|
1853
1665
|
message.zIndex !== undefined && (obj.zIndex = Math.round(message.zIndex));
|
|
1854
1666
|
return obj;
|
|
1855
1667
|
}
|
|
@@ -1941,11 +1753,6 @@ export namespace PBUiTransform {
|
|
|
1941
1753
|
? Color4.fromPartial(object.borderRightColor)
|
|
1942
1754
|
: undefined;
|
|
1943
1755
|
message.opacity = object.opacity ?? undefined;
|
|
1944
|
-
message.elementId = object.elementId ?? undefined;
|
|
1945
|
-
message.scrollPosition = (object.scrollPosition !== undefined && object.scrollPosition !== null)
|
|
1946
|
-
? ScrollPositionValue.fromPartial(object.scrollPosition)
|
|
1947
|
-
: undefined;
|
|
1948
|
-
message.scrollVisible = object.scrollVisible ?? undefined;
|
|
1949
1756
|
message.zIndex = object.zIndex ?? undefined;
|
|
1950
1757
|
return message;
|
|
1951
1758
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-45872166367.commit-57a13e1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"protoc-gen-bitwise/*.js",
|
|
36
36
|
"protoc-gen-bitwise/runtime"
|
|
37
37
|
],
|
|
38
|
-
"commit": "
|
|
38
|
+
"commit": "57a13e183f686851cf7e0ad9b5019db27aef2e3b"
|
|
39
39
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package decentraland.common;
|
|
3
|
+
|
|
4
|
+
import "decentraland/common/colors.proto";
|
|
5
|
+
|
|
6
|
+
message ColorKey {
|
|
7
|
+
float time = 1; // position along the gradient, from 0 to 1. Values outside that range clamp to it
|
|
8
|
+
Color4 color = 2; // linear color. Values above 1 are allowed (HDR)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Piecewise-linear, with keys interpolated in ascending order of `time`. Positions before the first key
|
|
12
|
+
// or after the last key take that key's color. No keys means the gradient is unset.
|
|
13
|
+
// If two keys have the same `time`, then the gradient keeps the key that comes later in `keys`.
|
|
14
|
+
message ColorGradient {
|
|
15
|
+
repeated ColorKey keys = 1;
|
|
16
|
+
}
|
|
@@ -36,17 +36,10 @@ message VideoTexture {
|
|
|
36
36
|
optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
message UiCanvasTexture {
|
|
40
|
-
uint32 ui_canvas_entity = 1;
|
|
41
|
-
optional TextureWrapMode wrap_mode = 2; // default = TextureWrapMode.Clamp
|
|
42
|
-
optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
|
|
43
|
-
}
|
|
44
|
-
|
|
45
39
|
message TextureUnion {
|
|
46
40
|
oneof tex {
|
|
47
41
|
Texture texture = 1; // default = null
|
|
48
42
|
AvatarTexture avatar_texture = 2; // default = null
|
|
49
43
|
VideoTexture video_texture = 3; // default = null
|
|
50
|
-
UiCanvasTexture ui_texture = 4;
|
|
51
44
|
}
|
|
52
|
-
}
|
|
45
|
+
}
|
|
@@ -61,31 +61,8 @@ message MovePlayerToResponse {
|
|
|
61
61
|
bool success = 1;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
message WalkPlayerToRequest {
|
|
65
|
-
decentraland.common.Vector3 new_relative_position = 1;
|
|
66
|
-
float stop_threshold = 2;
|
|
67
|
-
optional float timeout = 3; // max seconds before the request is failed; not passed to the movement scene
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
message WalkPlayerToResponse {
|
|
71
|
-
bool success = 1;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
64
|
message TeleportToResponse { }
|
|
75
65
|
|
|
76
|
-
message SetUiFocusRequest {
|
|
77
|
-
string element_id = 1;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
message ClearUiFocusRequest { }
|
|
81
|
-
|
|
82
|
-
message GetUiFocusRequest { }
|
|
83
|
-
|
|
84
|
-
message UiFocusResponse {
|
|
85
|
-
// the element that is/was focussed
|
|
86
|
-
optional string element_id = 1;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
66
|
message CopyToClipboardRequest {
|
|
90
67
|
string text = 1;
|
|
91
68
|
}
|
|
@@ -131,12 +108,6 @@ service RestrictedActionsService {
|
|
|
131
108
|
rpc MovePlayerTo(MovePlayerToRequest) returns (MovePlayerToResponse) {}
|
|
132
109
|
|
|
133
110
|
// TeleportTo will move the user to the specified world LAND parcel coordinates
|
|
134
|
-
// WalkPlayerTo will walk the player to a position relative to the current scene,
|
|
135
|
-
// managed by the movement controller scene. Returns success when the player reaches
|
|
136
|
-
// within stop_threshold distance, or false if the path is blocked, the player gets
|
|
137
|
-
// stuck, the player interrupts the walk with manual input, or the optional timeout expires.
|
|
138
|
-
rpc WalkPlayerTo(WalkPlayerToRequest) returns (WalkPlayerToResponse) {}
|
|
139
|
-
|
|
140
111
|
rpc TeleportTo(TeleportToRequest) returns (TeleportToResponse) {}
|
|
141
112
|
|
|
142
113
|
// TriggerEmote will trigger an emote in this current user
|
|
@@ -160,15 +131,6 @@ service RestrictedActionsService {
|
|
|
160
131
|
rpc TriggerSceneEmote(TriggerSceneEmoteRequest) returns (SuccessResponse) {}
|
|
161
132
|
|
|
162
133
|
// CopyToClipboard copies the provided text into the clipboard
|
|
163
|
-
// Sets the focus to a specific UI element
|
|
164
|
-
rpc SetUiFocus(SetUiFocusRequest) returns (UiFocusResponse) {}
|
|
165
|
-
|
|
166
|
-
// Clears the focus from any currently focused textentry or dropdown
|
|
167
|
-
rpc ClearUiFocus(ClearUiFocusRequest) returns (UiFocusResponse) {}
|
|
168
|
-
|
|
169
|
-
// Returns the element_id of any currently focused textentry or dropdown
|
|
170
|
-
rpc GetUiFocus(GetUiFocusRequest) returns (UiFocusResponse) {}
|
|
171
|
-
|
|
172
134
|
rpc CopyToClipboard(CopyToClipboardRequest) returns (EmptyResponse) {}
|
|
173
135
|
|
|
174
136
|
// StopEmote will stop the current emote
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package decentraland.kernel.apis;
|
|
3
|
+
|
|
4
|
+
// Why a response does not confirm a paid receipt. It does not always mean
|
|
5
|
+
// nothing was paid: after GCE_UNAVAILABLE the outcome is unknown. The numbers
|
|
6
|
+
// are stable, and values may be added later: treat a value you do not know as
|
|
7
|
+
// a refusal, and do not retry it on the same assumptions.
|
|
8
|
+
enum GrantCreditsError {
|
|
9
|
+
// A refusal this version does not name, such as a code added later. Do
|
|
10
|
+
// not retry it with the same request.
|
|
11
|
+
GCE_UNSPECIFIED = 0;
|
|
12
|
+
// Paying Credits is not available here. An explorer always answers this,
|
|
13
|
+
// and so does an authoritative server while new payments are off or the
|
|
14
|
+
// pinned scene is no longer the one deployed.
|
|
15
|
+
GCE_NOT_AVAILABLE = 1;
|
|
16
|
+
// The request is malformed: see the request's field formats.
|
|
17
|
+
GCE_INVALID_REQUEST = 2;
|
|
18
|
+
// Too many requests for this scene or this program, or the server is
|
|
19
|
+
// momentarily busy. Retry shortly, with a short backoff, and the same
|
|
20
|
+
// outcome id.
|
|
21
|
+
GCE_RATE_LIMITED = 3;
|
|
22
|
+
// The outcome could not be decided, or its answer was lost: the Credits
|
|
23
|
+
// may have been paid. Retry later with the same program, recipient and
|
|
24
|
+
// outcome id; a paid outcome is then answered with its receipt.
|
|
25
|
+
GCE_UNAVAILABLE = 4;
|
|
26
|
+
// This scene may not pay from this program: the server's credential was
|
|
27
|
+
// not accepted, the program is unknown or not pinned to this scene, or the
|
|
28
|
+
// outcome was paid in another location.
|
|
29
|
+
GCE_NOT_AUTHORIZED = 5;
|
|
30
|
+
// A new payment needs the recipient connected to this scene's
|
|
31
|
+
// authoritative server.
|
|
32
|
+
GCE_RECIPIENT_NOT_CONNECTED = 6;
|
|
33
|
+
// The program or its studio is paused.
|
|
34
|
+
GCE_PROGRAM_PAUSED = 7;
|
|
35
|
+
// The program's schedule has no open slot for this outcome now.
|
|
36
|
+
GCE_OUTSIDE_SCHEDULE = 8;
|
|
37
|
+
// The program's ceiling or the studio's budget cannot cover the payment.
|
|
38
|
+
GCE_BUDGET_EXHAUSTED = 9;
|
|
39
|
+
// The program paid all it may pay today.
|
|
40
|
+
GCE_PROGRAM_CAP_REACHED = 10;
|
|
41
|
+
// The recipient was paid as many times as this program pays a player,
|
|
42
|
+
// for the program's payment day or in total. For a program that requires
|
|
43
|
+
// a NAME, also when every eligible NAME this wallet holds was already paid
|
|
44
|
+
// for that day, even if other wallets received those payments.
|
|
45
|
+
GCE_PLAYER_CAP_REACHED = 11;
|
|
46
|
+
// The recipient does not meet one of the program's public requirements,
|
|
47
|
+
// such as holding a NAME.
|
|
48
|
+
GCE_REQUIREMENT_NOT_MET = 12;
|
|
49
|
+
// The recipient may not be paid by this program.
|
|
50
|
+
GCE_RECIPIENT_NOT_ELIGIBLE = 13;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message GrantCreditsRequest {
|
|
54
|
+
// The Credits program Decentraland ops configured for the studio and
|
|
55
|
+
// pinned to this scene, as a UUID. Anything else is answered like an
|
|
56
|
+
// unknown program.
|
|
57
|
+
string program_id = 1;
|
|
58
|
+
// The player to pay: a literal lowercase "0x" followed by 40
|
|
59
|
+
// hexadecimal digits of either case; anything else is
|
|
60
|
+
// GCE_INVALID_REQUEST. The host normalizes it to check that the player is
|
|
61
|
+
// connected, and Credits normalizes it for the pay-once key and the
|
|
62
|
+
// per-player caps.
|
|
63
|
+
string recipient = 2;
|
|
64
|
+
// The scene's own id for what the player earned (a match, a round, a
|
|
65
|
+
// quest): 1 to 128 characters from A-Z, a-z, 0-9 and ". _ : -"; anything
|
|
66
|
+
// else is GCE_INVALID_REQUEST. A program pays the same recipient for the
|
|
67
|
+
// same outcome id at most once: repeating the call, for example after a
|
|
68
|
+
// lost response, returns the first payment's receipt.
|
|
69
|
+
string outcome_id = 3;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message GrantCreditsResponse {
|
|
73
|
+
// This response confirms a paid receipt. When ok, replayed, receipt_id
|
|
74
|
+
// and credits are set and error is not; when not ok, only error is set.
|
|
75
|
+
// Not ok does not always mean nothing was paid: see GCE_UNAVAILABLE.
|
|
76
|
+
bool ok = 1;
|
|
77
|
+
// False for the first payment, true when this is an earlier payment's
|
|
78
|
+
// receipt.
|
|
79
|
+
optional bool replayed = 2;
|
|
80
|
+
optional string receipt_id = 3;
|
|
81
|
+
// The whole Credits paid, as a decimal string of digits with no sign,
|
|
82
|
+
// decimals or exponent, e.g. "5".
|
|
83
|
+
optional string credits = 4;
|
|
84
|
+
// Set on every refusal, GCE_UNSPECIFIED included. Back off on
|
|
85
|
+
// GCE_UNAVAILABLE or GCE_RATE_LIMITED. For other refusals, retry only
|
|
86
|
+
// after the relevant condition changes: a paused program can resume and
|
|
87
|
+
// an exhausted budget can be replenished. Reuse the same outcome id.
|
|
88
|
+
optional GrantCreditsError error = 5;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
service SceneCreditsService {
|
|
92
|
+
// Pays the recipient the program's Credits for the outcome. The amount,
|
|
93
|
+
// the budget and the limits are the program's, never the scene's.
|
|
94
|
+
//
|
|
95
|
+
// Only a scene's authoritative server can pay. In an explorer the call
|
|
96
|
+
// always resolves with ok false and GCE_NOT_AVAILABLE, whatever the
|
|
97
|
+
// request: the formats and checks described here apply on the
|
|
98
|
+
// authoritative server.
|
|
99
|
+
//
|
|
100
|
+
// There, the scene's identity comes from the server's authenticated
|
|
101
|
+
// credential, never from the request. Basic validation and throttling can
|
|
102
|
+
// answer first. A new payment then checks that the program is pinned to
|
|
103
|
+
// this scene before anything about the program's state or the
|
|
104
|
+
// recipient's eligibility. A program pinned here can learn that a
|
|
105
|
+
// recipient does not meet one of its public requirements.
|
|
106
|
+
// Recovering a paid outcome checks the location it was paid in.
|
|
107
|
+
rpc GrantCredits(GrantCreditsRequest) returns (GrantCreditsResponse) {}
|
|
108
|
+
}
|
|
@@ -11,7 +11,6 @@ message PBAvatarEquippedData {
|
|
|
11
11
|
repeated string wearable_urns = 1;
|
|
12
12
|
repeated string emote_urns = 2;
|
|
13
13
|
repeated EquippedWearable wearables = 3; // one per item of wearable_urns, in the same order
|
|
14
|
-
repeated string force_render = 4; // slots that will render even if hidden
|
|
15
14
|
|
|
16
15
|
message EquippedWearable {
|
|
17
16
|
string urn = 1;
|
|
@@ -20,4 +19,4 @@ message PBAvatarEquippedData {
|
|
|
20
19
|
// Unset until all the wearables of the outfit have loaded or failed. A wearable that failed to load is false.
|
|
21
20
|
optional bool visible = 2;
|
|
22
21
|
}
|
|
23
|
-
}
|
|
22
|
+
}
|
|
@@ -23,7 +23,6 @@ message PBAvatarModifierArea {
|
|
|
23
23
|
decentraland.common.Vector3 area = 1; // the 3D size of the region
|
|
24
24
|
repeated string exclude_ids = 2; // user IDs that can enter and remain unaffected
|
|
25
25
|
repeated AvatarModifierType modifiers = 3; // list of modifiers to apply
|
|
26
|
-
optional bool use_collider_range = 5; // if true, the player will be considered inside the area when they are within 0.3m of the area. default true
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
// AvatarModifierType is an effect that should be applied to avatars inside the region.
|
|
@@ -6,40 +6,54 @@ option (common.ecs_component_id) = 1080;
|
|
|
6
6
|
import "decentraland/common/colors.proto";
|
|
7
7
|
|
|
8
8
|
// The AvatarShape component contains the information required to draw and animate avatar, acting as
|
|
9
|
-
// a simplified GLTF container for this specific case.
|
|
9
|
+
// a simplified GLTF container for this specific case.
|
|
10
10
|
//
|
|
11
|
-
// All fields (except ID) are optional have reasonable default values. In the case of `wearables`,
|
|
11
|
+
// All fields (except ID) are optional and have reasonable default values. In the case of `wearables`,
|
|
12
12
|
// each slot on the Avatar's body that is not explicitly included in the list has its own default.
|
|
13
13
|
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
14
|
+
// On most entities, AvatarShape draws an avatar, for example an NPC. Other requirements are usually
|
|
15
|
+
// better served by GLTFs.
|
|
16
|
+
//
|
|
17
|
+
// On a player entity (`engine.PlayerEntity` or the entity of another player), AvatarShape changes the
|
|
18
|
+
// look of that player's avatar:
|
|
19
|
+
// - An unset field keeps the value from the player's profile. The defaults below apply only to other entities.
|
|
20
|
+
// - A non-empty `wearables` replaces all the wearables. A body slot that it does not fill stays empty.
|
|
21
|
+
// An empty `wearables` is the same as unset.
|
|
22
|
+
// - Fields marked "ignored on player entities" have no effect.
|
|
23
|
+
// - The change is local to this client. It is not broadcast.
|
|
24
|
+
// - The change applies only while the scene that wrote it is the current scene.
|
|
25
|
+
// - AvatarBase and AvatarEquippedData keep the values from the profile.
|
|
16
26
|
message PBAvatarShape {
|
|
17
|
-
string id = 1; // the user ID
|
|
18
|
-
optional string name = 2; // visible name (default: "NPC")
|
|
27
|
+
string id = 1; // the user ID; ignored on player entities
|
|
28
|
+
optional string name = 2; // visible name (default: "NPC"); ignored on player entities
|
|
19
29
|
optional string body_shape = 3; // shape URN (default "urn:decentraland:off-chain:base-avatars:BaseFemale")
|
|
20
30
|
|
|
21
31
|
optional decentraland.common.Color3 skin_color = 4; // RGB (default [0.6, 0.462, 0.356])
|
|
22
32
|
optional decentraland.common.Color3 hair_color = 5; // RGB (default [0.283, 0.142, 0])
|
|
23
33
|
optional decentraland.common.Color3 eye_color = 6; // RGB (default [0.6, 0.462, 0.356])
|
|
24
34
|
|
|
25
|
-
optional string expression_trigger_id = 7; // current emote animations
|
|
26
|
-
optional int64 expression_trigger_timestamp = 8; // start of emote animations (in the same order)
|
|
35
|
+
optional string expression_trigger_id = 7; // current emote animations; ignored on player entities
|
|
36
|
+
optional int64 expression_trigger_timestamp = 8; // start of emote animations (in the same order); ignored on player entities
|
|
27
37
|
|
|
28
|
-
optional bool talking = 9; // whether to display the floating voice chat icon
|
|
38
|
+
optional bool talking = 9; // whether to display the floating voice chat icon; ignored on player entities
|
|
29
39
|
|
|
30
|
-
//
|
|
40
|
+
// Wearables, one per body slot. Each item is one of:
|
|
41
|
+
// - a wearable URN
|
|
42
|
+
// - the path of a GLB file in the scene content, named `<name>_<category>.glb`, for example `cap_hat.glb`
|
|
43
|
+
// If two items have the same category, the later item is used.
|
|
44
|
+
// A scene GLB is always visible and hides nothing. Exception: a `skin` GLB hides the body that it replaces.
|
|
45
|
+
// If an item is not a URN or a `.glb` path, or if it cannot be loaded, the item is skipped.
|
|
31
46
|
// Default values for each unspecified slot:
|
|
32
|
-
// Eyes : "urn:decentraland:off-chain:base-avatars:f_eyes_00",
|
|
47
|
+
// Eyes : "urn:decentraland:off-chain:base-avatars:f_eyes_00",
|
|
33
48
|
// Eyebrows: "urn:decentraland:off-chain:base-avatars:f_eyebrows_00",
|
|
34
|
-
// Mouth : "urn:decentraland:off-chain:base-avatars:f_mouth_00"
|
|
35
|
-
// Hair : "urn:decentraland:off-chain:base-avatars:standard_hair",
|
|
36
|
-
// Shirt : "urn:decentraland:off-chain:base-avatars:f_simple_yellow_tshirt",
|
|
37
|
-
// Trousers: "urn:decentraland:off-chain:base-avatars:f_brown_trousers",
|
|
38
|
-
// Shoes : "urn:decentraland:off-chain:base-avatars:bun_shoes"
|
|
49
|
+
// Mouth : "urn:decentraland:off-chain:base-avatars:f_mouth_00",
|
|
50
|
+
// Hair : "urn:decentraland:off-chain:base-avatars:standard_hair",
|
|
51
|
+
// Shirt : "urn:decentraland:off-chain:base-avatars:f_simple_yellow_tshirt",
|
|
52
|
+
// Trousers: "urn:decentraland:off-chain:base-avatars:f_brown_trousers",
|
|
53
|
+
// Shoes : "urn:decentraland:off-chain:base-avatars:bun_shoes"
|
|
39
54
|
repeated string wearables = 10;
|
|
40
|
-
repeated string emotes = 11; // available emotes (default empty)
|
|
55
|
+
repeated string emotes = 11; // available emotes (default empty); ignored on player entities
|
|
41
56
|
|
|
42
57
|
optional bool show_only_wearables = 12; // hides the skin + hair + facial features (default: false)
|
|
43
|
-
repeated string force_render = 13; // slots that will render even if hidden
|
|
44
58
|
}
|
|
45
59
|
|
|
@@ -22,5 +22,4 @@ option (common.ecs_component_id) = 1071;
|
|
|
22
22
|
message PBCameraModeArea {
|
|
23
23
|
decentraland.common.Vector3 area = 1; // the 3D size of the region
|
|
24
24
|
common.CameraType mode = 2; // the camera mode to enforce
|
|
25
|
-
optional bool use_collider_range = 4; // if true, the player will be considered inside the area when they are within 0.3m of the area. default true
|
|
26
25
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package decentraland.sdk.components;
|
|
3
|
+
|
|
4
|
+
import "decentraland/sdk/components/common/id.proto";
|
|
5
|
+
import "decentraland/common/gradient.proto";
|
|
6
|
+
|
|
7
|
+
option (common.ecs_component_id) = 1225;
|
|
8
|
+
|
|
9
|
+
// PBEnvironmentFog overrides the environment fog while the player is inside the scene.
|
|
10
|
+
// Valid only on the scene root entity (`engine.RootEntity`).
|
|
11
|
+
//
|
|
12
|
+
// An unset field keeps the time-of-day default.
|
|
13
|
+
// Gradient `time` is the normalized time of day: 0 = 00:00, 0.5 = 12:00, 1 = 24:00.
|
|
14
|
+
// Gradients do not wrap around midnight.
|
|
15
|
+
// A scene cannot turn fog on or off. That is a user quality setting.
|
|
16
|
+
//
|
|
17
|
+
// While active, the overrides are global: they also change how neighbouring parcels look from inside the scene.
|
|
18
|
+
message PBEnvironmentFog {
|
|
19
|
+
optional decentraland.common.ColorGradient color = 1;
|
|
20
|
+
optional float density = 2; // default = 0.0005, per meter: fog = 1 - e^(-density * distance). Negative values clamp to 0
|
|
21
|
+
}
|
|
@@ -10,17 +10,4 @@ import "decentraland/sdk/components/common/loading_state.proto";
|
|
|
10
10
|
// the current state of the GltfContainer of an entity.
|
|
11
11
|
message PBGltfContainerLoadingState {
|
|
12
12
|
common.LoadingState current_state = 1;
|
|
13
|
-
repeated string node_paths = 2; // all node paths in the gltf, which can be used with a GltfNode to inspect and modify the gltf contents
|
|
14
|
-
repeated string mesh_names = 3; // all meshes in the gltf. unnamed meshes will be auto-assigned a name of the form `MeshX` or `MeshX/PrimitiveY`
|
|
15
|
-
// where X is the mesh index and Y is the primitive index (and there is more than 1 primitive). note this may
|
|
16
|
-
// conflict with manually named meshes - to avoid any issues make sure all your meshes are explicitly named.
|
|
17
|
-
repeated string material_names = 4; // all materials in the gltf. unnamed materials will be auto-assigned a name of the form `MaterialX` where
|
|
18
|
-
// X is the material index. note this may conflict with manually named materials - to avoid any issues make
|
|
19
|
-
// sure all your materials are explicitly named.
|
|
20
|
-
repeated string skin_names = 5; // all mesh skins in the gltf. unnamed skins will be auto-assigned a name of the form `SkinX` where
|
|
21
|
-
// X is the skin index. note this may conflict with manually named skins - to avoid any issues make sure all
|
|
22
|
-
// your skins are explicitly named.
|
|
23
|
-
repeated string animation_names = 6; // all animations in the gltf. unnamed animations will be auto-assigned a name of the form `AnimationX` where
|
|
24
|
-
// X is the animation index. note this may conflict with manually named anims - to avoid any issues make sure all
|
|
25
|
-
// your animations are explicitly named.
|
|
26
13
|
}
|
|
@@ -54,16 +54,4 @@ message PBMaterial {
|
|
|
54
54
|
UnlitMaterial unlit = 1;
|
|
55
55
|
PbrMaterial pbr = 2;
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
message GltfMaterial {
|
|
59
|
-
string gltf_src = 1;
|
|
60
|
-
string name = 2;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// A gltf material that may provide additional features not supported by the PbMaterial fields.
|
|
64
|
-
// If both gltf and material fields are provided, the gltf will be used only for extended features not
|
|
65
|
-
// supported by the PbMaterial.
|
|
66
|
-
// If this is provided and the `material` field is not provided, the renderer will update the material
|
|
67
|
-
// field with data that reflects the gltf material once it is loaded.
|
|
68
|
-
optional GltfMaterial gltf = 3;
|
|
69
|
-
}
|
|
57
|
+
}
|