@dcl/ecs 7.8.9 → 7.8.10-15468321387.commit-ea03486
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/extended/LightSource.d.ts +25 -0
- package/dist/components/extended/LightSource.js +22 -0
- package/dist/components/generated/LightSource.gen.d.ts +1 -0
- package/dist/components/generated/LightSource.gen.js +25 -0
- package/dist/components/generated/PrimaryPointerInfo.gen.d.ts +1 -0
- package/dist/components/generated/PrimaryPointerInfo.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/light_source.gen.d.ts +75 -0
- package/dist/components/generated/pb/decentraland/sdk/components/light_source.gen.js +205 -0
- package/dist/components/generated/pb/decentraland/sdk/components/primary_pointer_info.gen.d.ts +55 -0
- package/dist/components/generated/pb/decentraland/sdk/components/primary_pointer_info.gen.js +83 -0
- package/dist/components/generated/pb/decentraland/sdk/components/realm_info.gen.d.ts +7 -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/components/index.d.ts +2 -0
- package/dist/components/index.js +3 -0
- package/dist/components/types.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist-cjs/components/extended/LightSource.d.ts +25 -0
- package/dist-cjs/components/extended/LightSource.js +26 -0
- package/dist-cjs/components/generated/LightSource.gen.d.ts +1 -0
- package/dist-cjs/components/generated/LightSource.gen.js +28 -0
- package/dist-cjs/components/generated/PrimaryPointerInfo.gen.d.ts +1 -0
- package/dist-cjs/components/generated/PrimaryPointerInfo.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/light_source.gen.d.ts +75 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/light_source.gen.js +211 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/primary_pointer_info.gen.d.ts +55 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/primary_pointer_info.gen.js +89 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/realm_info.gen.d.ts +7 -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/dist-cjs/components/index.d.ts +2 -0
- package/dist-cjs/components/index.js +5 -1
- package/dist-cjs/components/types.d.ts +1 -0
- package/dist-cjs/index.d.ts +2 -1
- package/dist-cjs/index.js +2 -1
- package/package.json +2 -2
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Vector2, Vector3 } from "../../common/vectors.gen";
|
|
4
|
+
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
5
|
+
/**
|
|
6
|
+
* PointerType enumerates the different input devices that can be used for pointer interactions.
|
|
7
|
+
* Each type has specific characteristics and use cases in the virtual world.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export var PointerType;
|
|
13
|
+
(function (PointerType) {
|
|
14
|
+
/** POT_NONE - No pointer input */
|
|
15
|
+
PointerType[PointerType["POT_NONE"] = 0] = "POT_NONE";
|
|
16
|
+
/** POT_MOUSE - Traditional mouse input */
|
|
17
|
+
PointerType[PointerType["POT_MOUSE"] = 1] = "POT_MOUSE";
|
|
18
|
+
})(PointerType || (PointerType = {}));
|
|
19
|
+
function createBasePBPrimaryPointerInfo() {
|
|
20
|
+
return { pointerType: undefined, screenCoordinates: undefined, screenDelta: undefined, worldRayDirection: undefined };
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export var PBPrimaryPointerInfo;
|
|
26
|
+
(function (PBPrimaryPointerInfo) {
|
|
27
|
+
function encode(message, writer = _m0.Writer.create()) {
|
|
28
|
+
if (message.pointerType !== undefined) {
|
|
29
|
+
writer.uint32(8).int32(message.pointerType);
|
|
30
|
+
}
|
|
31
|
+
if (message.screenCoordinates !== undefined) {
|
|
32
|
+
Vector2.encode(message.screenCoordinates, writer.uint32(18).fork()).ldelim();
|
|
33
|
+
}
|
|
34
|
+
if (message.screenDelta !== undefined) {
|
|
35
|
+
Vector2.encode(message.screenDelta, writer.uint32(26).fork()).ldelim();
|
|
36
|
+
}
|
|
37
|
+
if (message.worldRayDirection !== undefined) {
|
|
38
|
+
Vector3.encode(message.worldRayDirection, writer.uint32(34).fork()).ldelim();
|
|
39
|
+
}
|
|
40
|
+
return writer;
|
|
41
|
+
}
|
|
42
|
+
PBPrimaryPointerInfo.encode = encode;
|
|
43
|
+
function decode(input, length) {
|
|
44
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
45
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
46
|
+
const message = createBasePBPrimaryPointerInfo();
|
|
47
|
+
while (reader.pos < end) {
|
|
48
|
+
const tag = reader.uint32();
|
|
49
|
+
switch (tag >>> 3) {
|
|
50
|
+
case 1:
|
|
51
|
+
if (tag !== 8) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.pointerType = reader.int32();
|
|
55
|
+
continue;
|
|
56
|
+
case 2:
|
|
57
|
+
if (tag !== 18) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
message.screenCoordinates = Vector2.decode(reader, reader.uint32());
|
|
61
|
+
continue;
|
|
62
|
+
case 3:
|
|
63
|
+
if (tag !== 26) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.screenDelta = Vector2.decode(reader, reader.uint32());
|
|
67
|
+
continue;
|
|
68
|
+
case 4:
|
|
69
|
+
if (tag !== 34) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.worldRayDirection = Vector3.decode(reader, reader.uint32());
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
reader.skipType(tag & 7);
|
|
79
|
+
}
|
|
80
|
+
return message;
|
|
81
|
+
}
|
|
82
|
+
PBPrimaryPointerInfo.decode = decode;
|
|
83
|
+
})(PBPrimaryPointerInfo || (PBPrimaryPointerInfo = {}));
|
|
@@ -3,12 +3,19 @@ import _m0 from "protobufjs/minimal";
|
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export interface PBRealmInfo {
|
|
6
|
+
/** the domain of the realm server */
|
|
6
7
|
baseUrl: string;
|
|
8
|
+
/** the name of the realm server (more info https://adr.decentraland.org/adr/ADR-110) */
|
|
7
9
|
realmName: string;
|
|
10
|
+
/** the network id (1=Ethereum, more info https://chainlist.org/) */
|
|
8
11
|
networkId: number;
|
|
12
|
+
/** comms adapter (more info https://adr.decentraland.org/adr/ADR-180) */
|
|
9
13
|
commsAdapter: string;
|
|
14
|
+
/** true if the scene is running as a local preview, instead of published in Decentraland. */
|
|
10
15
|
isPreview: boolean;
|
|
16
|
+
/** the room session id. */
|
|
11
17
|
room?: string | undefined;
|
|
18
|
+
/** true if the user is connected to the scene room. */
|
|
12
19
|
isConnectedSceneRoom?: boolean | undefined;
|
|
13
20
|
}
|
|
14
21
|
/**
|
|
@@ -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
|
|
@@ -3,7 +3,7 @@ import _m0 from "protobufjs/minimal";
|
|
|
3
3
|
import { CameraTransition } from "./common/camera_transition.gen";
|
|
4
4
|
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
5
5
|
function createBasePBVirtualCamera() {
|
|
6
|
-
return { defaultTransition: undefined, lookAtEntity: undefined };
|
|
6
|
+
return { defaultTransition: undefined, lookAtEntity: undefined, fov: undefined };
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* @public
|
|
@@ -17,6 +17,9 @@ export var PBVirtualCamera;
|
|
|
17
17
|
if (message.lookAtEntity !== undefined) {
|
|
18
18
|
writer.uint32(16).uint32(message.lookAtEntity);
|
|
19
19
|
}
|
|
20
|
+
if (message.fov !== undefined) {
|
|
21
|
+
writer.uint32(29).float(message.fov);
|
|
22
|
+
}
|
|
20
23
|
return writer;
|
|
21
24
|
}
|
|
22
25
|
PBVirtualCamera.encode = encode;
|
|
@@ -39,6 +42,12 @@ export var PBVirtualCamera;
|
|
|
39
42
|
}
|
|
40
43
|
message.lookAtEntity = reader.uint32();
|
|
41
44
|
continue;
|
|
45
|
+
case 3:
|
|
46
|
+
if (tag !== 29) {
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
message.fov = reader.float();
|
|
50
|
+
continue;
|
|
42
51
|
}
|
|
43
52
|
if ((tag & 7) === 4 || tag === 0) {
|
|
44
53
|
break;
|
|
@@ -16,6 +16,7 @@ import { AudioStreamComponentDefinitionExtended } from './extended/AudioStream';
|
|
|
16
16
|
import { MediaState } from './generated/pb/decentraland/sdk/components/common/media_state.gen';
|
|
17
17
|
import { VirtualCameraComponentDefinitionExtended } from './extended/VirtualCamera';
|
|
18
18
|
import { InputModifierComponentDefinitionExtended } from './extended/InputModifier';
|
|
19
|
+
import { LightSourceComponentDefinitionExtended } from './extended/LightSource';
|
|
19
20
|
export * from './generated/index.gen';
|
|
20
21
|
export type { GrowOnlyValueSetComponentDefinition, LastWriteWinElementSetComponentDefinition, LwwComponentGetter, GSetComponentGetter };
|
|
21
22
|
export declare const Transform: LwwComponentGetter<TransformComponentExtended>;
|
|
@@ -28,6 +29,7 @@ export declare const MeshCollider: LwwComponentGetter<MeshColliderComponentDefin
|
|
|
28
29
|
export declare const Tween: LwwComponentGetter<TweenComponentDefinitionExtended>;
|
|
29
30
|
export declare const VirtualCamera: LwwComponentGetter<VirtualCameraComponentDefinitionExtended>;
|
|
30
31
|
export declare const InputModifier: LwwComponentGetter<InputModifierComponentDefinitionExtended>;
|
|
32
|
+
export declare const LightSource: LwwComponentGetter<LightSourceComponentDefinitionExtended>;
|
|
31
33
|
/**
|
|
32
34
|
* @alpha
|
|
33
35
|
*/
|
package/dist/components/index.js
CHANGED
|
@@ -13,6 +13,7 @@ import { defineAudioStreamComponent } from './extended/AudioStream';
|
|
|
13
13
|
import { MediaState } from './generated/pb/decentraland/sdk/components/common/media_state.gen';
|
|
14
14
|
import { defineVirtualCameraComponent } from './extended/VirtualCamera';
|
|
15
15
|
import { defineInputModifierComponent } from './extended/InputModifier';
|
|
16
|
+
import { defineLightSourceComponent } from './extended/LightSource';
|
|
16
17
|
export * from './generated/index.gen';
|
|
17
18
|
/* @__PURE__ */
|
|
18
19
|
export const Transform = (engine) => defineTransformComponent(engine);
|
|
@@ -34,6 +35,8 @@ export const Tween = (engine) => defineTweenComponent(engine);
|
|
|
34
35
|
export const VirtualCamera = (engine) => defineVirtualCameraComponent(engine);
|
|
35
36
|
/* @__PURE__*/
|
|
36
37
|
export const InputModifier = (engine) => defineInputModifierComponent(engine);
|
|
38
|
+
/* @__PURE__*/
|
|
39
|
+
export const LightSource = (engine) => defineLightSourceComponent(engine);
|
|
37
40
|
/**
|
|
38
41
|
* @alpha
|
|
39
42
|
*/
|
|
@@ -12,3 +12,4 @@ export type { ISyncComponents, ISyncComponentsType } from './manual/SyncComponen
|
|
|
12
12
|
export type { INetowrkEntity, INetowrkEntityType } from './manual/NetworkEntity';
|
|
13
13
|
export type { INetowrkParent, INetowrkParentType } from './manual/NetworkParent';
|
|
14
14
|
export type { InputModifierHelper, InputModifierComponentDefinitionExtended } from './extended/InputModifier';
|
|
15
|
+
export type { LightSourceHelper, LightSourceComponentDefinitionExtended } from './extended/LightSource';
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export * from './systems/async-task';
|
|
|
11
11
|
export * from './systems/tween';
|
|
12
12
|
export * from './engine/entity';
|
|
13
13
|
export * from './components/types';
|
|
14
|
-
import { MaterialComponentDefinitionExtended, MeshColliderComponentDefinitionExtended, MeshRendererComponentDefinitionExtended, TransformComponentExtended, AnimatorComponentDefinitionExtended, AudioSourceComponentDefinitionExtended, AudioStreamComponentDefinitionExtended, ISyncComponents, TweenComponentDefinitionExtended, INetowrkEntity, INetowrkParent, VirtualCameraComponentDefinitionExtended, InputModifierComponentDefinitionExtended } from './components/types';
|
|
14
|
+
import { MaterialComponentDefinitionExtended, MeshColliderComponentDefinitionExtended, MeshRendererComponentDefinitionExtended, TransformComponentExtended, AnimatorComponentDefinitionExtended, AudioSourceComponentDefinitionExtended, AudioStreamComponentDefinitionExtended, ISyncComponents, TweenComponentDefinitionExtended, INetowrkEntity, INetowrkParent, VirtualCameraComponentDefinitionExtended, InputModifierComponentDefinitionExtended, LightSourceComponentDefinitionExtended } from './components/types';
|
|
15
15
|
import { NameComponent } from './components/manual/Name';
|
|
16
16
|
export declare const Transform: TransformComponentExtended;
|
|
17
17
|
export declare const Animator: AnimatorComponentDefinitionExtended;
|
|
@@ -24,6 +24,7 @@ export declare const Name: NameComponent;
|
|
|
24
24
|
export declare const Tween: TweenComponentDefinitionExtended;
|
|
25
25
|
export declare const VirtualCamera: VirtualCameraComponentDefinitionExtended;
|
|
26
26
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
27
|
+
export declare const LightSource: LightSourceComponentDefinitionExtended;
|
|
27
28
|
/**
|
|
28
29
|
* @alpha
|
|
29
30
|
* This is going to be used for sync components through a server.
|
package/dist/index.js
CHANGED
|
@@ -29,6 +29,7 @@ export const Name = components.Name(engine);
|
|
|
29
29
|
export const Tween = /* @__PURE__*/ components.Tween(engine);
|
|
30
30
|
export const VirtualCamera = /* @__PURE__*/ components.VirtualCamera(engine);
|
|
31
31
|
export const InputModifier = /* @__PURE__*/ components.InputModifier(engine);
|
|
32
|
+
export const LightSource = /* @__PURE__*/ components.LightSource(engine);
|
|
32
33
|
/**
|
|
33
34
|
* @alpha
|
|
34
35
|
* This is going to be used for sync components through a server.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IEngine, LastWriteWinElementSetComponentDefinition } from '../../engine';
|
|
2
|
+
import { PBLightSource_Point, PBLightSource_Spot, PBLightSource } from '../generated/index.gen';
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface LightSourceHelper {
|
|
7
|
+
/**
|
|
8
|
+
* @returns a Light Source type
|
|
9
|
+
*/
|
|
10
|
+
Point: (point: PBLightSource_Point) => PBLightSource['type'];
|
|
11
|
+
/**
|
|
12
|
+
* @returns a Light Source type
|
|
13
|
+
*/
|
|
14
|
+
Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
|
|
20
|
+
/**
|
|
21
|
+
* LightSource helper with constructor
|
|
22
|
+
*/
|
|
23
|
+
Type: LightSourceHelper;
|
|
24
|
+
}
|
|
25
|
+
export declare function defineLightSourceComponent(engine: Pick<IEngine, 'defineComponentFromSchema'>): LightSourceComponentDefinitionExtended;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineLightSourceComponent = void 0;
|
|
4
|
+
const index_gen_1 = require("../generated/index.gen");
|
|
5
|
+
const LightSourceHelper = {
|
|
6
|
+
Point(point) {
|
|
7
|
+
return {
|
|
8
|
+
$case: 'point',
|
|
9
|
+
point
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
Spot(spot) {
|
|
13
|
+
return {
|
|
14
|
+
$case: 'spot',
|
|
15
|
+
spot
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
function defineLightSourceComponent(engine) {
|
|
20
|
+
const theComponent = (0, index_gen_1.LightSource)(engine);
|
|
21
|
+
return {
|
|
22
|
+
...theComponent,
|
|
23
|
+
Type: LightSourceHelper
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
exports.defineLightSourceComponent = defineLightSourceComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LightSourceSchema = void 0;
|
|
4
|
+
const light_source_gen_1 = require("./pb/decentraland/sdk/components/light_source.gen");
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
exports.LightSourceSchema = {
|
|
9
|
+
COMPONENT_ID: 1079,
|
|
10
|
+
serialize(value, builder) {
|
|
11
|
+
const writer = light_source_gen_1.PBLightSource.encode(value);
|
|
12
|
+
const buffer = new Uint8Array(writer.finish(), 0, writer.len);
|
|
13
|
+
builder.writeBuffer(buffer, false);
|
|
14
|
+
},
|
|
15
|
+
deserialize(reader) {
|
|
16
|
+
return light_source_gen_1.PBLightSource.decode(reader.buffer(), reader.remainingBytes());
|
|
17
|
+
},
|
|
18
|
+
create() {
|
|
19
|
+
// TODO: this is a hack.
|
|
20
|
+
return light_source_gen_1.PBLightSource.decode(new Uint8Array());
|
|
21
|
+
},
|
|
22
|
+
jsonSchema: {
|
|
23
|
+
type: "object",
|
|
24
|
+
properties: {},
|
|
25
|
+
serializationType: "protocol-buffer",
|
|
26
|
+
protocolBuffer: "PBLightSource"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrimaryPointerInfoSchema = void 0;
|
|
4
|
+
const primary_pointer_info_gen_1 = require("./pb/decentraland/sdk/components/primary_pointer_info.gen");
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
exports.PrimaryPointerInfoSchema = {
|
|
9
|
+
COMPONENT_ID: 1209,
|
|
10
|
+
serialize(value, builder) {
|
|
11
|
+
const writer = primary_pointer_info_gen_1.PBPrimaryPointerInfo.encode(value);
|
|
12
|
+
const buffer = new Uint8Array(writer.finish(), 0, writer.len);
|
|
13
|
+
builder.writeBuffer(buffer, false);
|
|
14
|
+
},
|
|
15
|
+
deserialize(reader) {
|
|
16
|
+
return primary_pointer_info_gen_1.PBPrimaryPointerInfo.decode(reader.buffer(), reader.remainingBytes());
|
|
17
|
+
},
|
|
18
|
+
create() {
|
|
19
|
+
// TODO: this is a hack.
|
|
20
|
+
return primary_pointer_info_gen_1.PBPrimaryPointerInfo.decode(new Uint8Array());
|
|
21
|
+
},
|
|
22
|
+
jsonSchema: {
|
|
23
|
+
type: "object",
|
|
24
|
+
properties: {},
|
|
25
|
+
serializationType: "protocol-buffer",
|
|
26
|
+
protocolBuffer: "PBPrimaryPointerInfo"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -23,6 +23,7 @@ exports.coreComponentMappings = {
|
|
|
23
23
|
"core::GltfContainer": 1041,
|
|
24
24
|
"core::GltfContainerLoadingState": 1049,
|
|
25
25
|
"core::InputModifier": 1078,
|
|
26
|
+
"core::LightSource": 1079,
|
|
26
27
|
"core::MainCamera": 1075,
|
|
27
28
|
"core::MapPin": 1097,
|
|
28
29
|
"core::Material": 1017,
|
|
@@ -33,6 +34,7 @@ exports.coreComponentMappings = {
|
|
|
33
34
|
"core::PointerEvents": 1062,
|
|
34
35
|
"core::PointerEventsResult": 1063,
|
|
35
36
|
"core::PointerLock": 1074,
|
|
37
|
+
"core::PrimaryPointerInfo": 1209,
|
|
36
38
|
"core::Raycast": 1067,
|
|
37
39
|
"core::RaycastResult": 1068,
|
|
38
40
|
"core::RealmInfo": 1106,
|
|
@@ -16,12 +16,14 @@ 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
18
|
import { PBInputModifier } from './pb/decentraland/sdk/components/input_modifier.gen';
|
|
19
|
+
import { PBLightSource } from './pb/decentraland/sdk/components/light_source.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';
|
|
21
22
|
import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
22
23
|
import { PBPointerEvents } from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
23
24
|
import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
24
25
|
import { PBPointerLock } from './pb/decentraland/sdk/components/pointer_lock.gen';
|
|
26
|
+
import { PBPrimaryPointerInfo } from './pb/decentraland/sdk/components/primary_pointer_info.gen';
|
|
25
27
|
import { PBRaycast } from './pb/decentraland/sdk/components/raycast.gen';
|
|
26
28
|
import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
27
29
|
import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
|
|
@@ -56,12 +58,14 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
56
58
|
/** @public */ export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PBGltfContainer>;
|
|
57
59
|
/** @public */ export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
|
|
58
60
|
/** @public */ export declare const InputModifier: LastWriteWinElementSetComponentDefinition<PBInputModifier>;
|
|
61
|
+
/** @public */ export declare const LightSource: LastWriteWinElementSetComponentDefinition<PBLightSource>;
|
|
59
62
|
/** @public */ export declare const MainCamera: LastWriteWinElementSetComponentDefinition<PBMainCamera>;
|
|
60
63
|
/** @public */ export declare const NftShape: LastWriteWinElementSetComponentDefinition<PBNftShape>;
|
|
61
64
|
/** @public */ export declare const PlayerIdentityData: LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>;
|
|
62
65
|
/** @public */ export declare const PointerEvents: LastWriteWinElementSetComponentDefinition<PBPointerEvents>;
|
|
63
66
|
/** @public */ export declare const PointerEventsResult: GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>;
|
|
64
67
|
/** @public */ export declare const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
|
|
68
|
+
/** @public */ export declare const PrimaryPointerInfo: LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>;
|
|
65
69
|
/** @public */ export declare const Raycast: LastWriteWinElementSetComponentDefinition<PBRaycast>;
|
|
66
70
|
/** @public */ export declare const RaycastResult: LastWriteWinElementSetComponentDefinition<PBRaycastResult>;
|
|
67
71
|
/** @public */ export declare const RealmInfo: LastWriteWinElementSetComponentDefinition<PBRealmInfo>;
|
|
@@ -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.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.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.NftShape = exports.MainCamera = exports.LightSource = 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;
|
|
30
30
|
const initialization_1 = require("../../runtime/initialization");
|
|
31
31
|
const components = __importStar(require("./index.gen"));
|
|
32
32
|
__exportStar(require("./index.gen"), exports);
|
|
@@ -46,12 +46,14 @@ __exportStar(require("./index.gen"), exports);
|
|
|
46
46
|
/** @public */ exports.GltfContainer = components.GltfContainer(initialization_1.engine);
|
|
47
47
|
/** @public */ exports.GltfContainerLoadingState = components.GltfContainerLoadingState(initialization_1.engine);
|
|
48
48
|
/** @public */ exports.InputModifier = components.InputModifier(initialization_1.engine);
|
|
49
|
+
/** @public */ exports.LightSource = components.LightSource(initialization_1.engine);
|
|
49
50
|
/** @public */ exports.MainCamera = components.MainCamera(initialization_1.engine);
|
|
50
51
|
/** @public */ exports.NftShape = components.NftShape(initialization_1.engine);
|
|
51
52
|
/** @public */ exports.PlayerIdentityData = components.PlayerIdentityData(initialization_1.engine);
|
|
52
53
|
/** @public */ exports.PointerEvents = components.PointerEvents(initialization_1.engine);
|
|
53
54
|
/** @public */ exports.PointerEventsResult = components.PointerEventsResult(initialization_1.engine);
|
|
54
55
|
/** @public */ exports.PointerLock = components.PointerLock(initialization_1.engine);
|
|
56
|
+
/** @public */ exports.PrimaryPointerInfo = components.PrimaryPointerInfo(initialization_1.engine);
|
|
55
57
|
/** @public */ exports.Raycast = components.Raycast(initialization_1.engine);
|
|
56
58
|
/** @public */ exports.RaycastResult = components.RaycastResult(initialization_1.engine);
|
|
57
59
|
/** @public */ exports.RealmInfo = components.RealmInfo(initialization_1.engine);
|
|
@@ -17,6 +17,7 @@ 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
19
|
import { PBInputModifier } from './pb/decentraland/sdk/components/input_modifier.gen';
|
|
20
|
+
import { PBLightSource } from './pb/decentraland/sdk/components/light_source.gen';
|
|
20
21
|
import { PBMainCamera } from './pb/decentraland/sdk/components/main_camera.gen';
|
|
21
22
|
import { PBMaterial } from './pb/decentraland/sdk/components/material.gen';
|
|
22
23
|
import { PBMeshCollider } from './pb/decentraland/sdk/components/mesh_collider.gen';
|
|
@@ -26,6 +27,7 @@ import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_id
|
|
|
26
27
|
import { PBPointerEvents } from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
27
28
|
import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
28
29
|
import { PBPointerLock } from './pb/decentraland/sdk/components/pointer_lock.gen';
|
|
30
|
+
import { PBPrimaryPointerInfo } from './pb/decentraland/sdk/components/primary_pointer_info.gen';
|
|
29
31
|
import { PBRaycast } from './pb/decentraland/sdk/components/raycast.gen';
|
|
30
32
|
import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
31
33
|
import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
|
|
@@ -62,6 +64,7 @@ export * from './pb/decentraland/sdk/components/engine_info.gen';
|
|
|
62
64
|
export * from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
63
65
|
export * from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
64
66
|
export * from './pb/decentraland/sdk/components/input_modifier.gen';
|
|
67
|
+
export * from './pb/decentraland/sdk/components/light_source.gen';
|
|
65
68
|
export * from './pb/decentraland/sdk/components/main_camera.gen';
|
|
66
69
|
export * from './pb/decentraland/sdk/components/material.gen';
|
|
67
70
|
export * from './pb/decentraland/sdk/components/mesh_collider.gen';
|
|
@@ -71,6 +74,7 @@ export * from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
|
71
74
|
export * from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
72
75
|
export * from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
73
76
|
export * from './pb/decentraland/sdk/components/pointer_lock.gen';
|
|
77
|
+
export * from './pb/decentraland/sdk/components/primary_pointer_info.gen';
|
|
74
78
|
export * from './pb/decentraland/sdk/components/raycast.gen';
|
|
75
79
|
export * from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
76
80
|
export * from './pb/decentraland/sdk/components/realm_info.gen';
|
|
@@ -109,6 +113,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
109
113
|
/** @public */ export declare const GltfContainer: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
110
114
|
/** @public */ export declare const GltfContainerLoadingState: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
|
111
115
|
/** @public */ export declare const InputModifier: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
|
|
116
|
+
/** @public */ export declare const LightSource: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
|
|
112
117
|
/** @public */ export declare const MainCamera: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
|
|
113
118
|
/** @public */ export declare const Material: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
|
114
119
|
/** @public */ export declare const MeshCollider: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
@@ -118,6 +123,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
118
123
|
/** @public */ export declare const PointerEvents: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
|
119
124
|
/** @public */ export declare const PointerEventsResult: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
|
120
125
|
/** @public */ export declare const PointerLock: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
|
|
126
|
+
/** @public */ export declare const PrimaryPointerInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
|
|
121
127
|
/** @public */ export declare const Raycast: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
|
122
128
|
/** @public */ export declare const RaycastResult: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
123
129
|
/** @public */ export declare const RealmInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
@@ -156,6 +162,7 @@ export declare const componentDefinitionByName: {
|
|
|
156
162
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
157
163
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
|
158
164
|
"core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
|
|
165
|
+
"core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
|
|
159
166
|
"core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
|
|
160
167
|
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
|
161
168
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
@@ -165,6 +172,7 @@ export declare const componentDefinitionByName: {
|
|
|
165
172
|
"core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
|
166
173
|
"core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
|
167
174
|
"core::PointerLock": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
|
|
175
|
+
"core::PrimaryPointerInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
|
|
168
176
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
|
169
177
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
170
178
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
@@ -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.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.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.LightSource = 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;
|
|
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");
|
|
@@ -32,6 +32,7 @@ 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
34
|
const InputModifier_gen_1 = require("./InputModifier.gen");
|
|
35
|
+
const LightSource_gen_1 = require("./LightSource.gen");
|
|
35
36
|
const MainCamera_gen_1 = require("./MainCamera.gen");
|
|
36
37
|
const Material_gen_1 = require("./Material.gen");
|
|
37
38
|
const MeshCollider_gen_1 = require("./MeshCollider.gen");
|
|
@@ -41,6 +42,7 @@ const PlayerIdentityData_gen_1 = require("./PlayerIdentityData.gen");
|
|
|
41
42
|
const PointerEvents_gen_1 = require("./PointerEvents.gen");
|
|
42
43
|
const PointerEventsResult_gen_1 = require("./PointerEventsResult.gen");
|
|
43
44
|
const PointerLock_gen_1 = require("./PointerLock.gen");
|
|
45
|
+
const PrimaryPointerInfo_gen_1 = require("./PrimaryPointerInfo.gen");
|
|
44
46
|
const Raycast_gen_1 = require("./Raycast.gen");
|
|
45
47
|
const RaycastResult_gen_1 = require("./RaycastResult.gen");
|
|
46
48
|
const RealmInfo_gen_1 = require("./RealmInfo.gen");
|
|
@@ -77,6 +79,7 @@ __exportStar(require("./pb/decentraland/sdk/components/engine_info.gen"), export
|
|
|
77
79
|
__exportStar(require("./pb/decentraland/sdk/components/gltf_container.gen"), exports);
|
|
78
80
|
__exportStar(require("./pb/decentraland/sdk/components/gltf_container_loading_state.gen"), exports);
|
|
79
81
|
__exportStar(require("./pb/decentraland/sdk/components/input_modifier.gen"), exports);
|
|
82
|
+
__exportStar(require("./pb/decentraland/sdk/components/light_source.gen"), exports);
|
|
80
83
|
__exportStar(require("./pb/decentraland/sdk/components/main_camera.gen"), exports);
|
|
81
84
|
__exportStar(require("./pb/decentraland/sdk/components/material.gen"), exports);
|
|
82
85
|
__exportStar(require("./pb/decentraland/sdk/components/mesh_collider.gen"), exports);
|
|
@@ -86,6 +89,7 @@ __exportStar(require("./pb/decentraland/sdk/components/player_identity_data.gen"
|
|
|
86
89
|
__exportStar(require("./pb/decentraland/sdk/components/pointer_events.gen"), exports);
|
|
87
90
|
__exportStar(require("./pb/decentraland/sdk/components/pointer_events_result.gen"), exports);
|
|
88
91
|
__exportStar(require("./pb/decentraland/sdk/components/pointer_lock.gen"), exports);
|
|
92
|
+
__exportStar(require("./pb/decentraland/sdk/components/primary_pointer_info.gen"), exports);
|
|
89
93
|
__exportStar(require("./pb/decentraland/sdk/components/raycast.gen"), exports);
|
|
90
94
|
__exportStar(require("./pb/decentraland/sdk/components/raycast_result.gen"), exports);
|
|
91
95
|
__exportStar(require("./pb/decentraland/sdk/components/realm_info.gen"), exports);
|
|
@@ -160,6 +164,9 @@ exports.GltfContainerLoadingState = GltfContainerLoadingState;
|
|
|
160
164
|
/** @public */ const InputModifier = engine =>
|
|
161
165
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::InputModifier", InputModifier_gen_1.InputModifierSchema);
|
|
162
166
|
exports.InputModifier = InputModifier;
|
|
167
|
+
/** @public */ const LightSource = engine =>
|
|
168
|
+
/* @__PURE__ */ engine.defineComponentFromSchema("core::LightSource", LightSource_gen_1.LightSourceSchema);
|
|
169
|
+
exports.LightSource = LightSource;
|
|
163
170
|
/** @public */ const MainCamera = engine =>
|
|
164
171
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::MainCamera", MainCamera_gen_1.MainCameraSchema);
|
|
165
172
|
exports.MainCamera = MainCamera;
|
|
@@ -189,6 +196,9 @@ exports.PointerEventsResult = PointerEventsResult;
|
|
|
189
196
|
/** @public */ const PointerLock = engine =>
|
|
190
197
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::PointerLock", PointerLock_gen_1.PointerLockSchema);
|
|
191
198
|
exports.PointerLock = PointerLock;
|
|
199
|
+
/** @public */ const PrimaryPointerInfo = engine =>
|
|
200
|
+
/* @__PURE__ */ engine.defineComponentFromSchema("core::PrimaryPointerInfo", PrimaryPointerInfo_gen_1.PrimaryPointerInfoSchema);
|
|
201
|
+
exports.PrimaryPointerInfo = PrimaryPointerInfo;
|
|
192
202
|
/** @public */ const Raycast = engine =>
|
|
193
203
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::Raycast", Raycast_gen_1.RaycastSchema);
|
|
194
204
|
exports.Raycast = Raycast;
|
|
@@ -267,6 +277,7 @@ exports.componentDefinitionByName = {
|
|
|
267
277
|
"core::GltfContainer": exports.GltfContainer,
|
|
268
278
|
"core::GltfContainerLoadingState": exports.GltfContainerLoadingState,
|
|
269
279
|
"core::InputModifier": exports.InputModifier,
|
|
280
|
+
"core::LightSource": exports.LightSource,
|
|
270
281
|
"core::MainCamera": exports.MainCamera,
|
|
271
282
|
"core::Material": exports.Material,
|
|
272
283
|
"core::MeshCollider": exports.MeshCollider,
|
|
@@ -276,6 +287,7 @@ exports.componentDefinitionByName = {
|
|
|
276
287
|
"core::PointerEvents": exports.PointerEvents,
|
|
277
288
|
"core::PointerEventsResult": exports.PointerEventsResult,
|
|
278
289
|
"core::PointerLock": exports.PointerLock,
|
|
290
|
+
"core::PrimaryPointerInfo": exports.PrimaryPointerInfo,
|
|
279
291
|
"core::Raycast": exports.Raycast,
|
|
280
292
|
"core::RaycastResult": exports.RaycastResult,
|
|
281
293
|
"core::RealmInfo": exports.RealmInfo,
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Color3 } from "../../common/colors.gen";
|
|
3
|
+
import { TextureUnion } from "../../common/texture.gen";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface PBLightSource {
|
|
8
|
+
/** default = true, whether the lightSource is active or not. */
|
|
9
|
+
active?: boolean | undefined;
|
|
10
|
+
/** default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
|
|
11
|
+
color?: Color3 | undefined;
|
|
12
|
+
/** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
|
|
13
|
+
brightness?: number | undefined;
|
|
14
|
+
/** default = 10, how far the light travels, expressed in meters. */
|
|
15
|
+
range?: number | undefined;
|
|
16
|
+
type?: {
|
|
17
|
+
$case: "point";
|
|
18
|
+
point: PBLightSource_Point;
|
|
19
|
+
} | {
|
|
20
|
+
$case: "spot";
|
|
21
|
+
spot: PBLightSource_Spot;
|
|
22
|
+
} | undefined;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export declare const enum PBLightSource_ShadowType {
|
|
28
|
+
/** ST_NONE - No shadows are cast from this LightSource. */
|
|
29
|
+
ST_NONE = 0,
|
|
30
|
+
/** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
|
|
31
|
+
ST_SOFT = 1,
|
|
32
|
+
/** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
|
|
33
|
+
ST_HARD = 2
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export interface PBLightSource_Point {
|
|
39
|
+
/** default = ShadowType.ST_NONE The type of shadow the light source supports. */
|
|
40
|
+
shadow?: PBLightSource_ShadowType | undefined;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
export interface PBLightSource_Spot {
|
|
46
|
+
/** default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179. */
|
|
47
|
+
innerAngle?: number | undefined;
|
|
48
|
+
/** default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179. */
|
|
49
|
+
outerAngle?: number | undefined;
|
|
50
|
+
/** default = ShadowType.ST_NONE The type of shadow the light source supports. */
|
|
51
|
+
shadow?: PBLightSource_ShadowType | undefined;
|
|
52
|
+
/** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
|
|
53
|
+
shadowMaskTexture?: TextureUnion | undefined;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
export declare namespace PBLightSource {
|
|
59
|
+
function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
|
|
60
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
export declare namespace PBLightSource_Point {
|
|
66
|
+
function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
|
|
67
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export declare namespace PBLightSource_Spot {
|
|
73
|
+
function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
|
|
74
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
|
|
75
|
+
}
|