@dcl/protocol 1.0.0-22672716807.commit-22c32c9 → 1.0.0-22917704966.commit-8d5910d
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/texture.gen.d.ts +18 -0
- package/out-js/decentraland/common/texture.gen.js +104 -4
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +109 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +383 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +0 -58
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +19 -393
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +19 -2
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +138 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +41 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +241 -3
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +36 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js +113 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +48 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +207 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +19 -1
- 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 +35 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +172 -3
- 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 +3 -9
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +17 -44
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +19 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +90 -3
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +52 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.js +233 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +20 -0
- package/out-js/decentraland/sdk/components/material.gen.js +86 -2
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +18 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +90 -4
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +19 -3
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +90 -4
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +1 -5
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +3 -31
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +13 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js +64 -2
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +4 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js +30 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +33 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +176 -3
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-ts/decentraland/common/texture.gen.ts +119 -4
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +410 -0
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +3 -451
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +20 -1
- package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +183 -0
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +292 -1
- package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +136 -0
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +249 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +23 -1
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +218 -2
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +16 -43
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +108 -2
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
- package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +265 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +102 -1
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +99 -0
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +100 -3
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +3 -44
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +73 -1
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +40 -1
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +193 -0
- package/package.json +7 -4
- package/proto/decentraland/common/texture.proto +8 -1
- package/proto/decentraland/kernel/apis/restricted_actions.proto +39 -1
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +1 -38
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +2 -1
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -3
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -0
- package/proto/decentraland/sdk/components/avatar_movement.proto +46 -0
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +22 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +1 -0
- package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
- package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
- package/proto/decentraland/sdk/components/camera_mode_area.proto +22 -3
- package/proto/decentraland/sdk/components/common/input_action.proto +3 -7
- package/proto/decentraland/sdk/components/global_light.proto +22 -0
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
- package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
- package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/material.proto +13 -1
- package/proto/decentraland/sdk/components/mesh_collider.proto +7 -0
- package/proto/decentraland/sdk/components/mesh_renderer.proto +8 -3
- package/proto/decentraland/sdk/components/pointer_events.proto +0 -2
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +5 -0
- package/proto/decentraland/sdk/components/raycast.proto +13 -0
- package/proto/decentraland/sdk/components/texture_camera.proto +46 -0
- package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
- package/proto/decentraland/sdk/components/ui_text.proto +3 -0
- package/proto/decentraland/sdk/components/ui_transform.proto +20 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
- package/public/sdk-components.proto +4 -0
- package/proto/decentraland/sdk/components/audio_analysis.proto +0 -44
|
@@ -0,0 +1,139 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,265 @@
|
|
|
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
|
+
}
|
|
@@ -61,6 +61,14 @@ export interface PBMaterial {
|
|
|
61
61
|
| { $case: "unlit"; unlit: PBMaterial_UnlitMaterial }
|
|
62
62
|
| { $case: "pbr"; pbr: PBMaterial_PbrMaterial }
|
|
63
63
|
| undefined;
|
|
64
|
+
/**
|
|
65
|
+
* A gltf material that may provide additional features not supported by the PbMaterial fields.
|
|
66
|
+
* If both gltf and material fields are provided, the gltf will be used only for extended features not
|
|
67
|
+
* supported by the PbMaterial.
|
|
68
|
+
* If this is provided and the `material` field is not provided, the renderer will update the material
|
|
69
|
+
* field with data that reflects the gltf material once it is loaded.
|
|
70
|
+
*/
|
|
71
|
+
gltf?: PBMaterial_GltfMaterial | undefined;
|
|
64
72
|
}
|
|
65
73
|
|
|
66
74
|
export interface PBMaterial_UnlitMaterial {
|
|
@@ -145,8 +153,13 @@ export interface PBMaterial_PbrMaterial {
|
|
|
145
153
|
directIntensity?: number | undefined;
|
|
146
154
|
}
|
|
147
155
|
|
|
156
|
+
export interface PBMaterial_GltfMaterial {
|
|
157
|
+
gltfSrc: string;
|
|
158
|
+
name: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
148
161
|
function createBasePBMaterial(): PBMaterial {
|
|
149
|
-
return { material: undefined };
|
|
162
|
+
return { material: undefined, gltf: undefined };
|
|
150
163
|
}
|
|
151
164
|
|
|
152
165
|
export namespace PBMaterial {
|
|
@@ -159,6 +172,9 @@ export namespace PBMaterial {
|
|
|
159
172
|
PBMaterial_PbrMaterial.encode(message.material.pbr, writer.uint32(18).fork()).ldelim();
|
|
160
173
|
break;
|
|
161
174
|
}
|
|
175
|
+
if (message.gltf !== undefined) {
|
|
176
|
+
PBMaterial_GltfMaterial.encode(message.gltf, writer.uint32(26).fork()).ldelim();
|
|
177
|
+
}
|
|
162
178
|
return writer;
|
|
163
179
|
}
|
|
164
180
|
|
|
@@ -183,6 +199,13 @@ export namespace PBMaterial {
|
|
|
183
199
|
|
|
184
200
|
message.material = { $case: "pbr", pbr: PBMaterial_PbrMaterial.decode(reader, reader.uint32()) };
|
|
185
201
|
continue;
|
|
202
|
+
case 3:
|
|
203
|
+
if (tag !== 26) {
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
message.gltf = PBMaterial_GltfMaterial.decode(reader, reader.uint32());
|
|
208
|
+
continue;
|
|
186
209
|
}
|
|
187
210
|
if ((tag & 7) === 4 || tag === 0) {
|
|
188
211
|
break;
|
|
@@ -199,6 +222,7 @@ export namespace PBMaterial {
|
|
|
199
222
|
: isSet(object.pbr)
|
|
200
223
|
? { $case: "pbr", pbr: PBMaterial_PbrMaterial.fromJSON(object.pbr) }
|
|
201
224
|
: undefined,
|
|
225
|
+
gltf: isSet(object.gltf) ? PBMaterial_GltfMaterial.fromJSON(object.gltf) : undefined,
|
|
202
226
|
};
|
|
203
227
|
}
|
|
204
228
|
|
|
@@ -208,6 +232,7 @@ export namespace PBMaterial {
|
|
|
208
232
|
(obj.unlit = message.material?.unlit ? PBMaterial_UnlitMaterial.toJSON(message.material?.unlit) : undefined);
|
|
209
233
|
message.material?.$case === "pbr" &&
|
|
210
234
|
(obj.pbr = message.material?.pbr ? PBMaterial_PbrMaterial.toJSON(message.material?.pbr) : undefined);
|
|
235
|
+
message.gltf !== undefined && (obj.gltf = message.gltf ? PBMaterial_GltfMaterial.toJSON(message.gltf) : undefined);
|
|
211
236
|
return obj;
|
|
212
237
|
}
|
|
213
238
|
|
|
@@ -223,6 +248,9 @@ export namespace PBMaterial {
|
|
|
223
248
|
if (object.material?.$case === "pbr" && object.material?.pbr !== undefined && object.material?.pbr !== null) {
|
|
224
249
|
message.material = { $case: "pbr", pbr: PBMaterial_PbrMaterial.fromPartial(object.material.pbr) };
|
|
225
250
|
}
|
|
251
|
+
message.gltf = (object.gltf !== undefined && object.gltf !== null)
|
|
252
|
+
? PBMaterial_GltfMaterial.fromPartial(object.gltf)
|
|
253
|
+
: undefined;
|
|
226
254
|
return message;
|
|
227
255
|
}
|
|
228
256
|
}
|
|
@@ -638,6 +666,79 @@ export namespace PBMaterial_PbrMaterial {
|
|
|
638
666
|
}
|
|
639
667
|
}
|
|
640
668
|
|
|
669
|
+
function createBasePBMaterial_GltfMaterial(): PBMaterial_GltfMaterial {
|
|
670
|
+
return { gltfSrc: "", name: "" };
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
export namespace PBMaterial_GltfMaterial {
|
|
674
|
+
export function encode(message: PBMaterial_GltfMaterial, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
675
|
+
if (message.gltfSrc !== "") {
|
|
676
|
+
writer.uint32(10).string(message.gltfSrc);
|
|
677
|
+
}
|
|
678
|
+
if (message.name !== "") {
|
|
679
|
+
writer.uint32(18).string(message.name);
|
|
680
|
+
}
|
|
681
|
+
return writer;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial_GltfMaterial {
|
|
685
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
686
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
687
|
+
const message = createBasePBMaterial_GltfMaterial();
|
|
688
|
+
while (reader.pos < end) {
|
|
689
|
+
const tag = reader.uint32();
|
|
690
|
+
switch (tag >>> 3) {
|
|
691
|
+
case 1:
|
|
692
|
+
if (tag !== 10) {
|
|
693
|
+
break;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
message.gltfSrc = reader.string();
|
|
697
|
+
continue;
|
|
698
|
+
case 2:
|
|
699
|
+
if (tag !== 18) {
|
|
700
|
+
break;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
message.name = reader.string();
|
|
704
|
+
continue;
|
|
705
|
+
}
|
|
706
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
707
|
+
break;
|
|
708
|
+
}
|
|
709
|
+
reader.skipType(tag & 7);
|
|
710
|
+
}
|
|
711
|
+
return message;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
export function fromJSON(object: any): PBMaterial_GltfMaterial {
|
|
715
|
+
return {
|
|
716
|
+
gltfSrc: isSet(object.gltfSrc) ? String(object.gltfSrc) : "",
|
|
717
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
export function toJSON(message: PBMaterial_GltfMaterial): unknown {
|
|
722
|
+
const obj: any = {};
|
|
723
|
+
message.gltfSrc !== undefined && (obj.gltfSrc = message.gltfSrc);
|
|
724
|
+
message.name !== undefined && (obj.name = message.name);
|
|
725
|
+
return obj;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
export function create<I extends Exact<DeepPartial<PBMaterial_GltfMaterial>, I>>(base?: I): PBMaterial_GltfMaterial {
|
|
729
|
+
return PBMaterial_GltfMaterial.fromPartial(base ?? {});
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
export function fromPartial<I extends Exact<DeepPartial<PBMaterial_GltfMaterial>, I>>(
|
|
733
|
+
object: I,
|
|
734
|
+
): PBMaterial_GltfMaterial {
|
|
735
|
+
const message = createBasePBMaterial_GltfMaterial();
|
|
736
|
+
message.gltfSrc = object.gltfSrc ?? "";
|
|
737
|
+
message.name = object.name ?? "";
|
|
738
|
+
return message;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
|
|
641
742
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
642
743
|
|
|
643
744
|
export type DeepPartial<T> = T extends Builtin ? T
|