@dcl/ecs 7.25.1-30365680769.commit-9c1b99d → 7.25.1-30391610123.commit-26cb925
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/dist/components/generated/TouchScreenControls.gen.d.ts +1 -0
- package/dist/components/generated/TouchScreenControls.gen.js +25 -0
- package/dist/components/generated/UiInputBinding.gen.d.ts +1 -0
- package/dist/components/generated/UiInputBinding.gen.js +25 -0
- package/dist/components/generated/component-names.gen.js +2 -0
- package/dist/components/generated/global.gen.d.ts +4 -0
- package/dist/components/generated/global.gen.js +2 -0
- package/dist/components/generated/index.gen.d.ts +8 -0
- package/dist/components/generated/index.gen.js +10 -0
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.d.ts +3 -2
- package/dist/components/generated/pb/decentraland/sdk/components/touch_screen_controls.gen.d.ts +63 -0
- package/dist/components/generated/pb/decentraland/sdk/components/touch_screen_controls.gen.js +125 -0
- package/dist/components/generated/pb/decentraland/sdk/components/ui_input_binding.gen.d.ts +36 -0
- package/dist/components/generated/pb/decentraland/sdk/components/ui_input_binding.gen.js +50 -0
- package/dist/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.d.ts +3 -0
- package/dist/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.js +10 -1
- package/dist-cjs/components/generated/TouchScreenControls.gen.d.ts +1 -0
- package/dist-cjs/components/generated/TouchScreenControls.gen.js +28 -0
- package/dist-cjs/components/generated/UiInputBinding.gen.d.ts +1 -0
- package/dist-cjs/components/generated/UiInputBinding.gen.js +28 -0
- package/dist-cjs/components/generated/component-names.gen.js +2 -0
- package/dist-cjs/components/generated/global.gen.d.ts +4 -0
- package/dist-cjs/components/generated/global.gen.js +4 -2
- package/dist-cjs/components/generated/index.gen.d.ts +8 -0
- package/dist-cjs/components/generated/index.gen.js +14 -2
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.d.ts +3 -2
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/touch_screen_controls.gen.d.ts +63 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/touch_screen_controls.gen.js +131 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/ui_input_binding.gen.d.ts +36 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/ui_input_binding.gen.js +56 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.d.ts +3 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.js +10 -1
- package/package.json +2 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UiInputBindingSchema = void 0;
|
|
4
|
+
const ui_input_binding_gen_1 = require("./pb/decentraland/sdk/components/ui_input_binding.gen");
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
exports.UiInputBindingSchema = {
|
|
9
|
+
COMPONENT_ID: 1219,
|
|
10
|
+
serialize(value, builder) {
|
|
11
|
+
const writer = ui_input_binding_gen_1.PBUiInputBinding.encode(value);
|
|
12
|
+
const buffer = new Uint8Array(writer.finish(), 0, writer.len);
|
|
13
|
+
builder.writeBuffer(buffer, false);
|
|
14
|
+
},
|
|
15
|
+
deserialize(reader) {
|
|
16
|
+
return ui_input_binding_gen_1.PBUiInputBinding.decode(reader.buffer(), reader.remainingBytes());
|
|
17
|
+
},
|
|
18
|
+
create() {
|
|
19
|
+
// TODO: this is a hack.
|
|
20
|
+
return ui_input_binding_gen_1.PBUiInputBinding.decode(new Uint8Array());
|
|
21
|
+
},
|
|
22
|
+
jsonSchema: {
|
|
23
|
+
type: "object",
|
|
24
|
+
properties: {},
|
|
25
|
+
serializationType: "protocol-buffer",
|
|
26
|
+
protocolBuffer: "PBUiInputBinding"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -48,6 +48,7 @@ exports.coreComponentMappings = {
|
|
|
48
48
|
"core::RealmInfo": 1106,
|
|
49
49
|
"core::SkyboxTime": 1210,
|
|
50
50
|
"core::TextShape": 1030,
|
|
51
|
+
"core::TouchScreenControls": 1218,
|
|
51
52
|
"core::TriggerArea": 1060,
|
|
52
53
|
"core::TriggerAreaResult": 1061,
|
|
53
54
|
"core::Tween": 1102,
|
|
@@ -58,6 +59,7 @@ exports.coreComponentMappings = {
|
|
|
58
59
|
"core::UiDropdown": 1094,
|
|
59
60
|
"core::UiDropdownResult": 1096,
|
|
60
61
|
"core::UiInput": 1093,
|
|
62
|
+
"core::UiInputBinding": 1219,
|
|
61
63
|
"core::UiInputResult": 1095,
|
|
62
64
|
"core::UiText": 1052,
|
|
63
65
|
"core::UiTransform": 1050,
|
|
@@ -37,6 +37,7 @@ import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result
|
|
|
37
37
|
import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
|
|
38
38
|
import { PBSkyboxTime } from './pb/decentraland/sdk/components/skybox_time.gen';
|
|
39
39
|
import { PBTextShape } from './pb/decentraland/sdk/components/text_shape.gen';
|
|
40
|
+
import { PBTouchScreenControls } from './pb/decentraland/sdk/components/touch_screen_controls.gen';
|
|
40
41
|
import { PBTriggerArea } from './pb/decentraland/sdk/components/trigger_area.gen';
|
|
41
42
|
import { PBTriggerAreaResult } from './pb/decentraland/sdk/components/trigger_area_result.gen';
|
|
42
43
|
import { PBTweenSequence } from './pb/decentraland/sdk/components/tween_sequence.gen';
|
|
@@ -46,6 +47,7 @@ import { PBUiCanvasInformation } from './pb/decentraland/sdk/components/ui_canva
|
|
|
46
47
|
import { PBUiDropdown } from './pb/decentraland/sdk/components/ui_dropdown.gen';
|
|
47
48
|
import { PBUiDropdownResult } from './pb/decentraland/sdk/components/ui_dropdown_result.gen';
|
|
48
49
|
import { PBUiInput } from './pb/decentraland/sdk/components/ui_input.gen';
|
|
50
|
+
import { PBUiInputBinding } from './pb/decentraland/sdk/components/ui_input_binding.gen';
|
|
49
51
|
import { PBUiInputResult } from './pb/decentraland/sdk/components/ui_input_result.gen';
|
|
50
52
|
import { PBUiText } from './pb/decentraland/sdk/components/ui_text.gen';
|
|
51
53
|
import { PBUiTransform } from './pb/decentraland/sdk/components/ui_transform.gen';
|
|
@@ -90,6 +92,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
90
92
|
/** @public */ export declare const RealmInfo: LastWriteWinElementSetComponentDefinition<PBRealmInfo>;
|
|
91
93
|
/** @public */ export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
|
|
92
94
|
/** @public */ export declare const TextShape: LastWriteWinElementSetComponentDefinition<PBTextShape>;
|
|
95
|
+
/** @public */ export declare const TouchScreenControls: LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>;
|
|
93
96
|
/** @public */ export declare const TriggerArea: LastWriteWinElementSetComponentDefinition<PBTriggerArea>;
|
|
94
97
|
/** @public */ export declare const TriggerAreaResult: GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>;
|
|
95
98
|
/** @public */ export declare const TweenSequence: LastWriteWinElementSetComponentDefinition<PBTweenSequence>;
|
|
@@ -99,6 +102,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
99
102
|
/** @public */ export declare const UiDropdown: LastWriteWinElementSetComponentDefinition<PBUiDropdown>;
|
|
100
103
|
/** @public */ export declare const UiDropdownResult: LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>;
|
|
101
104
|
/** @public */ export declare const UiInput: LastWriteWinElementSetComponentDefinition<PBUiInput>;
|
|
105
|
+
/** @public */ export declare const UiInputBinding: LastWriteWinElementSetComponentDefinition<PBUiInputBinding>;
|
|
102
106
|
/** @public */ export declare const UiInputResult: LastWriteWinElementSetComponentDefinition<PBUiInputResult>;
|
|
103
107
|
/** @public */ export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
|
104
108
|
/** @public */ export declare const UiTransform: LastWriteWinElementSetComponentDefinition<PBUiTransform>;
|
|
@@ -26,8 +26,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = void 0;
|
|
29
|
+
exports.UiText = exports.UiInputResult = exports.UiInputBinding = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.TriggerAreaResult = exports.TriggerArea = exports.TouchScreenControls = exports.TextShape = exports.SkyboxTime = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.PhysicsCombinedImpulse = exports.PhysicsCombinedForce = exports.ParticleSystem = exports.NftShape = exports.MainCamera = exports.LightSource = exports.InputModifier = exports.GltfNodeModifiers = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarLocomotionSettings = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.AudioAnalysis = exports.AssetLoadLoadingState = exports.AssetLoad = void 0;
|
|
30
|
+
exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = void 0;
|
|
31
31
|
const initialization_1 = require("../../runtime/initialization");
|
|
32
32
|
const components = __importStar(require("./index.gen"));
|
|
33
33
|
__exportStar(require("./index.gen"), exports);
|
|
@@ -68,6 +68,7 @@ __exportStar(require("./index.gen"), exports);
|
|
|
68
68
|
/** @public */ exports.RealmInfo = components.RealmInfo(initialization_1.engine);
|
|
69
69
|
/** @public */ exports.SkyboxTime = components.SkyboxTime(initialization_1.engine);
|
|
70
70
|
/** @public */ exports.TextShape = components.TextShape(initialization_1.engine);
|
|
71
|
+
/** @public */ exports.TouchScreenControls = components.TouchScreenControls(initialization_1.engine);
|
|
71
72
|
/** @public */ exports.TriggerArea = components.TriggerArea(initialization_1.engine);
|
|
72
73
|
/** @public */ exports.TriggerAreaResult = components.TriggerAreaResult(initialization_1.engine);
|
|
73
74
|
/** @public */ exports.TweenSequence = components.TweenSequence(initialization_1.engine);
|
|
@@ -77,6 +78,7 @@ __exportStar(require("./index.gen"), exports);
|
|
|
77
78
|
/** @public */ exports.UiDropdown = components.UiDropdown(initialization_1.engine);
|
|
78
79
|
/** @public */ exports.UiDropdownResult = components.UiDropdownResult(initialization_1.engine);
|
|
79
80
|
/** @public */ exports.UiInput = components.UiInput(initialization_1.engine);
|
|
81
|
+
/** @public */ exports.UiInputBinding = components.UiInputBinding(initialization_1.engine);
|
|
80
82
|
/** @public */ exports.UiInputResult = components.UiInputResult(initialization_1.engine);
|
|
81
83
|
/** @public */ exports.UiText = components.UiText(initialization_1.engine);
|
|
82
84
|
/** @public */ exports.UiTransform = components.UiTransform(initialization_1.engine);
|
|
@@ -41,6 +41,7 @@ import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result
|
|
|
41
41
|
import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
|
|
42
42
|
import { PBSkyboxTime } from './pb/decentraland/sdk/components/skybox_time.gen';
|
|
43
43
|
import { PBTextShape } from './pb/decentraland/sdk/components/text_shape.gen';
|
|
44
|
+
import { PBTouchScreenControls } from './pb/decentraland/sdk/components/touch_screen_controls.gen';
|
|
44
45
|
import { PBTriggerArea } from './pb/decentraland/sdk/components/trigger_area.gen';
|
|
45
46
|
import { PBTriggerAreaResult } from './pb/decentraland/sdk/components/trigger_area_result.gen';
|
|
46
47
|
import { PBTween } from './pb/decentraland/sdk/components/tween.gen';
|
|
@@ -51,6 +52,7 @@ import { PBUiCanvasInformation } from './pb/decentraland/sdk/components/ui_canva
|
|
|
51
52
|
import { PBUiDropdown } from './pb/decentraland/sdk/components/ui_dropdown.gen';
|
|
52
53
|
import { PBUiDropdownResult } from './pb/decentraland/sdk/components/ui_dropdown_result.gen';
|
|
53
54
|
import { PBUiInput } from './pb/decentraland/sdk/components/ui_input.gen';
|
|
55
|
+
import { PBUiInputBinding } from './pb/decentraland/sdk/components/ui_input_binding.gen';
|
|
54
56
|
import { PBUiInputResult } from './pb/decentraland/sdk/components/ui_input_result.gen';
|
|
55
57
|
import { PBUiText } from './pb/decentraland/sdk/components/ui_text.gen';
|
|
56
58
|
import { PBUiTransform } from './pb/decentraland/sdk/components/ui_transform.gen';
|
|
@@ -99,6 +101,7 @@ export * from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
|
99
101
|
export * from './pb/decentraland/sdk/components/realm_info.gen';
|
|
100
102
|
export * from './pb/decentraland/sdk/components/skybox_time.gen';
|
|
101
103
|
export * from './pb/decentraland/sdk/components/text_shape.gen';
|
|
104
|
+
export * from './pb/decentraland/sdk/components/touch_screen_controls.gen';
|
|
102
105
|
export * from './pb/decentraland/sdk/components/trigger_area.gen';
|
|
103
106
|
export * from './pb/decentraland/sdk/components/trigger_area_result.gen';
|
|
104
107
|
export * from './pb/decentraland/sdk/components/tween.gen';
|
|
@@ -109,6 +112,7 @@ export * from './pb/decentraland/sdk/components/ui_canvas_information.gen';
|
|
|
109
112
|
export * from './pb/decentraland/sdk/components/ui_dropdown.gen';
|
|
110
113
|
export * from './pb/decentraland/sdk/components/ui_dropdown_result.gen';
|
|
111
114
|
export * from './pb/decentraland/sdk/components/ui_input.gen';
|
|
115
|
+
export * from './pb/decentraland/sdk/components/ui_input_binding.gen';
|
|
112
116
|
export * from './pb/decentraland/sdk/components/ui_input_result.gen';
|
|
113
117
|
export * from './pb/decentraland/sdk/components/ui_text.gen';
|
|
114
118
|
export * from './pb/decentraland/sdk/components/ui_transform.gen';
|
|
@@ -159,6 +163,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
159
163
|
/** @public */ export declare const RealmInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
160
164
|
/** @public */ export declare const SkyboxTime: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
|
|
161
165
|
/** @public */ export declare const TextShape: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
166
|
+
/** @public */ export declare const TouchScreenControls: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>>;
|
|
162
167
|
/** @public */ export declare const TriggerArea: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
|
|
163
168
|
/** @public */ export declare const TriggerAreaResult: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
|
|
164
169
|
/** @public */ export declare const Tween: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
|
@@ -169,6 +174,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
169
174
|
/** @public */ export declare const UiDropdown: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
|
|
170
175
|
/** @public */ export declare const UiDropdownResult: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
|
171
176
|
/** @public */ export declare const UiInput: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
|
177
|
+
/** @public */ export declare const UiInputBinding: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputBinding>>;
|
|
172
178
|
/** @public */ export declare const UiInputResult: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
|
|
173
179
|
/** @public */ export declare const UiText: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
|
|
174
180
|
/** @public */ export declare const UiTransform: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
|
|
@@ -219,6 +225,7 @@ export declare const componentDefinitionByName: {
|
|
|
219
225
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
220
226
|
"core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
|
|
221
227
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
228
|
+
"core::TouchScreenControls": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>>;
|
|
222
229
|
"core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
|
|
223
230
|
"core::TriggerAreaResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
|
|
224
231
|
"core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
|
@@ -229,6 +236,7 @@ export declare const componentDefinitionByName: {
|
|
|
229
236
|
"core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
|
|
230
237
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
|
231
238
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
|
239
|
+
"core::UiInputBinding": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputBinding>>;
|
|
232
240
|
"core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
|
|
233
241
|
"core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
|
|
234
242
|
"core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
|
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
exports.componentDefinitionByName = exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInput = void 0;
|
|
17
|
+
exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.Tween = exports.TriggerAreaResult = exports.TriggerArea = exports.TouchScreenControls = exports.TextShape = exports.SkyboxTime = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.PhysicsCombinedImpulse = exports.PhysicsCombinedForce = exports.ParticleSystem = exports.NftShape = exports.MeshRenderer = exports.MeshCollider = exports.Material = exports.MainCamera = exports.LightSource = exports.InputModifier = exports.GltfNodeModifiers = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarLocomotionSettings = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.AudioAnalysis = exports.AssetLoadLoadingState = exports.AssetLoad = exports.Animator = void 0;
|
|
18
|
+
exports.componentDefinitionByName = exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInputBinding = exports.UiInput = exports.UiDropdownResult = void 0;
|
|
19
19
|
const Animator_gen_1 = require("./Animator.gen");
|
|
20
20
|
const AssetLoad_gen_1 = require("./AssetLoad.gen");
|
|
21
21
|
const AssetLoadLoadingState_gen_1 = require("./AssetLoadLoadingState.gen");
|
|
@@ -57,6 +57,7 @@ const RaycastResult_gen_1 = require("./RaycastResult.gen");
|
|
|
57
57
|
const RealmInfo_gen_1 = require("./RealmInfo.gen");
|
|
58
58
|
const SkyboxTime_gen_1 = require("./SkyboxTime.gen");
|
|
59
59
|
const TextShape_gen_1 = require("./TextShape.gen");
|
|
60
|
+
const TouchScreenControls_gen_1 = require("./TouchScreenControls.gen");
|
|
60
61
|
const TriggerArea_gen_1 = require("./TriggerArea.gen");
|
|
61
62
|
const TriggerAreaResult_gen_1 = require("./TriggerAreaResult.gen");
|
|
62
63
|
const Tween_gen_1 = require("./Tween.gen");
|
|
@@ -67,6 +68,7 @@ const UiCanvasInformation_gen_1 = require("./UiCanvasInformation.gen");
|
|
|
67
68
|
const UiDropdown_gen_1 = require("./UiDropdown.gen");
|
|
68
69
|
const UiDropdownResult_gen_1 = require("./UiDropdownResult.gen");
|
|
69
70
|
const UiInput_gen_1 = require("./UiInput.gen");
|
|
71
|
+
const UiInputBinding_gen_1 = require("./UiInputBinding.gen");
|
|
70
72
|
const UiInputResult_gen_1 = require("./UiInputResult.gen");
|
|
71
73
|
const UiText_gen_1 = require("./UiText.gen");
|
|
72
74
|
const UiTransform_gen_1 = require("./UiTransform.gen");
|
|
@@ -115,6 +117,7 @@ __exportStar(require("./pb/decentraland/sdk/components/raycast_result.gen"), exp
|
|
|
115
117
|
__exportStar(require("./pb/decentraland/sdk/components/realm_info.gen"), exports);
|
|
116
118
|
__exportStar(require("./pb/decentraland/sdk/components/skybox_time.gen"), exports);
|
|
117
119
|
__exportStar(require("./pb/decentraland/sdk/components/text_shape.gen"), exports);
|
|
120
|
+
__exportStar(require("./pb/decentraland/sdk/components/touch_screen_controls.gen"), exports);
|
|
118
121
|
__exportStar(require("./pb/decentraland/sdk/components/trigger_area.gen"), exports);
|
|
119
122
|
__exportStar(require("./pb/decentraland/sdk/components/trigger_area_result.gen"), exports);
|
|
120
123
|
__exportStar(require("./pb/decentraland/sdk/components/tween.gen"), exports);
|
|
@@ -125,6 +128,7 @@ __exportStar(require("./pb/decentraland/sdk/components/ui_canvas_information.gen
|
|
|
125
128
|
__exportStar(require("./pb/decentraland/sdk/components/ui_dropdown.gen"), exports);
|
|
126
129
|
__exportStar(require("./pb/decentraland/sdk/components/ui_dropdown_result.gen"), exports);
|
|
127
130
|
__exportStar(require("./pb/decentraland/sdk/components/ui_input.gen"), exports);
|
|
131
|
+
__exportStar(require("./pb/decentraland/sdk/components/ui_input_binding.gen"), exports);
|
|
128
132
|
__exportStar(require("./pb/decentraland/sdk/components/ui_input_result.gen"), exports);
|
|
129
133
|
__exportStar(require("./pb/decentraland/sdk/components/ui_text.gen"), exports);
|
|
130
134
|
__exportStar(require("./pb/decentraland/sdk/components/ui_transform.gen"), exports);
|
|
@@ -263,6 +267,9 @@ exports.SkyboxTime = SkyboxTime;
|
|
|
263
267
|
/** @public */ const TextShape = engine =>
|
|
264
268
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::TextShape", TextShape_gen_1.TextShapeSchema);
|
|
265
269
|
exports.TextShape = TextShape;
|
|
270
|
+
/** @public */ const TouchScreenControls = engine =>
|
|
271
|
+
/* @__PURE__ */ engine.defineComponentFromSchema("core::TouchScreenControls", TouchScreenControls_gen_1.TouchScreenControlsSchema);
|
|
272
|
+
exports.TouchScreenControls = TouchScreenControls;
|
|
266
273
|
/** @public */ const TriggerArea = engine =>
|
|
267
274
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::TriggerArea", TriggerArea_gen_1.TriggerAreaSchema);
|
|
268
275
|
exports.TriggerArea = TriggerArea;
|
|
@@ -295,6 +302,9 @@ exports.UiDropdownResult = UiDropdownResult;
|
|
|
295
302
|
/** @public */ const UiInput = engine =>
|
|
296
303
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::UiInput", UiInput_gen_1.UiInputSchema);
|
|
297
304
|
exports.UiInput = UiInput;
|
|
305
|
+
/** @public */ const UiInputBinding = engine =>
|
|
306
|
+
/* @__PURE__ */ engine.defineComponentFromSchema("core::UiInputBinding", UiInputBinding_gen_1.UiInputBindingSchema);
|
|
307
|
+
exports.UiInputBinding = UiInputBinding;
|
|
298
308
|
/** @public */ const UiInputResult = engine =>
|
|
299
309
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::UiInputResult", UiInputResult_gen_1.UiInputResultSchema);
|
|
300
310
|
exports.UiInputResult = UiInputResult;
|
|
@@ -361,6 +371,7 @@ exports.componentDefinitionByName = {
|
|
|
361
371
|
"core::RealmInfo": exports.RealmInfo,
|
|
362
372
|
"core::SkyboxTime": exports.SkyboxTime,
|
|
363
373
|
"core::TextShape": exports.TextShape,
|
|
374
|
+
"core::TouchScreenControls": exports.TouchScreenControls,
|
|
364
375
|
"core::TriggerArea": exports.TriggerArea,
|
|
365
376
|
"core::TriggerAreaResult": exports.TriggerAreaResult,
|
|
366
377
|
"core::Tween": exports.Tween,
|
|
@@ -371,6 +382,7 @@ exports.componentDefinitionByName = {
|
|
|
371
382
|
"core::UiDropdown": exports.UiDropdown,
|
|
372
383
|
"core::UiDropdownResult": exports.UiDropdownResult,
|
|
373
384
|
"core::UiInput": exports.UiInput,
|
|
385
|
+
"core::UiInputBinding": exports.UiInputBinding,
|
|
374
386
|
"core::UiInputResult": exports.UiInputResult,
|
|
375
387
|
"core::UiText": exports.UiText,
|
|
376
388
|
"core::UiTransform": exports.UiTransform,
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
import { AvatarMask } from "./common/avatar_mask.gen";
|
|
3
3
|
/**
|
|
4
|
-
* AvatarEmoteCommand is a grow only value set,
|
|
5
|
-
* avatar
|
|
4
|
+
* AvatarEmoteCommand is a grow only value set, written by the explorer to report
|
|
5
|
+
* avatar emote playback to the scene. It is appended to every player entity in the
|
|
6
|
+
* scene (the local player and remote avatars alike).
|
|
6
7
|
*/
|
|
7
8
|
/**
|
|
8
9
|
* @public
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/touch_screen_controls.gen.d.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { TextureUnion } from "../../common/texture.gen";
|
|
3
|
+
import { InputAction } from "./common/input_action.gen";
|
|
4
|
+
/**
|
|
5
|
+
* The TouchScreenControls component lets a scene configure the native on-screen touch
|
|
6
|
+
* controls (the mobile joystick + gamepad). It must be set on the RootEntity.
|
|
7
|
+
*
|
|
8
|
+
* By default every on-screen button is shown; list a button in `touch_inputs` with
|
|
9
|
+
* `hide = true` to remove it (declutter). `main_action` picks which action the large
|
|
10
|
+
* central button triggers, and `hide_joystick` removes the native virtual joystick. It is
|
|
11
|
+
* a no-op on platforms without native on-screen controls (e.g. desktop).
|
|
12
|
+
*
|
|
13
|
+
* Accepted actions: only the on-screen gamepad actions map to a button — `IA_POINTER`,
|
|
14
|
+
* `IA_PRIMARY`, `IA_SECONDARY`, `IA_JUMP`, and `IA_ACTION_3`..`IA_ACTION_6`. Any other
|
|
15
|
+
* `InputAction` (movement actions, `IA_ANY`, `IA_MODIFIER`, or unknown/future values) is
|
|
16
|
+
* ignored: a `TouchInput` entry naming a non-button action has no effect, and a `main_action`
|
|
17
|
+
* that isn't a valid gamepad action falls back to the default central button (`IA_JUMP`).
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export interface PBTouchScreenControls {
|
|
23
|
+
touchInputs: PBTouchScreenControls_TouchInput[];
|
|
24
|
+
/**
|
|
25
|
+
* The large central button's action. Only the gamepad actions are valid:
|
|
26
|
+
* jump / pointer / primary (E) / secondary (F) / action_3..action_6 (1/2/3/4).
|
|
27
|
+
* When unset, the default central button (jump) is kept.
|
|
28
|
+
*/
|
|
29
|
+
mainAction?: InputAction | undefined;
|
|
30
|
+
/** hide the native virtual joystick */
|
|
31
|
+
hideJoystick: boolean;
|
|
32
|
+
/** hide the on-screen crosshair / reticle */
|
|
33
|
+
hideCrosshair: boolean;
|
|
34
|
+
}
|
|
35
|
+
/** Per-button configuration. A button not listed here keeps its default (shown). */
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export interface PBTouchScreenControls_TouchInput {
|
|
40
|
+
/** which on-screen button this configures */
|
|
41
|
+
inputAction: InputAction;
|
|
42
|
+
/** hide this button (default: shown) */
|
|
43
|
+
hide: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Override the button glyph with this texture. For the jump button it replaces all
|
|
46
|
+
* of its dynamic states (jump / double-jump / glide).
|
|
47
|
+
*/
|
|
48
|
+
icon?: TextureUnion | undefined;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
export declare namespace PBTouchScreenControls {
|
|
54
|
+
function encode(message: PBTouchScreenControls, writer?: _m0.Writer): _m0.Writer;
|
|
55
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBTouchScreenControls;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
export declare namespace PBTouchScreenControls_TouchInput {
|
|
61
|
+
function encode(message: PBTouchScreenControls_TouchInput, writer?: _m0.Writer): _m0.Writer;
|
|
62
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBTouchScreenControls_TouchInput;
|
|
63
|
+
}
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/touch_screen_controls.gen.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PBTouchScreenControls_TouchInput = exports.PBTouchScreenControls = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
const texture_gen_1 = require("../../common/texture.gen");
|
|
10
|
+
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
11
|
+
function createBasePBTouchScreenControls() {
|
|
12
|
+
return { touchInputs: [], mainAction: undefined, hideJoystick: false, hideCrosshair: false };
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
var PBTouchScreenControls;
|
|
18
|
+
(function (PBTouchScreenControls) {
|
|
19
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
for (const v of message.touchInputs) {
|
|
21
|
+
PBTouchScreenControls_TouchInput.encode(v, writer.uint32(10).fork()).ldelim();
|
|
22
|
+
}
|
|
23
|
+
if (message.mainAction !== undefined) {
|
|
24
|
+
writer.uint32(16).int32(message.mainAction);
|
|
25
|
+
}
|
|
26
|
+
if (message.hideJoystick === true) {
|
|
27
|
+
writer.uint32(24).bool(message.hideJoystick);
|
|
28
|
+
}
|
|
29
|
+
if (message.hideCrosshair === true) {
|
|
30
|
+
writer.uint32(32).bool(message.hideCrosshair);
|
|
31
|
+
}
|
|
32
|
+
return writer;
|
|
33
|
+
}
|
|
34
|
+
PBTouchScreenControls.encode = encode;
|
|
35
|
+
function decode(input, length) {
|
|
36
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
37
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38
|
+
const message = createBasePBTouchScreenControls();
|
|
39
|
+
while (reader.pos < end) {
|
|
40
|
+
const tag = reader.uint32();
|
|
41
|
+
switch (tag >>> 3) {
|
|
42
|
+
case 1:
|
|
43
|
+
if (tag !== 10) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
message.touchInputs.push(PBTouchScreenControls_TouchInput.decode(reader, reader.uint32()));
|
|
47
|
+
continue;
|
|
48
|
+
case 2:
|
|
49
|
+
if (tag !== 16) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
message.mainAction = reader.int32();
|
|
53
|
+
continue;
|
|
54
|
+
case 3:
|
|
55
|
+
if (tag !== 24) {
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
message.hideJoystick = reader.bool();
|
|
59
|
+
continue;
|
|
60
|
+
case 4:
|
|
61
|
+
if (tag !== 32) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
message.hideCrosshair = reader.bool();
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
reader.skipType(tag & 7);
|
|
71
|
+
}
|
|
72
|
+
return message;
|
|
73
|
+
}
|
|
74
|
+
PBTouchScreenControls.decode = decode;
|
|
75
|
+
})(PBTouchScreenControls = exports.PBTouchScreenControls || (exports.PBTouchScreenControls = {}));
|
|
76
|
+
function createBasePBTouchScreenControls_TouchInput() {
|
|
77
|
+
return { inputAction: 0, hide: false, icon: undefined };
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
var PBTouchScreenControls_TouchInput;
|
|
83
|
+
(function (PBTouchScreenControls_TouchInput) {
|
|
84
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
85
|
+
if (message.inputAction !== 0) {
|
|
86
|
+
writer.uint32(8).int32(message.inputAction);
|
|
87
|
+
}
|
|
88
|
+
if (message.hide === true) {
|
|
89
|
+
writer.uint32(16).bool(message.hide);
|
|
90
|
+
}
|
|
91
|
+
if (message.icon !== undefined) {
|
|
92
|
+
texture_gen_1.TextureUnion.encode(message.icon, writer.uint32(26).fork()).ldelim();
|
|
93
|
+
}
|
|
94
|
+
return writer;
|
|
95
|
+
}
|
|
96
|
+
PBTouchScreenControls_TouchInput.encode = encode;
|
|
97
|
+
function decode(input, length) {
|
|
98
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
99
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
100
|
+
const message = createBasePBTouchScreenControls_TouchInput();
|
|
101
|
+
while (reader.pos < end) {
|
|
102
|
+
const tag = reader.uint32();
|
|
103
|
+
switch (tag >>> 3) {
|
|
104
|
+
case 1:
|
|
105
|
+
if (tag !== 8) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
message.inputAction = reader.int32();
|
|
109
|
+
continue;
|
|
110
|
+
case 2:
|
|
111
|
+
if (tag !== 16) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
message.hide = reader.bool();
|
|
115
|
+
continue;
|
|
116
|
+
case 3:
|
|
117
|
+
if (tag !== 26) {
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
message.icon = texture_gen_1.TextureUnion.decode(reader, reader.uint32());
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
reader.skipType(tag & 7);
|
|
127
|
+
}
|
|
128
|
+
return message;
|
|
129
|
+
}
|
|
130
|
+
PBTouchScreenControls_TouchInput.decode = decode;
|
|
131
|
+
})(PBTouchScreenControls_TouchInput = exports.PBTouchScreenControls_TouchInput || (exports.PBTouchScreenControls_TouchInput = {}));
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/ui_input_binding.gen.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { InputAction } from "./common/input_action.gen";
|
|
3
|
+
/**
|
|
4
|
+
* The UiInputBinding component binds a UI entity to one or more InputActions. While the
|
|
5
|
+
* element is pressed (touch or pointer) the listed actions are held down, driving both
|
|
6
|
+
* the local player input and scene InputAction listeners, just like the native on-screen
|
|
7
|
+
* buttons. It is typically combined with PBTouchScreenControls to replace the native
|
|
8
|
+
* controls with a custom touch UI.
|
|
9
|
+
*
|
|
10
|
+
* Release semantics: the held actions are released as soon as the press that started them
|
|
11
|
+
* ends. A renderer MUST release all actions held by this binding when any of the following
|
|
12
|
+
* happens: the press/touch is lifted or cancelled, the pointer/touch leaves the element
|
|
13
|
+
* (loses press ownership), the actions list changes (the previous set is released before
|
|
14
|
+
* the new set is applied), the component is removed or its actions list becomes empty, the
|
|
15
|
+
* UI element is hidden, disabled or removed from the tree, or the scene unloads. In short,
|
|
16
|
+
* no action may remain held once the element is no longer both present and actively pressed.
|
|
17
|
+
*
|
|
18
|
+
* Multi-touch: the binding is a single held state, not reference-counted per pointer. The
|
|
19
|
+
* actions are held while the element is pressed and released when that press ends; a second
|
|
20
|
+
* simultaneous press on the same element does not stack, and does not extend the hold past
|
|
21
|
+
* the first release.
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export interface PBUiInputBinding {
|
|
27
|
+
/** the input actions fired while this element is pressed */
|
|
28
|
+
actions: InputAction[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export declare namespace PBUiInputBinding {
|
|
34
|
+
function encode(message: PBUiInputBinding, writer?: _m0.Writer): _m0.Writer;
|
|
35
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputBinding;
|
|
36
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PBUiInputBinding = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
10
|
+
function createBasePBUiInputBinding() {
|
|
11
|
+
return { actions: [] };
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
var PBUiInputBinding;
|
|
17
|
+
(function (PBUiInputBinding) {
|
|
18
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
19
|
+
writer.uint32(10).fork();
|
|
20
|
+
for (const v of message.actions) {
|
|
21
|
+
writer.int32(v);
|
|
22
|
+
}
|
|
23
|
+
writer.ldelim();
|
|
24
|
+
return writer;
|
|
25
|
+
}
|
|
26
|
+
PBUiInputBinding.encode = encode;
|
|
27
|
+
function decode(input, length) {
|
|
28
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
29
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
30
|
+
const message = createBasePBUiInputBinding();
|
|
31
|
+
while (reader.pos < end) {
|
|
32
|
+
const tag = reader.uint32();
|
|
33
|
+
switch (tag >>> 3) {
|
|
34
|
+
case 1:
|
|
35
|
+
if (tag === 8) {
|
|
36
|
+
message.actions.push(reader.int32());
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if (tag === 10) {
|
|
40
|
+
const end2 = reader.uint32() + reader.pos;
|
|
41
|
+
while (reader.pos < end2) {
|
|
42
|
+
message.actions.push(reader.int32());
|
|
43
|
+
}
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
}
|
|
55
|
+
PBUiInputBinding.decode = decode;
|
|
56
|
+
})(PBUiInputBinding = exports.PBUiInputBinding || (exports.PBUiInputBinding = {}));
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { CameraTransition } from "./common/camera_transition.gen";
|
|
|
6
6
|
* an 'instant' transition (like using speed/time = 0)
|
|
7
7
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
8
8
|
* the holding entity transform).
|
|
9
|
+
* * The fov defines the Field of View of the virtual camera
|
|
9
10
|
*/
|
|
10
11
|
/**
|
|
11
12
|
* @public
|
|
@@ -13,6 +14,8 @@ import { CameraTransition } from "./common/camera_transition.gen";
|
|
|
13
14
|
export interface PBVirtualCamera {
|
|
14
15
|
defaultTransition?: CameraTransition | undefined;
|
|
15
16
|
lookAtEntity?: number | undefined;
|
|
17
|
+
/** default: 60 */
|
|
18
|
+
fov?: number | undefined;
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
21
|
* @public
|
|
@@ -9,7 +9,7 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
|
9
9
|
const camera_transition_gen_1 = require("./common/camera_transition.gen");
|
|
10
10
|
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
11
11
|
function createBasePBVirtualCamera() {
|
|
12
|
-
return { defaultTransition: undefined, lookAtEntity: undefined };
|
|
12
|
+
return { defaultTransition: undefined, lookAtEntity: undefined, fov: undefined };
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* @public
|
|
@@ -23,6 +23,9 @@ var PBVirtualCamera;
|
|
|
23
23
|
if (message.lookAtEntity !== undefined) {
|
|
24
24
|
writer.uint32(16).uint32(message.lookAtEntity);
|
|
25
25
|
}
|
|
26
|
+
if (message.fov !== undefined) {
|
|
27
|
+
writer.uint32(29).float(message.fov);
|
|
28
|
+
}
|
|
26
29
|
return writer;
|
|
27
30
|
}
|
|
28
31
|
PBVirtualCamera.encode = encode;
|
|
@@ -45,6 +48,12 @@ var PBVirtualCamera;
|
|
|
45
48
|
}
|
|
46
49
|
message.lookAtEntity = reader.uint32();
|
|
47
50
|
continue;
|
|
51
|
+
case 3:
|
|
52
|
+
if (tag !== 29) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
message.fov = reader.float();
|
|
56
|
+
continue;
|
|
48
57
|
}
|
|
49
58
|
if ((tag & 7) === 4 || tag === 0) {
|
|
50
59
|
break;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.25.1-
|
|
4
|
+
"version": "7.25.1-30391610123.commit-26cb925",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/ecs/issues",
|
|
7
7
|
"files": [
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"dependencies": {},
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
36
|
"typings": "./dist/index.d.ts",
|
|
37
|
-
"commit": "
|
|
37
|
+
"commit": "26cb92516659d446b74945096eb4b7b48b7f06b1"
|
|
38
38
|
}
|