From fcd48771ed762e039893718a9958046cf80b4ac6 Mon Sep 17 00:00:00 2001 From: Gonzalo DCL Date: Tue, 17 Sep 2024 12:40:47 -0300 Subject: [PATCH] expose map pin --- .../etc/playground-assets.api.md | 26 +++++++++++++++++++ scripts/protocol-buffer-generation/index.ts | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/packages/@dcl/playground-assets/etc/playground-assets.api.md b/packages/@dcl/playground-assets/etc/playground-assets.api.md index d0930d991..82758b10a 100644 --- a/packages/@dcl/playground-assets/etc/playground-assets.api.md +++ b/packages/@dcl/playground-assets/etc/playground-assets.api.md @@ -632,6 +632,7 @@ export const componentDefinitionByName: { "core::GltfContainerLoadingState": LwwComponentGetter>; "core::InputModifier": LwwComponentGetter>; "core::MainCamera": LwwComponentGetter>; + "core::MapPin": LwwComponentGetter>; "core::Material": LwwComponentGetter>; "core::MeshCollider": LwwComponentGetter>; "core::MeshRenderer": LwwComponentGetter>; @@ -1585,6 +1586,9 @@ export interface MapComponentDefinition extends LastWriteWinElementSetCompone createOrReplace(entity: Entity, val?: Partial): T; } +// @public (undocumented) +export const MapPin: LastWriteWinElementSetComponentDefinition; + // @public (undocumented) export type MapResult = ToOptional<{ [K in keyof T]: T[K] extends ISchema ? ReturnType : T[K] extends Spec ? MapResult : never; @@ -2398,6 +2402,28 @@ export namespace PBMainCamera { export function encode(message: PBMainCamera, writer?: _m0.Writer): _m0.Writer; } +// @public (undocumented) +export interface PBMapPin { + // (undocumented) + description: string; + // (undocumented) + iconSize: number; + // (undocumented) + position: PBVector2 | undefined; + // (undocumented) + texture?: TextureUnion | undefined; + // (undocumented) + title: string; +} + +// @public (undocumented) +export namespace PBMapPin { + // (undocumented) + export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMapPin; + // (undocumented) + export function encode(message: PBMapPin, writer?: _m0.Writer): _m0.Writer; +} + // @public (undocumented) export interface PBMaterial { // (undocumented) diff --git a/scripts/protocol-buffer-generation/index.ts b/scripts/protocol-buffer-generation/index.ts index d1b218af5..6bdb6b437 100644 --- a/scripts/protocol-buffer-generation/index.ts +++ b/scripts/protocol-buffer-generation/index.ts @@ -10,7 +10,7 @@ import fs from 'fs-extra' import { FileDescriptorStandardOption, runCommand } from '../utils/shellCommand' import { PROTO_COMPILER_PATH, TS_PROTO_PLUGIN_PATH } from './protoConst' -const NON_EXPOSED_LIST: number[] = [1097] +const NON_EXPOSED_LIST: number[] = [] /** * @param componentPath - Argument of execution '--component-path'