@dcl/ecs 7.4.18 → 7.4.19

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
2
+ /**
3
+ * @internal
4
+ */
5
+ export const RealmInfoSchema = {
6
+ COMPONENT_ID: 1106,
7
+ serialize(value, builder) {
8
+ const writer = PBRealmInfo.encode(value);
9
+ const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
+ builder.writeBuffer(buffer, false);
11
+ },
12
+ deserialize(reader) {
13
+ return PBRealmInfo.decode(reader.buffer(), reader.remainingBytes());
14
+ },
15
+ create() {
16
+ // TODO: this is a hack.
17
+ return PBRealmInfo.decode(new Uint8Array());
18
+ },
19
+ jsonSchema: {
20
+ type: "object",
21
+ properties: {},
22
+ serializationType: "protocol-buffer",
23
+ protocolBuffer: "PBRealmInfo"
24
+ }
25
+ };
@@ -29,6 +29,7 @@ export const coreComponentMappings = {
29
29
  "core::PointerLock": 1074,
30
30
  "core::Raycast": 1067,
31
31
  "core::RaycastResult": 1068,
32
+ "core::RealmInfo": 1106,
32
33
  "core::TextShape": 1030,
33
34
  "core::Tween": 1102,
34
35
  "core::TweenSequence": 1104,
@@ -22,6 +22,7 @@ import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_
22
22
  import { PBPointerLock } from './pb/decentraland/sdk/components/pointer_lock.gen';
23
23
  import { PBRaycast } from './pb/decentraland/sdk/components/raycast.gen';
24
24
  import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result.gen';
25
+ import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
25
26
  import { PBTextShape } from './pb/decentraland/sdk/components/text_shape.gen';
26
27
  import { PBTweenSequence } from './pb/decentraland/sdk/components/tween_sequence.gen';
27
28
  import { PBTweenState } from './pb/decentraland/sdk/components/tween_state.gen';
@@ -58,6 +59,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
58
59
  /** @public */ export declare const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
59
60
  /** @public */ export declare const Raycast: LastWriteWinElementSetComponentDefinition<PBRaycast>;
60
61
  /** @public */ export declare const RaycastResult: LastWriteWinElementSetComponentDefinition<PBRaycastResult>;
62
+ /** @public */ export declare const RealmInfo: LastWriteWinElementSetComponentDefinition<PBRealmInfo>;
61
63
  /** @public */ export declare const TextShape: LastWriteWinElementSetComponentDefinition<PBTextShape>;
62
64
  /** @public */ export declare const TweenSequence: LastWriteWinElementSetComponentDefinition<PBTweenSequence>;
63
65
  /** @public */ export declare const TweenState: LastWriteWinElementSetComponentDefinition<PBTweenState>;
@@ -23,6 +23,7 @@ export * from './index.gen';
23
23
  /** @public */ export const PointerLock = /* @__PURE__ */ components.PointerLock(engine);
24
24
  /** @public */ export const Raycast = /* @__PURE__ */ components.Raycast(engine);
25
25
  /** @public */ export const RaycastResult = /* @__PURE__ */ components.RaycastResult(engine);
26
+ /** @public */ export const RealmInfo = /* @__PURE__ */ components.RealmInfo(engine);
26
27
  /** @public */ export const TextShape = /* @__PURE__ */ components.TextShape(engine);
27
28
  /** @public */ export const TweenSequence = /* @__PURE__ */ components.TweenSequence(engine);
28
29
  /** @public */ export const TweenState = /* @__PURE__ */ components.TweenState(engine);
@@ -26,6 +26,7 @@ import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_
26
26
  import { PBPointerLock } from './pb/decentraland/sdk/components/pointer_lock.gen';
27
27
  import { PBRaycast } from './pb/decentraland/sdk/components/raycast.gen';
28
28
  import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result.gen';
29
+ import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
29
30
  import { PBTextShape } from './pb/decentraland/sdk/components/text_shape.gen';
30
31
  import { PBTween } from './pb/decentraland/sdk/components/tween.gen';
31
32
  import { PBTweenSequence } from './pb/decentraland/sdk/components/tween_sequence.gen';
@@ -67,6 +68,7 @@ export * from './pb/decentraland/sdk/components/pointer_events_result.gen';
67
68
  export * from './pb/decentraland/sdk/components/pointer_lock.gen';
68
69
  export * from './pb/decentraland/sdk/components/raycast.gen';
69
70
  export * from './pb/decentraland/sdk/components/raycast_result.gen';
71
+ export * from './pb/decentraland/sdk/components/realm_info.gen';
70
72
  export * from './pb/decentraland/sdk/components/text_shape.gen';
71
73
  export * from './pb/decentraland/sdk/components/tween.gen';
72
74
  export * from './pb/decentraland/sdk/components/tween_sequence.gen';
@@ -110,6 +112,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
110
112
  /** @public */ export declare const PointerLock: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
111
113
  /** @public */ export declare const Raycast: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
112
114
  /** @public */ export declare const RaycastResult: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
115
+ /** @public */ export declare const RealmInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
113
116
  /** @public */ export declare const TextShape: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
114
117
  /** @public */ export declare const Tween: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
115
118
  /** @public */ export declare const TweenSequence: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
@@ -153,6 +156,7 @@ export declare const componentDefinitionByName: {
153
156
  "core::PointerLock": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
154
157
  "core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
155
158
  "core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
159
+ "core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
156
160
  "core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
157
161
  "core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
158
162
  "core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
@@ -24,6 +24,7 @@ import { PointerEventsResultSchema } from './PointerEventsResult.gen';
24
24
  import { PointerLockSchema } from './PointerLock.gen';
25
25
  import { RaycastSchema } from './Raycast.gen';
26
26
  import { RaycastResultSchema } from './RaycastResult.gen';
27
+ import { RealmInfoSchema } from './RealmInfo.gen';
27
28
  import { TextShapeSchema } from './TextShape.gen';
28
29
  import { TweenSchema } from './Tween.gen';
29
30
  import { TweenSequenceSchema } from './TweenSequence.gen';
@@ -65,6 +66,7 @@ export * from './pb/decentraland/sdk/components/pointer_events_result.gen';
65
66
  export * from './pb/decentraland/sdk/components/pointer_lock.gen';
66
67
  export * from './pb/decentraland/sdk/components/raycast.gen';
67
68
  export * from './pb/decentraland/sdk/components/raycast_result.gen';
69
+ export * from './pb/decentraland/sdk/components/realm_info.gen';
68
70
  export * from './pb/decentraland/sdk/components/text_shape.gen';
69
71
  export * from './pb/decentraland/sdk/components/tween.gen';
70
72
  export * from './pb/decentraland/sdk/components/tween_sequence.gen';
@@ -138,6 +140,8 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
138
140
  /* @__PURE__ */ engine.defineComponentFromSchema("core::Raycast", RaycastSchema);
139
141
  /** @public */ export const RaycastResult = engine =>
140
142
  /* @__PURE__ */ engine.defineComponentFromSchema("core::RaycastResult", RaycastResultSchema);
143
+ /** @public */ export const RealmInfo = engine =>
144
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::RealmInfo", RealmInfoSchema);
141
145
  /** @public */ export const TextShape = engine =>
142
146
  /* @__PURE__ */ engine.defineComponentFromSchema("core::TextShape", TextShapeSchema);
143
147
  /** @public */ export const Tween = engine =>
@@ -198,6 +202,7 @@ export const componentDefinitionByName = /* @__PURE__ */ {
198
202
  "core::PointerLock": PointerLock,
199
203
  "core::Raycast": Raycast,
200
204
  "core::RaycastResult": RaycastResult,
205
+ "core::RealmInfo": RealmInfo,
201
206
  "core::TextShape": TextShape,
202
207
  "core::Tween": Tween,
203
208
  "core::TweenSequence": TweenSequence,
@@ -0,0 +1,19 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface PBRealmInfo {
6
+ baseUrl: string;
7
+ realmName: string;
8
+ networkId: number;
9
+ commsAdapter: string;
10
+ isPreview: boolean;
11
+ room?: string | undefined;
12
+ }
13
+ /**
14
+ * @public
15
+ */
16
+ export declare namespace PBRealmInfo {
17
+ function encode(message: PBRealmInfo, writer?: _m0.Writer): _m0.Writer;
18
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBRealmInfo;
19
+ }
@@ -0,0 +1,86 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+ const protobufPackageSarasa = "decentraland.sdk.components";
4
+ function createBasePBRealmInfo() {
5
+ return { baseUrl: "", realmName: "", networkId: 0, commsAdapter: "", isPreview: false, room: undefined };
6
+ }
7
+ /**
8
+ * @public
9
+ */
10
+ export var PBRealmInfo;
11
+ (function (PBRealmInfo) {
12
+ function encode(message, writer = _m0.Writer.create()) {
13
+ if (message.baseUrl !== "") {
14
+ writer.uint32(10).string(message.baseUrl);
15
+ }
16
+ if (message.realmName !== "") {
17
+ writer.uint32(18).string(message.realmName);
18
+ }
19
+ if (message.networkId !== 0) {
20
+ writer.uint32(24).int32(message.networkId);
21
+ }
22
+ if (message.commsAdapter !== "") {
23
+ writer.uint32(34).string(message.commsAdapter);
24
+ }
25
+ if (message.isPreview === true) {
26
+ writer.uint32(40).bool(message.isPreview);
27
+ }
28
+ if (message.room !== undefined) {
29
+ writer.uint32(50).string(message.room);
30
+ }
31
+ return writer;
32
+ }
33
+ PBRealmInfo.encode = encode;
34
+ function decode(input, length) {
35
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
36
+ let end = length === undefined ? reader.len : reader.pos + length;
37
+ const message = createBasePBRealmInfo();
38
+ while (reader.pos < end) {
39
+ const tag = reader.uint32();
40
+ switch (tag >>> 3) {
41
+ case 1:
42
+ if (tag !== 10) {
43
+ break;
44
+ }
45
+ message.baseUrl = reader.string();
46
+ continue;
47
+ case 2:
48
+ if (tag !== 18) {
49
+ break;
50
+ }
51
+ message.realmName = reader.string();
52
+ continue;
53
+ case 3:
54
+ if (tag !== 24) {
55
+ break;
56
+ }
57
+ message.networkId = reader.int32();
58
+ continue;
59
+ case 4:
60
+ if (tag !== 34) {
61
+ break;
62
+ }
63
+ message.commsAdapter = reader.string();
64
+ continue;
65
+ case 5:
66
+ if (tag !== 40) {
67
+ break;
68
+ }
69
+ message.isPreview = reader.bool();
70
+ continue;
71
+ case 6:
72
+ if (tag !== 50) {
73
+ break;
74
+ }
75
+ message.room = reader.string();
76
+ continue;
77
+ }
78
+ if ((tag & 7) === 4 || tag === 0) {
79
+ break;
80
+ }
81
+ reader.skipType(tag & 7);
82
+ }
83
+ return message;
84
+ }
85
+ PBRealmInfo.decode = decode;
86
+ })(PBRealmInfo || (PBRealmInfo = {}));
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RealmInfoSchema = void 0;
4
+ const realm_info_gen_1 = require("./pb/decentraland/sdk/components/realm_info.gen");
5
+ /**
6
+ * @internal
7
+ */
8
+ exports.RealmInfoSchema = {
9
+ COMPONENT_ID: 1106,
10
+ serialize(value, builder) {
11
+ const writer = realm_info_gen_1.PBRealmInfo.encode(value);
12
+ const buffer = new Uint8Array(writer.finish(), 0, writer.len);
13
+ builder.writeBuffer(buffer, false);
14
+ },
15
+ deserialize(reader) {
16
+ return realm_info_gen_1.PBRealmInfo.decode(reader.buffer(), reader.remainingBytes());
17
+ },
18
+ create() {
19
+ // TODO: this is a hack.
20
+ return realm_info_gen_1.PBRealmInfo.decode(new Uint8Array());
21
+ },
22
+ jsonSchema: {
23
+ type: "object",
24
+ properties: {},
25
+ serializationType: "protocol-buffer",
26
+ protocolBuffer: "PBRealmInfo"
27
+ }
28
+ };
@@ -32,6 +32,7 @@ exports.coreComponentMappings = {
32
32
  "core::PointerLock": 1074,
33
33
  "core::Raycast": 1067,
34
34
  "core::RaycastResult": 1068,
35
+ "core::RealmInfo": 1106,
35
36
  "core::TextShape": 1030,
36
37
  "core::Tween": 1102,
37
38
  "core::TweenSequence": 1104,
@@ -22,6 +22,7 @@ import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_
22
22
  import { PBPointerLock } from './pb/decentraland/sdk/components/pointer_lock.gen';
23
23
  import { PBRaycast } from './pb/decentraland/sdk/components/raycast.gen';
24
24
  import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result.gen';
25
+ import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
25
26
  import { PBTextShape } from './pb/decentraland/sdk/components/text_shape.gen';
26
27
  import { PBTweenSequence } from './pb/decentraland/sdk/components/tween_sequence.gen';
27
28
  import { PBTweenState } from './pb/decentraland/sdk/components/tween_state.gen';
@@ -58,6 +59,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
58
59
  /** @public */ export declare const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
59
60
  /** @public */ export declare const Raycast: LastWriteWinElementSetComponentDefinition<PBRaycast>;
60
61
  /** @public */ export declare const RaycastResult: LastWriteWinElementSetComponentDefinition<PBRaycastResult>;
62
+ /** @public */ export declare const RealmInfo: LastWriteWinElementSetComponentDefinition<PBRealmInfo>;
61
63
  /** @public */ export declare const TextShape: LastWriteWinElementSetComponentDefinition<PBTextShape>;
62
64
  /** @public */ export declare const TweenSequence: LastWriteWinElementSetComponentDefinition<PBTweenSequence>;
63
65
  /** @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.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.RaycastResult = exports.Raycast = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.NftShape = 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.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.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);
@@ -52,6 +52,7 @@ __exportStar(require("./index.gen"), exports);
52
52
  /** @public */ exports.PointerLock = components.PointerLock(initialization_1.engine);
53
53
  /** @public */ exports.Raycast = components.Raycast(initialization_1.engine);
54
54
  /** @public */ exports.RaycastResult = components.RaycastResult(initialization_1.engine);
55
+ /** @public */ exports.RealmInfo = components.RealmInfo(initialization_1.engine);
55
56
  /** @public */ exports.TextShape = components.TextShape(initialization_1.engine);
56
57
  /** @public */ exports.TweenSequence = components.TweenSequence(initialization_1.engine);
57
58
  /** @public */ exports.TweenState = components.TweenState(initialization_1.engine);
@@ -26,6 +26,7 @@ import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_
26
26
  import { PBPointerLock } from './pb/decentraland/sdk/components/pointer_lock.gen';
27
27
  import { PBRaycast } from './pb/decentraland/sdk/components/raycast.gen';
28
28
  import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result.gen';
29
+ import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
29
30
  import { PBTextShape } from './pb/decentraland/sdk/components/text_shape.gen';
30
31
  import { PBTween } from './pb/decentraland/sdk/components/tween.gen';
31
32
  import { PBTweenSequence } from './pb/decentraland/sdk/components/tween_sequence.gen';
@@ -67,6 +68,7 @@ export * from './pb/decentraland/sdk/components/pointer_events_result.gen';
67
68
  export * from './pb/decentraland/sdk/components/pointer_lock.gen';
68
69
  export * from './pb/decentraland/sdk/components/raycast.gen';
69
70
  export * from './pb/decentraland/sdk/components/raycast_result.gen';
71
+ export * from './pb/decentraland/sdk/components/realm_info.gen';
70
72
  export * from './pb/decentraland/sdk/components/text_shape.gen';
71
73
  export * from './pb/decentraland/sdk/components/tween.gen';
72
74
  export * from './pb/decentraland/sdk/components/tween_sequence.gen';
@@ -110,6 +112,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
110
112
  /** @public */ export declare const PointerLock: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
111
113
  /** @public */ export declare const Raycast: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
112
114
  /** @public */ export declare const RaycastResult: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
115
+ /** @public */ export declare const RealmInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
113
116
  /** @public */ export declare const TextShape: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
114
117
  /** @public */ export declare const Tween: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
115
118
  /** @public */ export declare const TweenSequence: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
@@ -153,6 +156,7 @@ export declare const componentDefinitionByName: {
153
156
  "core::PointerLock": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
154
157
  "core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
155
158
  "core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
159
+ "core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
156
160
  "core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
157
161
  "core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
158
162
  "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.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.RaycastResult = exports.Raycast = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.NftShape = exports.MeshRenderer = exports.MeshCollider = exports.Material = 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.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.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");
@@ -41,6 +41,7 @@ const PointerEventsResult_gen_1 = require("./PointerEventsResult.gen");
41
41
  const PointerLock_gen_1 = require("./PointerLock.gen");
42
42
  const Raycast_gen_1 = require("./Raycast.gen");
43
43
  const RaycastResult_gen_1 = require("./RaycastResult.gen");
44
+ const RealmInfo_gen_1 = require("./RealmInfo.gen");
44
45
  const TextShape_gen_1 = require("./TextShape.gen");
45
46
  const Tween_gen_1 = require("./Tween.gen");
46
47
  const TweenSequence_gen_1 = require("./TweenSequence.gen");
@@ -82,6 +83,7 @@ __exportStar(require("./pb/decentraland/sdk/components/pointer_events_result.gen
82
83
  __exportStar(require("./pb/decentraland/sdk/components/pointer_lock.gen"), exports);
83
84
  __exportStar(require("./pb/decentraland/sdk/components/raycast.gen"), exports);
84
85
  __exportStar(require("./pb/decentraland/sdk/components/raycast_result.gen"), exports);
86
+ __exportStar(require("./pb/decentraland/sdk/components/realm_info.gen"), exports);
85
87
  __exportStar(require("./pb/decentraland/sdk/components/text_shape.gen"), exports);
86
88
  __exportStar(require("./pb/decentraland/sdk/components/tween.gen"), exports);
87
89
  __exportStar(require("./pb/decentraland/sdk/components/tween_sequence.gen"), exports);
@@ -181,6 +183,9 @@ exports.Raycast = Raycast;
181
183
  /** @public */ const RaycastResult = engine =>
182
184
  /* @__PURE__ */ engine.defineComponentFromSchema("core::RaycastResult", RaycastResult_gen_1.RaycastResultSchema);
183
185
  exports.RaycastResult = RaycastResult;
186
+ /** @public */ const RealmInfo = engine =>
187
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::RealmInfo", RealmInfo_gen_1.RealmInfoSchema);
188
+ exports.RealmInfo = RealmInfo;
184
189
  /** @public */ const TextShape = engine =>
185
190
  /* @__PURE__ */ engine.defineComponentFromSchema("core::TextShape", TextShape_gen_1.TextShapeSchema);
186
191
  exports.TextShape = TextShape;
@@ -256,6 +261,7 @@ exports.componentDefinitionByName = {
256
261
  "core::PointerLock": exports.PointerLock,
257
262
  "core::Raycast": exports.Raycast,
258
263
  "core::RaycastResult": exports.RaycastResult,
264
+ "core::RealmInfo": exports.RealmInfo,
259
265
  "core::TextShape": exports.TextShape,
260
266
  "core::Tween": exports.Tween,
261
267
  "core::TweenSequence": exports.TweenSequence,
@@ -0,0 +1,19 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface PBRealmInfo {
6
+ baseUrl: string;
7
+ realmName: string;
8
+ networkId: number;
9
+ commsAdapter: string;
10
+ isPreview: boolean;
11
+ room?: string | undefined;
12
+ }
13
+ /**
14
+ * @public
15
+ */
16
+ export declare namespace PBRealmInfo {
17
+ function encode(message: PBRealmInfo, writer?: _m0.Writer): _m0.Writer;
18
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBRealmInfo;
19
+ }
@@ -0,0 +1,92 @@
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.PBRealmInfo = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ const protobufPackageSarasa = "decentraland.sdk.components";
10
+ function createBasePBRealmInfo() {
11
+ return { baseUrl: "", realmName: "", networkId: 0, commsAdapter: "", isPreview: false, room: undefined };
12
+ }
13
+ /**
14
+ * @public
15
+ */
16
+ var PBRealmInfo;
17
+ (function (PBRealmInfo) {
18
+ function encode(message, writer = minimal_1.default.Writer.create()) {
19
+ if (message.baseUrl !== "") {
20
+ writer.uint32(10).string(message.baseUrl);
21
+ }
22
+ if (message.realmName !== "") {
23
+ writer.uint32(18).string(message.realmName);
24
+ }
25
+ if (message.networkId !== 0) {
26
+ writer.uint32(24).int32(message.networkId);
27
+ }
28
+ if (message.commsAdapter !== "") {
29
+ writer.uint32(34).string(message.commsAdapter);
30
+ }
31
+ if (message.isPreview === true) {
32
+ writer.uint32(40).bool(message.isPreview);
33
+ }
34
+ if (message.room !== undefined) {
35
+ writer.uint32(50).string(message.room);
36
+ }
37
+ return writer;
38
+ }
39
+ PBRealmInfo.encode = encode;
40
+ function decode(input, length) {
41
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
42
+ let end = length === undefined ? reader.len : reader.pos + length;
43
+ const message = createBasePBRealmInfo();
44
+ while (reader.pos < end) {
45
+ const tag = reader.uint32();
46
+ switch (tag >>> 3) {
47
+ case 1:
48
+ if (tag !== 10) {
49
+ break;
50
+ }
51
+ message.baseUrl = reader.string();
52
+ continue;
53
+ case 2:
54
+ if (tag !== 18) {
55
+ break;
56
+ }
57
+ message.realmName = reader.string();
58
+ continue;
59
+ case 3:
60
+ if (tag !== 24) {
61
+ break;
62
+ }
63
+ message.networkId = reader.int32();
64
+ continue;
65
+ case 4:
66
+ if (tag !== 34) {
67
+ break;
68
+ }
69
+ message.commsAdapter = reader.string();
70
+ continue;
71
+ case 5:
72
+ if (tag !== 40) {
73
+ break;
74
+ }
75
+ message.isPreview = reader.bool();
76
+ continue;
77
+ case 6:
78
+ if (tag !== 50) {
79
+ break;
80
+ }
81
+ message.room = reader.string();
82
+ continue;
83
+ }
84
+ if ((tag & 7) === 4 || tag === 0) {
85
+ break;
86
+ }
87
+ reader.skipType(tag & 7);
88
+ }
89
+ return message;
90
+ }
91
+ PBRealmInfo.decode = decode;
92
+ })(PBRealmInfo = exports.PBRealmInfo || (exports.PBRealmInfo = {}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/ecs",
3
3
  "description": "Decentraland ECS",
4
- "version": "7.4.18",
4
+ "version": "7.4.19",
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": "3236fa68dcccba455a5f20cbf5ab431fd6e82216"
36
+ "commit": "6d2ec97a241339671c7b75c6971003d24d3fe233"
37
37
  }