@dcl/playground-assets 7.27.1-33755622021.commit-da82bfb → 7.27.1-34486417882.commit-c86ede9
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/alpha.d.ts +47 -1
- package/dist/beta.d.ts +47 -1
- package/dist/index.bundled.d.ts +47 -1
- package/dist/index.js +5 -5
- package/dist/playground/sdk/apis.d.ts +12 -2
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +47 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/etc/playground-assets.api.json +359 -3
- package/etc/playground-assets.api.md +21 -1
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
|
@@ -318,6 +318,9 @@ export declare const enum AvatarModifierType {
|
|
|
318
318
|
AMT_HIDE_NAMETAGS = 2
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
+
/** @public */
|
|
322
|
+
export declare const AvatarNametag: LastWriteWinElementSetComponentDefinition<PBAvatarNametag>;
|
|
323
|
+
|
|
321
324
|
/** @public */
|
|
322
325
|
export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
|
|
323
326
|
|
|
@@ -1444,6 +1447,7 @@ export declare const componentDefinitionByName: {
|
|
|
1444
1447
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1445
1448
|
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1446
1449
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1450
|
+
"core::AvatarNametag": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarNametag>>;
|
|
1447
1451
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1448
1452
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
1449
1453
|
"core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
|
@@ -5020,6 +5024,48 @@ export declare namespace PBAvatarModifierArea {
|
|
|
5020
5024
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarModifierArea;
|
|
5021
5025
|
}
|
|
5022
5026
|
|
|
5027
|
+
/**
|
|
5028
|
+
* The AvatarNametag component adds a plate with scene-provided text above an avatar's nametag,
|
|
5029
|
+
* for example to show a rank or a role that the scene assigns to that player.
|
|
5030
|
+
*
|
|
5031
|
+
* Valid only on an avatar-bearing entity:
|
|
5032
|
+
* - the local player: `engine.PlayerEntity`
|
|
5033
|
+
* - another player in the scene: that player's entity
|
|
5034
|
+
* - an NPC: any entity with an AvatarShape
|
|
5035
|
+
* Writes to any other entity are ignored.
|
|
5036
|
+
*
|
|
5037
|
+
* Player entity ids are not stable across disconnects: a write to a stale entity lands on
|
|
5038
|
+
* whoever holds that id next. Resolve the entity from the user id on every write, and remove
|
|
5039
|
+
* the component when the player leaves the scene.
|
|
5040
|
+
*
|
|
5041
|
+
* The plate is local to the client that renders it; it is never relayed to other players.
|
|
5042
|
+
*/
|
|
5043
|
+
/**
|
|
5044
|
+
* @public
|
|
5045
|
+
*/
|
|
5046
|
+
export declare interface PBAvatarNametag {
|
|
5047
|
+
/**
|
|
5048
|
+
* The plate text: a single line, for example "Club Owner". Empty draws the plate without text,
|
|
5049
|
+
* and spaces are preserved: a label of spaces widens a text-less plate. For a plate sized
|
|
5050
|
+
* exactly to a word without showing it, set label_color equal to background_color instead.
|
|
5051
|
+
*/
|
|
5052
|
+
label: string;
|
|
5053
|
+
/** (default: the client's native nametag text color) */
|
|
5054
|
+
labelColor?: PBColor3 | undefined;
|
|
5055
|
+
/** (default: the client's native nametag background color) */
|
|
5056
|
+
backgroundColor?: PBColor3 | undefined;
|
|
5057
|
+
/** (default: background_color, so the plate carries no visible border) */
|
|
5058
|
+
borderColor?: PBColor3 | undefined;
|
|
5059
|
+
}
|
|
5060
|
+
|
|
5061
|
+
/**
|
|
5062
|
+
* @public
|
|
5063
|
+
*/
|
|
5064
|
+
export declare namespace PBAvatarNametag {
|
|
5065
|
+
export function encode(message: PBAvatarNametag, writer?: _m0.Writer): _m0.Writer;
|
|
5066
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarNametag;
|
|
5067
|
+
}
|
|
5068
|
+
|
|
5023
5069
|
/**
|
|
5024
5070
|
* The AvatarShape component contains the information required to draw and animate avatar, acting as
|
|
5025
5071
|
* a simplified GLTF container for this specific case.
|
|
@@ -8494,7 +8540,7 @@ export declare type ReadOnlyLastWriteWinElementSetComponentDefinition<T> = Omit<
|
|
|
8494
8540
|
/**
|
|
8495
8541
|
* @public
|
|
8496
8542
|
*/
|
|
8497
|
-
export declare type ReadonlyPrimitive = number | string |
|
|
8543
|
+
export declare type ReadonlyPrimitive = number | string | boolean;
|
|
8498
8544
|
|
|
8499
8545
|
/** @public */
|
|
8500
8546
|
export declare const RealmInfo: LastWriteWinElementSetComponentDefinition<PBRealmInfo>;
|
package/dist/beta.d.ts
CHANGED
|
@@ -318,6 +318,9 @@ export declare const enum AvatarModifierType {
|
|
|
318
318
|
AMT_HIDE_NAMETAGS = 2
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
+
/** @public */
|
|
322
|
+
export declare const AvatarNametag: LastWriteWinElementSetComponentDefinition<PBAvatarNametag>;
|
|
323
|
+
|
|
321
324
|
/** @public */
|
|
322
325
|
export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
|
|
323
326
|
|
|
@@ -1444,6 +1447,7 @@ export declare const componentDefinitionByName: {
|
|
|
1444
1447
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1445
1448
|
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1446
1449
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1450
|
+
"core::AvatarNametag": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarNametag>>;
|
|
1447
1451
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1448
1452
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
1449
1453
|
"core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
|
@@ -4992,6 +4996,48 @@ export declare namespace PBAvatarModifierArea {
|
|
|
4992
4996
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarModifierArea;
|
|
4993
4997
|
}
|
|
4994
4998
|
|
|
4999
|
+
/**
|
|
5000
|
+
* The AvatarNametag component adds a plate with scene-provided text above an avatar's nametag,
|
|
5001
|
+
* for example to show a rank or a role that the scene assigns to that player.
|
|
5002
|
+
*
|
|
5003
|
+
* Valid only on an avatar-bearing entity:
|
|
5004
|
+
* - the local player: `engine.PlayerEntity`
|
|
5005
|
+
* - another player in the scene: that player's entity
|
|
5006
|
+
* - an NPC: any entity with an AvatarShape
|
|
5007
|
+
* Writes to any other entity are ignored.
|
|
5008
|
+
*
|
|
5009
|
+
* Player entity ids are not stable across disconnects: a write to a stale entity lands on
|
|
5010
|
+
* whoever holds that id next. Resolve the entity from the user id on every write, and remove
|
|
5011
|
+
* the component when the player leaves the scene.
|
|
5012
|
+
*
|
|
5013
|
+
* The plate is local to the client that renders it; it is never relayed to other players.
|
|
5014
|
+
*/
|
|
5015
|
+
/**
|
|
5016
|
+
* @public
|
|
5017
|
+
*/
|
|
5018
|
+
export declare interface PBAvatarNametag {
|
|
5019
|
+
/**
|
|
5020
|
+
* The plate text: a single line, for example "Club Owner". Empty draws the plate without text,
|
|
5021
|
+
* and spaces are preserved: a label of spaces widens a text-less plate. For a plate sized
|
|
5022
|
+
* exactly to a word without showing it, set label_color equal to background_color instead.
|
|
5023
|
+
*/
|
|
5024
|
+
label: string;
|
|
5025
|
+
/** (default: the client's native nametag text color) */
|
|
5026
|
+
labelColor?: PBColor3 | undefined;
|
|
5027
|
+
/** (default: the client's native nametag background color) */
|
|
5028
|
+
backgroundColor?: PBColor3 | undefined;
|
|
5029
|
+
/** (default: background_color, so the plate carries no visible border) */
|
|
5030
|
+
borderColor?: PBColor3 | undefined;
|
|
5031
|
+
}
|
|
5032
|
+
|
|
5033
|
+
/**
|
|
5034
|
+
* @public
|
|
5035
|
+
*/
|
|
5036
|
+
export declare namespace PBAvatarNametag {
|
|
5037
|
+
export function encode(message: PBAvatarNametag, writer?: _m0.Writer): _m0.Writer;
|
|
5038
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarNametag;
|
|
5039
|
+
}
|
|
5040
|
+
|
|
4995
5041
|
/**
|
|
4996
5042
|
* The AvatarShape component contains the information required to draw and animate avatar, acting as
|
|
4997
5043
|
* a simplified GLTF container for this specific case.
|
|
@@ -8466,7 +8512,7 @@ export declare type ReadOnlyLastWriteWinElementSetComponentDefinition<T> = Omit<
|
|
|
8466
8512
|
/**
|
|
8467
8513
|
* @public
|
|
8468
8514
|
*/
|
|
8469
|
-
export declare type ReadonlyPrimitive = number | string |
|
|
8515
|
+
export declare type ReadonlyPrimitive = number | string | boolean;
|
|
8470
8516
|
|
|
8471
8517
|
/** @public */
|
|
8472
8518
|
export declare const RealmInfo: LastWriteWinElementSetComponentDefinition<PBRealmInfo>;
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -318,6 +318,9 @@ export declare const enum AvatarModifierType {
|
|
|
318
318
|
AMT_HIDE_NAMETAGS = 2
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
+
/** @public */
|
|
322
|
+
export declare const AvatarNametag: LastWriteWinElementSetComponentDefinition<PBAvatarNametag>;
|
|
323
|
+
|
|
321
324
|
/** @public */
|
|
322
325
|
export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
|
|
323
326
|
|
|
@@ -1444,6 +1447,7 @@ export declare const componentDefinitionByName: {
|
|
|
1444
1447
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1445
1448
|
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1446
1449
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1450
|
+
"core::AvatarNametag": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarNametag>>;
|
|
1447
1451
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1448
1452
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
1449
1453
|
"core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
|
@@ -4992,6 +4996,48 @@ export declare namespace PBAvatarModifierArea {
|
|
|
4992
4996
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarModifierArea;
|
|
4993
4997
|
}
|
|
4994
4998
|
|
|
4999
|
+
/**
|
|
5000
|
+
* The AvatarNametag component adds a plate with scene-provided text above an avatar's nametag,
|
|
5001
|
+
* for example to show a rank or a role that the scene assigns to that player.
|
|
5002
|
+
*
|
|
5003
|
+
* Valid only on an avatar-bearing entity:
|
|
5004
|
+
* - the local player: `engine.PlayerEntity`
|
|
5005
|
+
* - another player in the scene: that player's entity
|
|
5006
|
+
* - an NPC: any entity with an AvatarShape
|
|
5007
|
+
* Writes to any other entity are ignored.
|
|
5008
|
+
*
|
|
5009
|
+
* Player entity ids are not stable across disconnects: a write to a stale entity lands on
|
|
5010
|
+
* whoever holds that id next. Resolve the entity from the user id on every write, and remove
|
|
5011
|
+
* the component when the player leaves the scene.
|
|
5012
|
+
*
|
|
5013
|
+
* The plate is local to the client that renders it; it is never relayed to other players.
|
|
5014
|
+
*/
|
|
5015
|
+
/**
|
|
5016
|
+
* @public
|
|
5017
|
+
*/
|
|
5018
|
+
export declare interface PBAvatarNametag {
|
|
5019
|
+
/**
|
|
5020
|
+
* The plate text: a single line, for example "Club Owner". Empty draws the plate without text,
|
|
5021
|
+
* and spaces are preserved: a label of spaces widens a text-less plate. For a plate sized
|
|
5022
|
+
* exactly to a word without showing it, set label_color equal to background_color instead.
|
|
5023
|
+
*/
|
|
5024
|
+
label: string;
|
|
5025
|
+
/** (default: the client's native nametag text color) */
|
|
5026
|
+
labelColor?: PBColor3 | undefined;
|
|
5027
|
+
/** (default: the client's native nametag background color) */
|
|
5028
|
+
backgroundColor?: PBColor3 | undefined;
|
|
5029
|
+
/** (default: background_color, so the plate carries no visible border) */
|
|
5030
|
+
borderColor?: PBColor3 | undefined;
|
|
5031
|
+
}
|
|
5032
|
+
|
|
5033
|
+
/**
|
|
5034
|
+
* @public
|
|
5035
|
+
*/
|
|
5036
|
+
export declare namespace PBAvatarNametag {
|
|
5037
|
+
export function encode(message: PBAvatarNametag, writer?: _m0.Writer): _m0.Writer;
|
|
5038
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarNametag;
|
|
5039
|
+
}
|
|
5040
|
+
|
|
4995
5041
|
/**
|
|
4996
5042
|
* The AvatarShape component contains the information required to draw and animate avatar, acting as
|
|
4997
5043
|
* a simplified GLTF container for this specific case.
|
|
@@ -8466,7 +8512,7 @@ export declare type ReadOnlyLastWriteWinElementSetComponentDefinition<T> = Omit<
|
|
|
8466
8512
|
/**
|
|
8467
8513
|
* @public
|
|
8468
8514
|
*/
|
|
8469
|
-
export declare type ReadonlyPrimitive = number | string |
|
|
8515
|
+
export declare type ReadonlyPrimitive = number | string | boolean;
|
|
8470
8516
|
|
|
8471
8517
|
/** @public */
|
|
8472
8518
|
export declare const RealmInfo: LastWriteWinElementSetComponentDefinition<PBRealmInfo>;
|