@dcl/ecs 7.8.22-16419593165.commit-2dc5189 → 7.8.22-16442069066.commit-9ae2f83
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/GltfNodeModifiers.gen.d.ts +1 -0
- package/dist/components/generated/GltfNodeModifiers.gen.js +25 -0
- package/dist/components/generated/SkyboxTime.gen.d.ts +1 -0
- package/dist/components/generated/SkyboxTime.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/gltf_node_modifiers.gen.d.ts +43 -0
- package/dist/components/generated/pb/decentraland/sdk/components/gltf_node_modifiers.gen.js +98 -0
- package/dist/components/generated/pb/decentraland/sdk/components/skybox_time.gen.d.ts +31 -0
- package/dist/components/generated/pb/decentraland/sdk/components/skybox_time.gen.js +61 -0
- package/dist-cjs/components/generated/GltfNodeModifiers.gen.d.ts +1 -0
- package/dist-cjs/components/generated/GltfNodeModifiers.gen.js +28 -0
- package/dist-cjs/components/generated/SkyboxTime.gen.d.ts +1 -0
- package/dist-cjs/components/generated/SkyboxTime.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 +3 -1
- package/dist-cjs/components/generated/index.gen.d.ts +8 -0
- package/dist-cjs/components/generated/index.gen.js +13 -1
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/gltf_node_modifiers.gen.d.ts +43 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/gltf_node_modifiers.gen.js +104 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/skybox_time.gen.d.ts +31 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/skybox_time.gen.js +67 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PBGltfNodeModifiers } from './pb/decentraland/sdk/components/gltf_node_modifiers.gen';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export const GltfNodeModifiersSchema = {
|
|
6
|
+
COMPONENT_ID: 1099,
|
|
7
|
+
serialize(value, builder) {
|
|
8
|
+
const writer = PBGltfNodeModifiers.encode(value);
|
|
9
|
+
const buffer = new Uint8Array(writer.finish(), 0, writer.len);
|
|
10
|
+
builder.writeBuffer(buffer, false);
|
|
11
|
+
},
|
|
12
|
+
deserialize(reader) {
|
|
13
|
+
return PBGltfNodeModifiers.decode(reader.buffer(), reader.remainingBytes());
|
|
14
|
+
},
|
|
15
|
+
create() {
|
|
16
|
+
// TODO: this is a hack.
|
|
17
|
+
return PBGltfNodeModifiers.decode(new Uint8Array());
|
|
18
|
+
},
|
|
19
|
+
jsonSchema: {
|
|
20
|
+
type: "object",
|
|
21
|
+
properties: {},
|
|
22
|
+
serializationType: "protocol-buffer",
|
|
23
|
+
protocolBuffer: "PBGltfNodeModifiers"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PBSkyboxTime } from './pb/decentraland/sdk/components/skybox_time.gen';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export const SkyboxTimeSchema = {
|
|
6
|
+
COMPONENT_ID: 1210,
|
|
7
|
+
serialize(value, builder) {
|
|
8
|
+
const writer = PBSkyboxTime.encode(value);
|
|
9
|
+
const buffer = new Uint8Array(writer.finish(), 0, writer.len);
|
|
10
|
+
builder.writeBuffer(buffer, false);
|
|
11
|
+
},
|
|
12
|
+
deserialize(reader) {
|
|
13
|
+
return PBSkyboxTime.decode(reader.buffer(), reader.remainingBytes());
|
|
14
|
+
},
|
|
15
|
+
create() {
|
|
16
|
+
// TODO: this is a hack.
|
|
17
|
+
return PBSkyboxTime.decode(new Uint8Array());
|
|
18
|
+
},
|
|
19
|
+
jsonSchema: {
|
|
20
|
+
type: "object",
|
|
21
|
+
properties: {},
|
|
22
|
+
serializationType: "protocol-buffer",
|
|
23
|
+
protocolBuffer: "PBSkyboxTime"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -19,6 +19,7 @@ export const coreComponentMappings = {
|
|
|
19
19
|
"core::EngineInfo": 1048,
|
|
20
20
|
"core::GltfContainer": 1041,
|
|
21
21
|
"core::GltfContainerLoadingState": 1049,
|
|
22
|
+
"core::GltfNodeModifiers": 1099,
|
|
22
23
|
"core::InputModifier": 1078,
|
|
23
24
|
"core::MainCamera": 1075,
|
|
24
25
|
"core::MapPin": 1097,
|
|
@@ -34,6 +35,7 @@ export const coreComponentMappings = {
|
|
|
34
35
|
"core::Raycast": 1067,
|
|
35
36
|
"core::RaycastResult": 1068,
|
|
36
37
|
"core::RealmInfo": 1106,
|
|
38
|
+
"core::SkyboxTime": 1210,
|
|
37
39
|
"core::TextShape": 1030,
|
|
38
40
|
"core::Tween": 1102,
|
|
39
41
|
"core::TweenSequence": 1104,
|
|
@@ -15,6 +15,7 @@ import { PBCameraModeArea } from './pb/decentraland/sdk/components/camera_mode_a
|
|
|
15
15
|
import { PBEngineInfo } from './pb/decentraland/sdk/components/engine_info.gen';
|
|
16
16
|
import { PBGltfContainer } from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
17
17
|
import { PBGltfContainerLoadingState } from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
18
|
+
import { PBGltfNodeModifiers } from './pb/decentraland/sdk/components/gltf_node_modifiers.gen';
|
|
18
19
|
import { PBInputModifier } from './pb/decentraland/sdk/components/input_modifier.gen';
|
|
19
20
|
import { PBMainCamera } from './pb/decentraland/sdk/components/main_camera.gen';
|
|
20
21
|
import { PBNftShape } from './pb/decentraland/sdk/components/nft_shape.gen';
|
|
@@ -26,6 +27,7 @@ import { PBPrimaryPointerInfo } from './pb/decentraland/sdk/components/primary_p
|
|
|
26
27
|
import { PBRaycast } from './pb/decentraland/sdk/components/raycast.gen';
|
|
27
28
|
import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
28
29
|
import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
|
|
30
|
+
import { PBSkyboxTime } from './pb/decentraland/sdk/components/skybox_time.gen';
|
|
29
31
|
import { PBTextShape } from './pb/decentraland/sdk/components/text_shape.gen';
|
|
30
32
|
import { PBTweenSequence } from './pb/decentraland/sdk/components/tween_sequence.gen';
|
|
31
33
|
import { PBTweenState } from './pb/decentraland/sdk/components/tween_state.gen';
|
|
@@ -56,6 +58,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
56
58
|
/** @public */ export declare const EngineInfo: LastWriteWinElementSetComponentDefinition<PBEngineInfo>;
|
|
57
59
|
/** @public */ export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PBGltfContainer>;
|
|
58
60
|
/** @public */ export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
|
|
61
|
+
/** @public */ export declare const GltfNodeModifiers: LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>;
|
|
59
62
|
/** @public */ export declare const InputModifier: LastWriteWinElementSetComponentDefinition<PBInputModifier>;
|
|
60
63
|
/** @public */ export declare const MainCamera: LastWriteWinElementSetComponentDefinition<PBMainCamera>;
|
|
61
64
|
/** @public */ export declare const NftShape: LastWriteWinElementSetComponentDefinition<PBNftShape>;
|
|
@@ -67,6 +70,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
67
70
|
/** @public */ export declare const Raycast: LastWriteWinElementSetComponentDefinition<PBRaycast>;
|
|
68
71
|
/** @public */ export declare const RaycastResult: LastWriteWinElementSetComponentDefinition<PBRaycastResult>;
|
|
69
72
|
/** @public */ export declare const RealmInfo: LastWriteWinElementSetComponentDefinition<PBRealmInfo>;
|
|
73
|
+
/** @public */ export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
|
|
70
74
|
/** @public */ export declare const TextShape: LastWriteWinElementSetComponentDefinition<PBTextShape>;
|
|
71
75
|
/** @public */ export declare const TweenSequence: LastWriteWinElementSetComponentDefinition<PBTweenSequence>;
|
|
72
76
|
/** @public */ export declare const TweenState: LastWriteWinElementSetComponentDefinition<PBTweenState>;
|
|
@@ -16,6 +16,7 @@ export * from './index.gen';
|
|
|
16
16
|
/** @public */ export const EngineInfo = /* @__PURE__ */ components.EngineInfo(engine);
|
|
17
17
|
/** @public */ export const GltfContainer = /* @__PURE__ */ components.GltfContainer(engine);
|
|
18
18
|
/** @public */ export const GltfContainerLoadingState = /* @__PURE__ */ components.GltfContainerLoadingState(engine);
|
|
19
|
+
/** @public */ export const GltfNodeModifiers = /* @__PURE__ */ components.GltfNodeModifiers(engine);
|
|
19
20
|
/** @public */ export const InputModifier = /* @__PURE__ */ components.InputModifier(engine);
|
|
20
21
|
/** @public */ export const MainCamera = /* @__PURE__ */ components.MainCamera(engine);
|
|
21
22
|
/** @public */ export const NftShape = /* @__PURE__ */ components.NftShape(engine);
|
|
@@ -27,6 +28,7 @@ export * from './index.gen';
|
|
|
27
28
|
/** @public */ export const Raycast = /* @__PURE__ */ components.Raycast(engine);
|
|
28
29
|
/** @public */ export const RaycastResult = /* @__PURE__ */ components.RaycastResult(engine);
|
|
29
30
|
/** @public */ export const RealmInfo = /* @__PURE__ */ components.RealmInfo(engine);
|
|
31
|
+
/** @public */ export const SkyboxTime = /* @__PURE__ */ components.SkyboxTime(engine);
|
|
30
32
|
/** @public */ export const TextShape = /* @__PURE__ */ components.TextShape(engine);
|
|
31
33
|
/** @public */ export const TweenSequence = /* @__PURE__ */ components.TweenSequence(engine);
|
|
32
34
|
/** @public */ export const TweenState = /* @__PURE__ */ components.TweenState(engine);
|
|
@@ -16,6 +16,7 @@ import { PBCameraModeArea } from './pb/decentraland/sdk/components/camera_mode_a
|
|
|
16
16
|
import { PBEngineInfo } from './pb/decentraland/sdk/components/engine_info.gen';
|
|
17
17
|
import { PBGltfContainer } from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
18
18
|
import { PBGltfContainerLoadingState } from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
19
|
+
import { PBGltfNodeModifiers } from './pb/decentraland/sdk/components/gltf_node_modifiers.gen';
|
|
19
20
|
import { PBInputModifier } from './pb/decentraland/sdk/components/input_modifier.gen';
|
|
20
21
|
import { PBMainCamera } from './pb/decentraland/sdk/components/main_camera.gen';
|
|
21
22
|
import { PBMaterial } from './pb/decentraland/sdk/components/material.gen';
|
|
@@ -30,6 +31,7 @@ import { PBPrimaryPointerInfo } from './pb/decentraland/sdk/components/primary_p
|
|
|
30
31
|
import { PBRaycast } from './pb/decentraland/sdk/components/raycast.gen';
|
|
31
32
|
import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
32
33
|
import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
|
|
34
|
+
import { PBSkyboxTime } from './pb/decentraland/sdk/components/skybox_time.gen';
|
|
33
35
|
import { PBTextShape } from './pb/decentraland/sdk/components/text_shape.gen';
|
|
34
36
|
import { PBTween } from './pb/decentraland/sdk/components/tween.gen';
|
|
35
37
|
import { PBTweenSequence } from './pb/decentraland/sdk/components/tween_sequence.gen';
|
|
@@ -62,6 +64,7 @@ export * from './pb/decentraland/sdk/components/camera_mode_area.gen';
|
|
|
62
64
|
export * from './pb/decentraland/sdk/components/engine_info.gen';
|
|
63
65
|
export * from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
64
66
|
export * from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
67
|
+
export * from './pb/decentraland/sdk/components/gltf_node_modifiers.gen';
|
|
65
68
|
export * from './pb/decentraland/sdk/components/input_modifier.gen';
|
|
66
69
|
export * from './pb/decentraland/sdk/components/main_camera.gen';
|
|
67
70
|
export * from './pb/decentraland/sdk/components/material.gen';
|
|
@@ -76,6 +79,7 @@ export * from './pb/decentraland/sdk/components/primary_pointer_info.gen';
|
|
|
76
79
|
export * from './pb/decentraland/sdk/components/raycast.gen';
|
|
77
80
|
export * from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
78
81
|
export * from './pb/decentraland/sdk/components/realm_info.gen';
|
|
82
|
+
export * from './pb/decentraland/sdk/components/skybox_time.gen';
|
|
79
83
|
export * from './pb/decentraland/sdk/components/text_shape.gen';
|
|
80
84
|
export * from './pb/decentraland/sdk/components/tween.gen';
|
|
81
85
|
export * from './pb/decentraland/sdk/components/tween_sequence.gen';
|
|
@@ -110,6 +114,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
110
114
|
/** @public */ export declare const EngineInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
|
111
115
|
/** @public */ export declare const GltfContainer: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
112
116
|
/** @public */ export declare const GltfContainerLoadingState: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
|
117
|
+
/** @public */ export declare const GltfNodeModifiers: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>>;
|
|
113
118
|
/** @public */ export declare const InputModifier: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
|
|
114
119
|
/** @public */ export declare const MainCamera: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
|
|
115
120
|
/** @public */ export declare const Material: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
|
@@ -124,6 +129,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
124
129
|
/** @public */ export declare const Raycast: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
|
125
130
|
/** @public */ export declare const RaycastResult: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
126
131
|
/** @public */ export declare const RealmInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
132
|
+
/** @public */ export declare const SkyboxTime: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
|
|
127
133
|
/** @public */ export declare const TextShape: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
128
134
|
/** @public */ export declare const Tween: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
|
129
135
|
/** @public */ export declare const TweenSequence: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
|
|
@@ -158,6 +164,7 @@ export declare const componentDefinitionByName: {
|
|
|
158
164
|
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
|
159
165
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
160
166
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
|
167
|
+
"core::GltfNodeModifiers": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>>;
|
|
161
168
|
"core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
|
|
162
169
|
"core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
|
|
163
170
|
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
|
@@ -172,6 +179,7 @@ export declare const componentDefinitionByName: {
|
|
|
172
179
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
|
173
180
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
174
181
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
182
|
+
"core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
|
|
175
183
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
176
184
|
"core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
|
177
185
|
"core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
|
|
@@ -14,6 +14,7 @@ import { CameraModeAreaSchema } from './CameraModeArea.gen';
|
|
|
14
14
|
import { EngineInfoSchema } from './EngineInfo.gen';
|
|
15
15
|
import { GltfContainerSchema } from './GltfContainer.gen';
|
|
16
16
|
import { GltfContainerLoadingStateSchema } from './GltfContainerLoadingState.gen';
|
|
17
|
+
import { GltfNodeModifiersSchema } from './GltfNodeModifiers.gen';
|
|
17
18
|
import { InputModifierSchema } from './InputModifier.gen';
|
|
18
19
|
import { MainCameraSchema } from './MainCamera.gen';
|
|
19
20
|
import { MaterialSchema } from './Material.gen';
|
|
@@ -28,6 +29,7 @@ import { PrimaryPointerInfoSchema } from './PrimaryPointerInfo.gen';
|
|
|
28
29
|
import { RaycastSchema } from './Raycast.gen';
|
|
29
30
|
import { RaycastResultSchema } from './RaycastResult.gen';
|
|
30
31
|
import { RealmInfoSchema } from './RealmInfo.gen';
|
|
32
|
+
import { SkyboxTimeSchema } from './SkyboxTime.gen';
|
|
31
33
|
import { TextShapeSchema } from './TextShape.gen';
|
|
32
34
|
import { TweenSchema } from './Tween.gen';
|
|
33
35
|
import { TweenSequenceSchema } from './TweenSequence.gen';
|
|
@@ -60,6 +62,7 @@ export * from './pb/decentraland/sdk/components/camera_mode_area.gen';
|
|
|
60
62
|
export * from './pb/decentraland/sdk/components/engine_info.gen';
|
|
61
63
|
export * from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
62
64
|
export * from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
65
|
+
export * from './pb/decentraland/sdk/components/gltf_node_modifiers.gen';
|
|
63
66
|
export * from './pb/decentraland/sdk/components/input_modifier.gen';
|
|
64
67
|
export * from './pb/decentraland/sdk/components/main_camera.gen';
|
|
65
68
|
export * from './pb/decentraland/sdk/components/material.gen';
|
|
@@ -74,6 +77,7 @@ export * from './pb/decentraland/sdk/components/primary_pointer_info.gen';
|
|
|
74
77
|
export * from './pb/decentraland/sdk/components/raycast.gen';
|
|
75
78
|
export * from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
76
79
|
export * from './pb/decentraland/sdk/components/realm_info.gen';
|
|
80
|
+
export * from './pb/decentraland/sdk/components/skybox_time.gen';
|
|
77
81
|
export * from './pb/decentraland/sdk/components/text_shape.gen';
|
|
78
82
|
export * from './pb/decentraland/sdk/components/tween.gen';
|
|
79
83
|
export * from './pb/decentraland/sdk/components/tween_sequence.gen';
|
|
@@ -126,6 +130,8 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
|
|
|
126
130
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::GltfContainer", GltfContainerSchema);
|
|
127
131
|
/** @public */ export const GltfContainerLoadingState = engine =>
|
|
128
132
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::GltfContainerLoadingState", GltfContainerLoadingStateSchema);
|
|
133
|
+
/** @public */ export const GltfNodeModifiers = engine =>
|
|
134
|
+
/* @__PURE__ */ engine.defineComponentFromSchema("core::GltfNodeModifiers", GltfNodeModifiersSchema);
|
|
129
135
|
/** @public */ export const InputModifier = engine =>
|
|
130
136
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::InputModifier", InputModifierSchema);
|
|
131
137
|
/** @public */ export const MainCamera = engine =>
|
|
@@ -156,6 +162,8 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
|
|
|
156
162
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::RaycastResult", RaycastResultSchema);
|
|
157
163
|
/** @public */ export const RealmInfo = engine =>
|
|
158
164
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::RealmInfo", RealmInfoSchema);
|
|
165
|
+
/** @public */ export const SkyboxTime = engine =>
|
|
166
|
+
/* @__PURE__ */ engine.defineComponentFromSchema("core::SkyboxTime", SkyboxTimeSchema);
|
|
159
167
|
/** @public */ export const TextShape = engine =>
|
|
160
168
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::TextShape", TextShapeSchema);
|
|
161
169
|
/** @public */ export const Tween = engine =>
|
|
@@ -208,6 +216,7 @@ export const componentDefinitionByName = /* @__PURE__ */ {
|
|
|
208
216
|
"core::EngineInfo": EngineInfo,
|
|
209
217
|
"core::GltfContainer": GltfContainer,
|
|
210
218
|
"core::GltfContainerLoadingState": GltfContainerLoadingState,
|
|
219
|
+
"core::GltfNodeModifiers": GltfNodeModifiers,
|
|
211
220
|
"core::InputModifier": InputModifier,
|
|
212
221
|
"core::MainCamera": MainCamera,
|
|
213
222
|
"core::Material": Material,
|
|
@@ -222,6 +231,7 @@ export const componentDefinitionByName = /* @__PURE__ */ {
|
|
|
222
231
|
"core::Raycast": Raycast,
|
|
223
232
|
"core::RaycastResult": RaycastResult,
|
|
224
233
|
"core::RealmInfo": RealmInfo,
|
|
234
|
+
"core::SkyboxTime": SkyboxTime,
|
|
225
235
|
"core::TextShape": TextShape,
|
|
226
236
|
"core::Tween": Tween,
|
|
227
237
|
"core::TweenSequence": TweenSequence,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { PBMaterial } from "./material.gen";
|
|
3
|
+
/**
|
|
4
|
+
* GltfNodeModifiers component is to be used attached to entities that have the GltfContainer component.
|
|
5
|
+
*
|
|
6
|
+
* This allows to override either the Material or the Casting Shadows behaviour of the target GLTF Node.
|
|
7
|
+
*
|
|
8
|
+
* * If the 'path' of the first modifier in the collection is an empty string: the configuration will
|
|
9
|
+
* affect all of the GLTF Nodes (as a global modifier).
|
|
10
|
+
* * Otherwise, for the modifiers whose 'path' is found in the GLTF hierarchy, the modifier will affect only
|
|
11
|
+
* the target Nodes.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export interface PBGltfNodeModifiers {
|
|
17
|
+
modifiers: PBGltfNodeModifiers_GltfNodeModifier[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export interface PBGltfNodeModifiers_GltfNodeModifier {
|
|
23
|
+
/** The GLTF hierarchy path of the target Node to be affected */
|
|
24
|
+
path: string;
|
|
25
|
+
/** The casting shadows enabled override */
|
|
26
|
+
castShadows?: boolean | undefined;
|
|
27
|
+
/** The Material that will be overridden on the target Node */
|
|
28
|
+
material?: PBMaterial | undefined;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export declare namespace PBGltfNodeModifiers {
|
|
34
|
+
function encode(message: PBGltfNodeModifiers, writer?: _m0.Writer): _m0.Writer;
|
|
35
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeModifiers;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export declare namespace PBGltfNodeModifiers_GltfNodeModifier {
|
|
41
|
+
function encode(message: PBGltfNodeModifiers_GltfNodeModifier, writer?: _m0.Writer): _m0.Writer;
|
|
42
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeModifiers_GltfNodeModifier;
|
|
43
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { PBMaterial } from "./material.gen";
|
|
4
|
+
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
5
|
+
function createBasePBGltfNodeModifiers() {
|
|
6
|
+
return { modifiers: [] };
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export var PBGltfNodeModifiers;
|
|
12
|
+
(function (PBGltfNodeModifiers) {
|
|
13
|
+
function encode(message, writer = _m0.Writer.create()) {
|
|
14
|
+
for (const v of message.modifiers) {
|
|
15
|
+
PBGltfNodeModifiers_GltfNodeModifier.encode(v, writer.uint32(10).fork()).ldelim();
|
|
16
|
+
}
|
|
17
|
+
return writer;
|
|
18
|
+
}
|
|
19
|
+
PBGltfNodeModifiers.encode = encode;
|
|
20
|
+
function decode(input, length) {
|
|
21
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
22
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
23
|
+
const message = createBasePBGltfNodeModifiers();
|
|
24
|
+
while (reader.pos < end) {
|
|
25
|
+
const tag = reader.uint32();
|
|
26
|
+
switch (tag >>> 3) {
|
|
27
|
+
case 1:
|
|
28
|
+
if (tag !== 10) {
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
message.modifiers.push(PBGltfNodeModifiers_GltfNodeModifier.decode(reader, reader.uint32()));
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
reader.skipType(tag & 7);
|
|
38
|
+
}
|
|
39
|
+
return message;
|
|
40
|
+
}
|
|
41
|
+
PBGltfNodeModifiers.decode = decode;
|
|
42
|
+
})(PBGltfNodeModifiers || (PBGltfNodeModifiers = {}));
|
|
43
|
+
function createBasePBGltfNodeModifiers_GltfNodeModifier() {
|
|
44
|
+
return { path: "", castShadows: undefined, material: undefined };
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
export var PBGltfNodeModifiers_GltfNodeModifier;
|
|
50
|
+
(function (PBGltfNodeModifiers_GltfNodeModifier) {
|
|
51
|
+
function encode(message, writer = _m0.Writer.create()) {
|
|
52
|
+
if (message.path !== "") {
|
|
53
|
+
writer.uint32(10).string(message.path);
|
|
54
|
+
}
|
|
55
|
+
if (message.castShadows !== undefined) {
|
|
56
|
+
writer.uint32(16).bool(message.castShadows);
|
|
57
|
+
}
|
|
58
|
+
if (message.material !== undefined) {
|
|
59
|
+
PBMaterial.encode(message.material, writer.uint32(26).fork()).ldelim();
|
|
60
|
+
}
|
|
61
|
+
return writer;
|
|
62
|
+
}
|
|
63
|
+
PBGltfNodeModifiers_GltfNodeModifier.encode = encode;
|
|
64
|
+
function decode(input, length) {
|
|
65
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
66
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
67
|
+
const message = createBasePBGltfNodeModifiers_GltfNodeModifier();
|
|
68
|
+
while (reader.pos < end) {
|
|
69
|
+
const tag = reader.uint32();
|
|
70
|
+
switch (tag >>> 3) {
|
|
71
|
+
case 1:
|
|
72
|
+
if (tag !== 10) {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
message.path = reader.string();
|
|
76
|
+
continue;
|
|
77
|
+
case 2:
|
|
78
|
+
if (tag !== 16) {
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
message.castShadows = reader.bool();
|
|
82
|
+
continue;
|
|
83
|
+
case 3:
|
|
84
|
+
if (tag !== 26) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
message.material = PBMaterial.decode(reader, reader.uint32());
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
reader.skipType(tag & 7);
|
|
94
|
+
}
|
|
95
|
+
return message;
|
|
96
|
+
}
|
|
97
|
+
PBGltfNodeModifiers_GltfNodeModifier.decode = decode;
|
|
98
|
+
})(PBGltfNodeModifiers_GltfNodeModifier || (PBGltfNodeModifiers_GltfNodeModifier = {}));
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
/** Controls the direction for animated skybox transitions */
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare const enum TransitionMode {
|
|
7
|
+
/** TM_FORWARD - transitions forward (default) */
|
|
8
|
+
TM_FORWARD = 0,
|
|
9
|
+
/** TM_BACKWARD - transitions backward */
|
|
10
|
+
TM_BACKWARD = 1
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The SkyboxTime component allows controlling the time of day for the skybox,
|
|
14
|
+
* affecting the lighting and appearance of the sky in the scene.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export interface PBSkyboxTime {
|
|
20
|
+
/** fixed time of day, represented as a number of seconds since the start of the day, where 0 is 00:00hs, 43200 is 12:00hs and 86400 is 24:00hs */
|
|
21
|
+
fixedTime: number;
|
|
22
|
+
/** default = TransitionMode.TM_FORWARD, controls the direction of time transitions */
|
|
23
|
+
transitionMode?: TransitionMode | undefined;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace PBSkyboxTime {
|
|
29
|
+
function encode(message: PBSkyboxTime, writer?: _m0.Writer): _m0.Writer;
|
|
30
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkyboxTime;
|
|
31
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
4
|
+
/** Controls the direction for animated skybox transitions */
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export var TransitionMode;
|
|
9
|
+
(function (TransitionMode) {
|
|
10
|
+
/** TM_FORWARD - transitions forward (default) */
|
|
11
|
+
TransitionMode[TransitionMode["TM_FORWARD"] = 0] = "TM_FORWARD";
|
|
12
|
+
/** TM_BACKWARD - transitions backward */
|
|
13
|
+
TransitionMode[TransitionMode["TM_BACKWARD"] = 1] = "TM_BACKWARD";
|
|
14
|
+
})(TransitionMode || (TransitionMode = {}));
|
|
15
|
+
function createBasePBSkyboxTime() {
|
|
16
|
+
return { fixedTime: 0, transitionMode: undefined };
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export var PBSkyboxTime;
|
|
22
|
+
(function (PBSkyboxTime) {
|
|
23
|
+
function encode(message, writer = _m0.Writer.create()) {
|
|
24
|
+
if (message.fixedTime !== 0) {
|
|
25
|
+
writer.uint32(8).uint32(message.fixedTime);
|
|
26
|
+
}
|
|
27
|
+
if (message.transitionMode !== undefined) {
|
|
28
|
+
writer.uint32(16).int32(message.transitionMode);
|
|
29
|
+
}
|
|
30
|
+
return writer;
|
|
31
|
+
}
|
|
32
|
+
PBSkyboxTime.encode = encode;
|
|
33
|
+
function decode(input, length) {
|
|
34
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36
|
+
const message = createBasePBSkyboxTime();
|
|
37
|
+
while (reader.pos < end) {
|
|
38
|
+
const tag = reader.uint32();
|
|
39
|
+
switch (tag >>> 3) {
|
|
40
|
+
case 1:
|
|
41
|
+
if (tag !== 8) {
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
message.fixedTime = reader.uint32();
|
|
45
|
+
continue;
|
|
46
|
+
case 2:
|
|
47
|
+
if (tag !== 16) {
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
message.transitionMode = reader.int32();
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
reader.skipType(tag & 7);
|
|
57
|
+
}
|
|
58
|
+
return message;
|
|
59
|
+
}
|
|
60
|
+
PBSkyboxTime.decode = decode;
|
|
61
|
+
})(PBSkyboxTime || (PBSkyboxTime = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GltfNodeModifiersSchema = void 0;
|
|
4
|
+
const gltf_node_modifiers_gen_1 = require("./pb/decentraland/sdk/components/gltf_node_modifiers.gen");
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
exports.GltfNodeModifiersSchema = {
|
|
9
|
+
COMPONENT_ID: 1099,
|
|
10
|
+
serialize(value, builder) {
|
|
11
|
+
const writer = gltf_node_modifiers_gen_1.PBGltfNodeModifiers.encode(value);
|
|
12
|
+
const buffer = new Uint8Array(writer.finish(), 0, writer.len);
|
|
13
|
+
builder.writeBuffer(buffer, false);
|
|
14
|
+
},
|
|
15
|
+
deserialize(reader) {
|
|
16
|
+
return gltf_node_modifiers_gen_1.PBGltfNodeModifiers.decode(reader.buffer(), reader.remainingBytes());
|
|
17
|
+
},
|
|
18
|
+
create() {
|
|
19
|
+
// TODO: this is a hack.
|
|
20
|
+
return gltf_node_modifiers_gen_1.PBGltfNodeModifiers.decode(new Uint8Array());
|
|
21
|
+
},
|
|
22
|
+
jsonSchema: {
|
|
23
|
+
type: "object",
|
|
24
|
+
properties: {},
|
|
25
|
+
serializationType: "protocol-buffer",
|
|
26
|
+
protocolBuffer: "PBGltfNodeModifiers"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SkyboxTimeSchema = void 0;
|
|
4
|
+
const skybox_time_gen_1 = require("./pb/decentraland/sdk/components/skybox_time.gen");
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
exports.SkyboxTimeSchema = {
|
|
9
|
+
COMPONENT_ID: 1210,
|
|
10
|
+
serialize(value, builder) {
|
|
11
|
+
const writer = skybox_time_gen_1.PBSkyboxTime.encode(value);
|
|
12
|
+
const buffer = new Uint8Array(writer.finish(), 0, writer.len);
|
|
13
|
+
builder.writeBuffer(buffer, false);
|
|
14
|
+
},
|
|
15
|
+
deserialize(reader) {
|
|
16
|
+
return skybox_time_gen_1.PBSkyboxTime.decode(reader.buffer(), reader.remainingBytes());
|
|
17
|
+
},
|
|
18
|
+
create() {
|
|
19
|
+
// TODO: this is a hack.
|
|
20
|
+
return skybox_time_gen_1.PBSkyboxTime.decode(new Uint8Array());
|
|
21
|
+
},
|
|
22
|
+
jsonSchema: {
|
|
23
|
+
type: "object",
|
|
24
|
+
properties: {},
|
|
25
|
+
serializationType: "protocol-buffer",
|
|
26
|
+
protocolBuffer: "PBSkyboxTime"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -22,6 +22,7 @@ exports.coreComponentMappings = {
|
|
|
22
22
|
"core::EngineInfo": 1048,
|
|
23
23
|
"core::GltfContainer": 1041,
|
|
24
24
|
"core::GltfContainerLoadingState": 1049,
|
|
25
|
+
"core::GltfNodeModifiers": 1099,
|
|
25
26
|
"core::InputModifier": 1078,
|
|
26
27
|
"core::MainCamera": 1075,
|
|
27
28
|
"core::MapPin": 1097,
|
|
@@ -37,6 +38,7 @@ exports.coreComponentMappings = {
|
|
|
37
38
|
"core::Raycast": 1067,
|
|
38
39
|
"core::RaycastResult": 1068,
|
|
39
40
|
"core::RealmInfo": 1106,
|
|
41
|
+
"core::SkyboxTime": 1210,
|
|
40
42
|
"core::TextShape": 1030,
|
|
41
43
|
"core::Tween": 1102,
|
|
42
44
|
"core::TweenSequence": 1104,
|
|
@@ -15,6 +15,7 @@ import { PBCameraModeArea } from './pb/decentraland/sdk/components/camera_mode_a
|
|
|
15
15
|
import { PBEngineInfo } from './pb/decentraland/sdk/components/engine_info.gen';
|
|
16
16
|
import { PBGltfContainer } from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
17
17
|
import { PBGltfContainerLoadingState } from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
18
|
+
import { PBGltfNodeModifiers } from './pb/decentraland/sdk/components/gltf_node_modifiers.gen';
|
|
18
19
|
import { PBInputModifier } from './pb/decentraland/sdk/components/input_modifier.gen';
|
|
19
20
|
import { PBMainCamera } from './pb/decentraland/sdk/components/main_camera.gen';
|
|
20
21
|
import { PBNftShape } from './pb/decentraland/sdk/components/nft_shape.gen';
|
|
@@ -26,6 +27,7 @@ import { PBPrimaryPointerInfo } from './pb/decentraland/sdk/components/primary_p
|
|
|
26
27
|
import { PBRaycast } from './pb/decentraland/sdk/components/raycast.gen';
|
|
27
28
|
import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
28
29
|
import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
|
|
30
|
+
import { PBSkyboxTime } from './pb/decentraland/sdk/components/skybox_time.gen';
|
|
29
31
|
import { PBTextShape } from './pb/decentraland/sdk/components/text_shape.gen';
|
|
30
32
|
import { PBTweenSequence } from './pb/decentraland/sdk/components/tween_sequence.gen';
|
|
31
33
|
import { PBTweenState } from './pb/decentraland/sdk/components/tween_state.gen';
|
|
@@ -56,6 +58,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
56
58
|
/** @public */ export declare const EngineInfo: LastWriteWinElementSetComponentDefinition<PBEngineInfo>;
|
|
57
59
|
/** @public */ export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PBGltfContainer>;
|
|
58
60
|
/** @public */ export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
|
|
61
|
+
/** @public */ export declare const GltfNodeModifiers: LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>;
|
|
59
62
|
/** @public */ export declare const InputModifier: LastWriteWinElementSetComponentDefinition<PBInputModifier>;
|
|
60
63
|
/** @public */ export declare const MainCamera: LastWriteWinElementSetComponentDefinition<PBMainCamera>;
|
|
61
64
|
/** @public */ export declare const NftShape: LastWriteWinElementSetComponentDefinition<PBNftShape>;
|
|
@@ -67,6 +70,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
67
70
|
/** @public */ export declare const Raycast: LastWriteWinElementSetComponentDefinition<PBRaycast>;
|
|
68
71
|
/** @public */ export declare const RaycastResult: LastWriteWinElementSetComponentDefinition<PBRaycastResult>;
|
|
69
72
|
/** @public */ export declare const RealmInfo: LastWriteWinElementSetComponentDefinition<PBRealmInfo>;
|
|
73
|
+
/** @public */ export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
|
|
70
74
|
/** @public */ export declare const TextShape: LastWriteWinElementSetComponentDefinition<PBTextShape>;
|
|
71
75
|
/** @public */ export declare const TweenSequence: LastWriteWinElementSetComponentDefinition<PBTweenSequence>;
|
|
72
76
|
/** @public */ export declare const TweenState: LastWriteWinElementSetComponentDefinition<PBTweenState>;
|
|
@@ -26,7 +26,7 @@ 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.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.TextShape = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.NftShape = exports.MainCamera = exports.InputModifier = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = void 0;
|
|
29
|
+
exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.TextShape = exports.SkyboxTime = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.NftShape = exports.MainCamera = exports.InputModifier = exports.GltfNodeModifiers = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = void 0;
|
|
30
30
|
const initialization_1 = require("../../runtime/initialization");
|
|
31
31
|
const components = __importStar(require("./index.gen"));
|
|
32
32
|
__exportStar(require("./index.gen"), exports);
|
|
@@ -45,6 +45,7 @@ __exportStar(require("./index.gen"), exports);
|
|
|
45
45
|
/** @public */ exports.EngineInfo = components.EngineInfo(initialization_1.engine);
|
|
46
46
|
/** @public */ exports.GltfContainer = components.GltfContainer(initialization_1.engine);
|
|
47
47
|
/** @public */ exports.GltfContainerLoadingState = components.GltfContainerLoadingState(initialization_1.engine);
|
|
48
|
+
/** @public */ exports.GltfNodeModifiers = components.GltfNodeModifiers(initialization_1.engine);
|
|
48
49
|
/** @public */ exports.InputModifier = components.InputModifier(initialization_1.engine);
|
|
49
50
|
/** @public */ exports.MainCamera = components.MainCamera(initialization_1.engine);
|
|
50
51
|
/** @public */ exports.NftShape = components.NftShape(initialization_1.engine);
|
|
@@ -56,6 +57,7 @@ __exportStar(require("./index.gen"), exports);
|
|
|
56
57
|
/** @public */ exports.Raycast = components.Raycast(initialization_1.engine);
|
|
57
58
|
/** @public */ exports.RaycastResult = components.RaycastResult(initialization_1.engine);
|
|
58
59
|
/** @public */ exports.RealmInfo = components.RealmInfo(initialization_1.engine);
|
|
60
|
+
/** @public */ exports.SkyboxTime = components.SkyboxTime(initialization_1.engine);
|
|
59
61
|
/** @public */ exports.TextShape = components.TextShape(initialization_1.engine);
|
|
60
62
|
/** @public */ exports.TweenSequence = components.TweenSequence(initialization_1.engine);
|
|
61
63
|
/** @public */ exports.TweenState = components.TweenState(initialization_1.engine);
|
|
@@ -16,6 +16,7 @@ import { PBCameraModeArea } from './pb/decentraland/sdk/components/camera_mode_a
|
|
|
16
16
|
import { PBEngineInfo } from './pb/decentraland/sdk/components/engine_info.gen';
|
|
17
17
|
import { PBGltfContainer } from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
18
18
|
import { PBGltfContainerLoadingState } from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
19
|
+
import { PBGltfNodeModifiers } from './pb/decentraland/sdk/components/gltf_node_modifiers.gen';
|
|
19
20
|
import { PBInputModifier } from './pb/decentraland/sdk/components/input_modifier.gen';
|
|
20
21
|
import { PBMainCamera } from './pb/decentraland/sdk/components/main_camera.gen';
|
|
21
22
|
import { PBMaterial } from './pb/decentraland/sdk/components/material.gen';
|
|
@@ -30,6 +31,7 @@ import { PBPrimaryPointerInfo } from './pb/decentraland/sdk/components/primary_p
|
|
|
30
31
|
import { PBRaycast } from './pb/decentraland/sdk/components/raycast.gen';
|
|
31
32
|
import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
32
33
|
import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
|
|
34
|
+
import { PBSkyboxTime } from './pb/decentraland/sdk/components/skybox_time.gen';
|
|
33
35
|
import { PBTextShape } from './pb/decentraland/sdk/components/text_shape.gen';
|
|
34
36
|
import { PBTween } from './pb/decentraland/sdk/components/tween.gen';
|
|
35
37
|
import { PBTweenSequence } from './pb/decentraland/sdk/components/tween_sequence.gen';
|
|
@@ -62,6 +64,7 @@ export * from './pb/decentraland/sdk/components/camera_mode_area.gen';
|
|
|
62
64
|
export * from './pb/decentraland/sdk/components/engine_info.gen';
|
|
63
65
|
export * from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
64
66
|
export * from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
67
|
+
export * from './pb/decentraland/sdk/components/gltf_node_modifiers.gen';
|
|
65
68
|
export * from './pb/decentraland/sdk/components/input_modifier.gen';
|
|
66
69
|
export * from './pb/decentraland/sdk/components/main_camera.gen';
|
|
67
70
|
export * from './pb/decentraland/sdk/components/material.gen';
|
|
@@ -76,6 +79,7 @@ export * from './pb/decentraland/sdk/components/primary_pointer_info.gen';
|
|
|
76
79
|
export * from './pb/decentraland/sdk/components/raycast.gen';
|
|
77
80
|
export * from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
78
81
|
export * from './pb/decentraland/sdk/components/realm_info.gen';
|
|
82
|
+
export * from './pb/decentraland/sdk/components/skybox_time.gen';
|
|
79
83
|
export * from './pb/decentraland/sdk/components/text_shape.gen';
|
|
80
84
|
export * from './pb/decentraland/sdk/components/tween.gen';
|
|
81
85
|
export * from './pb/decentraland/sdk/components/tween_sequence.gen';
|
|
@@ -110,6 +114,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
110
114
|
/** @public */ export declare const EngineInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
|
111
115
|
/** @public */ export declare const GltfContainer: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
112
116
|
/** @public */ export declare const GltfContainerLoadingState: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
|
117
|
+
/** @public */ export declare const GltfNodeModifiers: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>>;
|
|
113
118
|
/** @public */ export declare const InputModifier: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
|
|
114
119
|
/** @public */ export declare const MainCamera: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
|
|
115
120
|
/** @public */ export declare const Material: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
|
@@ -124,6 +129,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
124
129
|
/** @public */ export declare const Raycast: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
|
125
130
|
/** @public */ export declare const RaycastResult: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
126
131
|
/** @public */ export declare const RealmInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
132
|
+
/** @public */ export declare const SkyboxTime: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
|
|
127
133
|
/** @public */ export declare const TextShape: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
128
134
|
/** @public */ export declare const Tween: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
|
129
135
|
/** @public */ export declare const TweenSequence: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
|
|
@@ -158,6 +164,7 @@ export declare const componentDefinitionByName: {
|
|
|
158
164
|
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
|
159
165
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
160
166
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
|
167
|
+
"core::GltfNodeModifiers": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>>;
|
|
161
168
|
"core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
|
|
162
169
|
"core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
|
|
163
170
|
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
|
@@ -172,6 +179,7 @@ export declare const componentDefinitionByName: {
|
|
|
172
179
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
|
173
180
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
174
181
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
182
|
+
"core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
|
|
175
183
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
176
184
|
"core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
|
177
185
|
"core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
|
|
@@ -14,7 +14,7 @@ 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.componentDefinitionByName = exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.Tween = exports.TextShape = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.NftShape = exports.MeshRenderer = exports.MeshCollider = exports.Material = exports.MainCamera = exports.InputModifier = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.Animator = void 0;
|
|
17
|
+
exports.componentDefinitionByName = exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.Tween = exports.TextShape = exports.SkyboxTime = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.NftShape = exports.MeshRenderer = exports.MeshCollider = exports.Material = exports.MainCamera = exports.InputModifier = exports.GltfNodeModifiers = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.Animator = void 0;
|
|
18
18
|
const Animator_gen_1 = require("./Animator.gen");
|
|
19
19
|
const AudioEvent_gen_1 = require("./AudioEvent.gen");
|
|
20
20
|
const AudioSource_gen_1 = require("./AudioSource.gen");
|
|
@@ -31,6 +31,7 @@ const CameraModeArea_gen_1 = require("./CameraModeArea.gen");
|
|
|
31
31
|
const EngineInfo_gen_1 = require("./EngineInfo.gen");
|
|
32
32
|
const GltfContainer_gen_1 = require("./GltfContainer.gen");
|
|
33
33
|
const GltfContainerLoadingState_gen_1 = require("./GltfContainerLoadingState.gen");
|
|
34
|
+
const GltfNodeModifiers_gen_1 = require("./GltfNodeModifiers.gen");
|
|
34
35
|
const InputModifier_gen_1 = require("./InputModifier.gen");
|
|
35
36
|
const MainCamera_gen_1 = require("./MainCamera.gen");
|
|
36
37
|
const Material_gen_1 = require("./Material.gen");
|
|
@@ -45,6 +46,7 @@ const PrimaryPointerInfo_gen_1 = require("./PrimaryPointerInfo.gen");
|
|
|
45
46
|
const Raycast_gen_1 = require("./Raycast.gen");
|
|
46
47
|
const RaycastResult_gen_1 = require("./RaycastResult.gen");
|
|
47
48
|
const RealmInfo_gen_1 = require("./RealmInfo.gen");
|
|
49
|
+
const SkyboxTime_gen_1 = require("./SkyboxTime.gen");
|
|
48
50
|
const TextShape_gen_1 = require("./TextShape.gen");
|
|
49
51
|
const Tween_gen_1 = require("./Tween.gen");
|
|
50
52
|
const TweenSequence_gen_1 = require("./TweenSequence.gen");
|
|
@@ -77,6 +79,7 @@ __exportStar(require("./pb/decentraland/sdk/components/camera_mode_area.gen"), e
|
|
|
77
79
|
__exportStar(require("./pb/decentraland/sdk/components/engine_info.gen"), exports);
|
|
78
80
|
__exportStar(require("./pb/decentraland/sdk/components/gltf_container.gen"), exports);
|
|
79
81
|
__exportStar(require("./pb/decentraland/sdk/components/gltf_container_loading_state.gen"), exports);
|
|
82
|
+
__exportStar(require("./pb/decentraland/sdk/components/gltf_node_modifiers.gen"), exports);
|
|
80
83
|
__exportStar(require("./pb/decentraland/sdk/components/input_modifier.gen"), exports);
|
|
81
84
|
__exportStar(require("./pb/decentraland/sdk/components/main_camera.gen"), exports);
|
|
82
85
|
__exportStar(require("./pb/decentraland/sdk/components/material.gen"), exports);
|
|
@@ -91,6 +94,7 @@ __exportStar(require("./pb/decentraland/sdk/components/primary_pointer_info.gen"
|
|
|
91
94
|
__exportStar(require("./pb/decentraland/sdk/components/raycast.gen"), exports);
|
|
92
95
|
__exportStar(require("./pb/decentraland/sdk/components/raycast_result.gen"), exports);
|
|
93
96
|
__exportStar(require("./pb/decentraland/sdk/components/realm_info.gen"), exports);
|
|
97
|
+
__exportStar(require("./pb/decentraland/sdk/components/skybox_time.gen"), exports);
|
|
94
98
|
__exportStar(require("./pb/decentraland/sdk/components/text_shape.gen"), exports);
|
|
95
99
|
__exportStar(require("./pb/decentraland/sdk/components/tween.gen"), exports);
|
|
96
100
|
__exportStar(require("./pb/decentraland/sdk/components/tween_sequence.gen"), exports);
|
|
@@ -159,6 +163,9 @@ exports.GltfContainer = GltfContainer;
|
|
|
159
163
|
/** @public */ const GltfContainerLoadingState = engine =>
|
|
160
164
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::GltfContainerLoadingState", GltfContainerLoadingState_gen_1.GltfContainerLoadingStateSchema);
|
|
161
165
|
exports.GltfContainerLoadingState = GltfContainerLoadingState;
|
|
166
|
+
/** @public */ const GltfNodeModifiers = engine =>
|
|
167
|
+
/* @__PURE__ */ engine.defineComponentFromSchema("core::GltfNodeModifiers", GltfNodeModifiers_gen_1.GltfNodeModifiersSchema);
|
|
168
|
+
exports.GltfNodeModifiers = GltfNodeModifiers;
|
|
162
169
|
/** @public */ const InputModifier = engine =>
|
|
163
170
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::InputModifier", InputModifier_gen_1.InputModifierSchema);
|
|
164
171
|
exports.InputModifier = InputModifier;
|
|
@@ -203,6 +210,9 @@ exports.RaycastResult = RaycastResult;
|
|
|
203
210
|
/** @public */ const RealmInfo = engine =>
|
|
204
211
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::RealmInfo", RealmInfo_gen_1.RealmInfoSchema);
|
|
205
212
|
exports.RealmInfo = RealmInfo;
|
|
213
|
+
/** @public */ const SkyboxTime = engine =>
|
|
214
|
+
/* @__PURE__ */ engine.defineComponentFromSchema("core::SkyboxTime", SkyboxTime_gen_1.SkyboxTimeSchema);
|
|
215
|
+
exports.SkyboxTime = SkyboxTime;
|
|
206
216
|
/** @public */ const TextShape = engine =>
|
|
207
217
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::TextShape", TextShape_gen_1.TextShapeSchema);
|
|
208
218
|
exports.TextShape = TextShape;
|
|
@@ -271,6 +281,7 @@ exports.componentDefinitionByName = {
|
|
|
271
281
|
"core::EngineInfo": exports.EngineInfo,
|
|
272
282
|
"core::GltfContainer": exports.GltfContainer,
|
|
273
283
|
"core::GltfContainerLoadingState": exports.GltfContainerLoadingState,
|
|
284
|
+
"core::GltfNodeModifiers": exports.GltfNodeModifiers,
|
|
274
285
|
"core::InputModifier": exports.InputModifier,
|
|
275
286
|
"core::MainCamera": exports.MainCamera,
|
|
276
287
|
"core::Material": exports.Material,
|
|
@@ -285,6 +296,7 @@ exports.componentDefinitionByName = {
|
|
|
285
296
|
"core::Raycast": exports.Raycast,
|
|
286
297
|
"core::RaycastResult": exports.RaycastResult,
|
|
287
298
|
"core::RealmInfo": exports.RealmInfo,
|
|
299
|
+
"core::SkyboxTime": exports.SkyboxTime,
|
|
288
300
|
"core::TextShape": exports.TextShape,
|
|
289
301
|
"core::Tween": exports.Tween,
|
|
290
302
|
"core::TweenSequence": exports.TweenSequence,
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/gltf_node_modifiers.gen.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { PBMaterial } from "./material.gen";
|
|
3
|
+
/**
|
|
4
|
+
* GltfNodeModifiers component is to be used attached to entities that have the GltfContainer component.
|
|
5
|
+
*
|
|
6
|
+
* This allows to override either the Material or the Casting Shadows behaviour of the target GLTF Node.
|
|
7
|
+
*
|
|
8
|
+
* * If the 'path' of the first modifier in the collection is an empty string: the configuration will
|
|
9
|
+
* affect all of the GLTF Nodes (as a global modifier).
|
|
10
|
+
* * Otherwise, for the modifiers whose 'path' is found in the GLTF hierarchy, the modifier will affect only
|
|
11
|
+
* the target Nodes.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export interface PBGltfNodeModifiers {
|
|
17
|
+
modifiers: PBGltfNodeModifiers_GltfNodeModifier[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export interface PBGltfNodeModifiers_GltfNodeModifier {
|
|
23
|
+
/** The GLTF hierarchy path of the target Node to be affected */
|
|
24
|
+
path: string;
|
|
25
|
+
/** The casting shadows enabled override */
|
|
26
|
+
castShadows?: boolean | undefined;
|
|
27
|
+
/** The Material that will be overridden on the target Node */
|
|
28
|
+
material?: PBMaterial | undefined;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export declare namespace PBGltfNodeModifiers {
|
|
34
|
+
function encode(message: PBGltfNodeModifiers, writer?: _m0.Writer): _m0.Writer;
|
|
35
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeModifiers;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export declare namespace PBGltfNodeModifiers_GltfNodeModifier {
|
|
41
|
+
function encode(message: PBGltfNodeModifiers_GltfNodeModifier, writer?: _m0.Writer): _m0.Writer;
|
|
42
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeModifiers_GltfNodeModifier;
|
|
43
|
+
}
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/gltf_node_modifiers.gen.js
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
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.PBGltfNodeModifiers_GltfNodeModifier = exports.PBGltfNodeModifiers = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
const material_gen_1 = require("./material.gen");
|
|
10
|
+
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
11
|
+
function createBasePBGltfNodeModifiers() {
|
|
12
|
+
return { modifiers: [] };
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
var PBGltfNodeModifiers;
|
|
18
|
+
(function (PBGltfNodeModifiers) {
|
|
19
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
for (const v of message.modifiers) {
|
|
21
|
+
PBGltfNodeModifiers_GltfNodeModifier.encode(v, writer.uint32(10).fork()).ldelim();
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
}
|
|
25
|
+
PBGltfNodeModifiers.encode = encode;
|
|
26
|
+
function decode(input, length) {
|
|
27
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
28
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29
|
+
const message = createBasePBGltfNodeModifiers();
|
|
30
|
+
while (reader.pos < end) {
|
|
31
|
+
const tag = reader.uint32();
|
|
32
|
+
switch (tag >>> 3) {
|
|
33
|
+
case 1:
|
|
34
|
+
if (tag !== 10) {
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
message.modifiers.push(PBGltfNodeModifiers_GltfNodeModifier.decode(reader, reader.uint32()));
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
reader.skipType(tag & 7);
|
|
44
|
+
}
|
|
45
|
+
return message;
|
|
46
|
+
}
|
|
47
|
+
PBGltfNodeModifiers.decode = decode;
|
|
48
|
+
})(PBGltfNodeModifiers = exports.PBGltfNodeModifiers || (exports.PBGltfNodeModifiers = {}));
|
|
49
|
+
function createBasePBGltfNodeModifiers_GltfNodeModifier() {
|
|
50
|
+
return { path: "", castShadows: undefined, material: undefined };
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
var PBGltfNodeModifiers_GltfNodeModifier;
|
|
56
|
+
(function (PBGltfNodeModifiers_GltfNodeModifier) {
|
|
57
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
58
|
+
if (message.path !== "") {
|
|
59
|
+
writer.uint32(10).string(message.path);
|
|
60
|
+
}
|
|
61
|
+
if (message.castShadows !== undefined) {
|
|
62
|
+
writer.uint32(16).bool(message.castShadows);
|
|
63
|
+
}
|
|
64
|
+
if (message.material !== undefined) {
|
|
65
|
+
material_gen_1.PBMaterial.encode(message.material, writer.uint32(26).fork()).ldelim();
|
|
66
|
+
}
|
|
67
|
+
return writer;
|
|
68
|
+
}
|
|
69
|
+
PBGltfNodeModifiers_GltfNodeModifier.encode = encode;
|
|
70
|
+
function decode(input, length) {
|
|
71
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
72
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
73
|
+
const message = createBasePBGltfNodeModifiers_GltfNodeModifier();
|
|
74
|
+
while (reader.pos < end) {
|
|
75
|
+
const tag = reader.uint32();
|
|
76
|
+
switch (tag >>> 3) {
|
|
77
|
+
case 1:
|
|
78
|
+
if (tag !== 10) {
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
message.path = reader.string();
|
|
82
|
+
continue;
|
|
83
|
+
case 2:
|
|
84
|
+
if (tag !== 16) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
message.castShadows = reader.bool();
|
|
88
|
+
continue;
|
|
89
|
+
case 3:
|
|
90
|
+
if (tag !== 26) {
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
message.material = material_gen_1.PBMaterial.decode(reader, reader.uint32());
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
reader.skipType(tag & 7);
|
|
100
|
+
}
|
|
101
|
+
return message;
|
|
102
|
+
}
|
|
103
|
+
PBGltfNodeModifiers_GltfNodeModifier.decode = decode;
|
|
104
|
+
})(PBGltfNodeModifiers_GltfNodeModifier = exports.PBGltfNodeModifiers_GltfNodeModifier || (exports.PBGltfNodeModifiers_GltfNodeModifier = {}));
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
/** Controls the direction for animated skybox transitions */
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare const enum TransitionMode {
|
|
7
|
+
/** TM_FORWARD - transitions forward (default) */
|
|
8
|
+
TM_FORWARD = 0,
|
|
9
|
+
/** TM_BACKWARD - transitions backward */
|
|
10
|
+
TM_BACKWARD = 1
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The SkyboxTime component allows controlling the time of day for the skybox,
|
|
14
|
+
* affecting the lighting and appearance of the sky in the scene.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export interface PBSkyboxTime {
|
|
20
|
+
/** fixed time of day, represented as a number of seconds since the start of the day, where 0 is 00:00hs, 43200 is 12:00hs and 86400 is 24:00hs */
|
|
21
|
+
fixedTime: number;
|
|
22
|
+
/** default = TransitionMode.TM_FORWARD, controls the direction of time transitions */
|
|
23
|
+
transitionMode?: TransitionMode | undefined;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace PBSkyboxTime {
|
|
29
|
+
function encode(message: PBSkyboxTime, writer?: _m0.Writer): _m0.Writer;
|
|
30
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkyboxTime;
|
|
31
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.PBSkyboxTime = exports.TransitionMode = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
10
|
+
/** Controls the direction for animated skybox transitions */
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
var TransitionMode;
|
|
15
|
+
(function (TransitionMode) {
|
|
16
|
+
/** TM_FORWARD - transitions forward (default) */
|
|
17
|
+
TransitionMode[TransitionMode["TM_FORWARD"] = 0] = "TM_FORWARD";
|
|
18
|
+
/** TM_BACKWARD - transitions backward */
|
|
19
|
+
TransitionMode[TransitionMode["TM_BACKWARD"] = 1] = "TM_BACKWARD";
|
|
20
|
+
})(TransitionMode = exports.TransitionMode || (exports.TransitionMode = {}));
|
|
21
|
+
function createBasePBSkyboxTime() {
|
|
22
|
+
return { fixedTime: 0, transitionMode: undefined };
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
var PBSkyboxTime;
|
|
28
|
+
(function (PBSkyboxTime) {
|
|
29
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
30
|
+
if (message.fixedTime !== 0) {
|
|
31
|
+
writer.uint32(8).uint32(message.fixedTime);
|
|
32
|
+
}
|
|
33
|
+
if (message.transitionMode !== undefined) {
|
|
34
|
+
writer.uint32(16).int32(message.transitionMode);
|
|
35
|
+
}
|
|
36
|
+
return writer;
|
|
37
|
+
}
|
|
38
|
+
PBSkyboxTime.encode = encode;
|
|
39
|
+
function decode(input, length) {
|
|
40
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
41
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
42
|
+
const message = createBasePBSkyboxTime();
|
|
43
|
+
while (reader.pos < end) {
|
|
44
|
+
const tag = reader.uint32();
|
|
45
|
+
switch (tag >>> 3) {
|
|
46
|
+
case 1:
|
|
47
|
+
if (tag !== 8) {
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
message.fixedTime = reader.uint32();
|
|
51
|
+
continue;
|
|
52
|
+
case 2:
|
|
53
|
+
if (tag !== 16) {
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
message.transitionMode = reader.int32();
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
reader.skipType(tag & 7);
|
|
63
|
+
}
|
|
64
|
+
return message;
|
|
65
|
+
}
|
|
66
|
+
PBSkyboxTime.decode = decode;
|
|
67
|
+
})(PBSkyboxTime = exports.PBSkyboxTime || (exports.PBSkyboxTime = {}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.8.22-
|
|
4
|
+
"version": "7.8.22-16442069066.commit-9ae2f83",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/ecs/issues",
|
|
7
7
|
"files": [
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
},
|
|
34
34
|
"types": "./dist/index.d.ts",
|
|
35
35
|
"typings": "./dist/index.d.ts",
|
|
36
|
-
"commit": "
|
|
36
|
+
"commit": "9ae2f837d5b7e45dc7eafa88f9a49460b9bf45d7"
|
|
37
37
|
}
|