@dcl/playground-assets 7.24.2-27962061844.commit-196680f → 7.24.2-28088915032.commit-e2f7e10
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 +21 -101
- package/dist/beta.d.ts +21 -101
- package/dist/index.bundled.d.ts +21 -101
- package/dist/index.js +9 -9
- package/dist/playground/sdk/apis.d.ts +6 -0
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +21 -101
- package/etc/playground-assets.api.json +344 -1174
- package/etc/playground-assets.api.md +15 -79
- package/package.json +5 -6
|
@@ -1293,6 +1293,7 @@ declare module "~system/RestrictedActions" {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
export interface TriggerEmoteRequest {
|
|
1295
1295
|
predefinedEmote: string;
|
|
1296
|
+
mask?: number | undefined;
|
|
1296
1297
|
}
|
|
1297
1298
|
export interface ChangeRealmRequest {
|
|
1298
1299
|
realm: string;
|
|
@@ -1312,6 +1313,7 @@ declare module "~system/RestrictedActions" {
|
|
|
1312
1313
|
export interface TriggerSceneEmoteRequest {
|
|
1313
1314
|
src: string;
|
|
1314
1315
|
loop?: boolean | undefined;
|
|
1316
|
+
mask?: number | undefined;
|
|
1315
1317
|
}
|
|
1316
1318
|
export interface SuccessResponse {
|
|
1317
1319
|
success: boolean;
|
|
@@ -1327,6 +1329,8 @@ declare module "~system/RestrictedActions" {
|
|
|
1327
1329
|
text: string;
|
|
1328
1330
|
}
|
|
1329
1331
|
export interface EmptyResponse {
|
|
1332
|
+
}
|
|
1333
|
+
export interface StopEmoteRequest {
|
|
1330
1334
|
}
|
|
1331
1335
|
|
|
1332
1336
|
// Function declaration section
|
|
@@ -1355,6 +1359,8 @@ declare module "~system/RestrictedActions" {
|
|
|
1355
1359
|
export function triggerSceneEmote(body: TriggerSceneEmoteRequest): Promise<SuccessResponse>;
|
|
1356
1360
|
/** CopyToClipboard copies the provided text into the clipboard */
|
|
1357
1361
|
export function copyToClipboard(body: CopyToClipboardRequest): Promise<EmptyResponse>;
|
|
1362
|
+
/** StopEmote will stop the current emote */
|
|
1363
|
+
export function stopEmote(body: StopEmoteRequest): Promise<SuccessResponse>;
|
|
1358
1364
|
|
|
1359
1365
|
}
|
|
1360
1366
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/sdk",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.24.2-
|
|
4
|
+
"version": "7.24.2-28088915032.commit-e2f7e10",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@dcl/ecs": "file:../ecs",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
},
|
|
36
36
|
"types": "./index.d.ts",
|
|
37
37
|
"typings": "./index.d.ts",
|
|
38
|
-
"commit": "
|
|
38
|
+
"commit": "e2f7e10f57811866f18bee0141300cca8de70314"
|
|
39
39
|
}
|
|
@@ -220,42 +220,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
|
|
|
220
220
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
/**
|
|
224
|
-
* @public
|
|
225
|
-
*/
|
|
226
|
-
export declare type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Server authoritative message - identical to PutComponentMessageBody but with forced processing
|
|
230
|
-
* Min. length = header (8 bytes) + 16 bytes = 24 bytes
|
|
231
|
-
*
|
|
232
|
-
* @param entity - Uint32 number of the entity
|
|
233
|
-
* @param componentId - Uint32 number of id
|
|
234
|
-
* @param timestamp - Uint32 Lamport timestamp (server's authoritative timestamp)
|
|
235
|
-
* @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
|
|
236
|
-
* @public
|
|
237
|
-
*/
|
|
238
|
-
export declare type AuthoritativePutComponentMessageBody = {
|
|
239
|
-
type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
|
|
240
|
-
entityId: Entity;
|
|
241
|
-
componentId: number;
|
|
242
|
-
timestamp: number;
|
|
243
|
-
data: Uint8Array;
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* @public
|
|
248
|
-
*/
|
|
249
|
-
export declare namespace AuthoritativePutComponentOperation {
|
|
250
|
-
const MESSAGE_HEADER_LENGTH = 16;
|
|
251
|
-
/**
|
|
252
|
-
* Call this function for an optimal writing data passing the ByteBuffer
|
|
253
|
-
* already allocated
|
|
254
|
-
*/
|
|
255
|
-
export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
|
|
256
|
-
export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
223
|
/** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
|
|
260
224
|
/**
|
|
261
225
|
* @public
|
|
@@ -299,6 +263,15 @@ export declare const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAva
|
|
|
299
263
|
/** @public */
|
|
300
264
|
export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
|
|
301
265
|
|
|
266
|
+
/** Mask for which bones an animation applies to. */
|
|
267
|
+
/**
|
|
268
|
+
* @public
|
|
269
|
+
*/
|
|
270
|
+
export declare const enum AvatarEmoteMask {
|
|
271
|
+
AEM_FULL_BODY = 0,
|
|
272
|
+
AEM_UPPER_BODY = 1
|
|
273
|
+
}
|
|
274
|
+
|
|
302
275
|
/** @public */
|
|
303
276
|
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
304
277
|
|
|
@@ -418,22 +391,6 @@ export declare interface BaseComponent<T> {
|
|
|
418
391
|
* If the value is undefined, the component was deleted.
|
|
419
392
|
*/
|
|
420
393
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
421
|
-
/**
|
|
422
|
-
* @public
|
|
423
|
-
*
|
|
424
|
-
*/
|
|
425
|
-
validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
|
|
426
|
-
validateBeforeChange(cb: ValidateCallback<T>): void;
|
|
427
|
-
/**
|
|
428
|
-
* Get the CRDT state for an entity (serialized data and timestamp)
|
|
429
|
-
* @param entity - Entity to get the CRDT state for
|
|
430
|
-
* @returns Object with serialized data and timestamp, or null if entity doesn't have the component
|
|
431
|
-
* @public
|
|
432
|
-
*/
|
|
433
|
-
getCrdtState(entity: Entity): {
|
|
434
|
-
data: Uint8Array;
|
|
435
|
-
timestamp: number;
|
|
436
|
-
} | null;
|
|
437
394
|
}
|
|
438
395
|
|
|
439
396
|
/** @public */
|
|
@@ -1672,12 +1629,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
|
1672
1629
|
/**
|
|
1673
1630
|
* @public
|
|
1674
1631
|
*/
|
|
1675
|
-
export declare type CrdtMessage = PutComponentMessage |
|
|
1632
|
+
export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
1676
1633
|
|
|
1677
1634
|
/**
|
|
1678
1635
|
* @public
|
|
1679
1636
|
*/
|
|
1680
|
-
export declare type CrdtMessageBody = PutComponentMessageBody |
|
|
1637
|
+
export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
1681
1638
|
|
|
1682
1639
|
/**
|
|
1683
1640
|
* Min length = 8 bytes
|
|
@@ -1732,8 +1689,7 @@ export declare enum CrdtMessageType {
|
|
|
1732
1689
|
PUT_COMPONENT_NETWORK = 5,
|
|
1733
1690
|
DELETE_COMPONENT_NETWORK = 6,
|
|
1734
1691
|
DELETE_ENTITY_NETWORK = 7,
|
|
1735
|
-
|
|
1736
|
-
MAX_MESSAGE_TYPE = 9
|
|
1692
|
+
MAX_MESSAGE_TYPE = 8
|
|
1737
1693
|
}
|
|
1738
1694
|
|
|
1739
1695
|
/**
|
|
@@ -1741,8 +1697,6 @@ export declare enum CrdtMessageType {
|
|
|
1741
1697
|
*/
|
|
1742
1698
|
export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
1743
1699
|
|
|
1744
|
-
export declare const CreatedBy: ICreatedBy;
|
|
1745
|
-
|
|
1746
1700
|
/**
|
|
1747
1701
|
* @public
|
|
1748
1702
|
*/
|
|
@@ -2469,12 +2423,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
|
|
|
2469
2423
|
|
|
2470
2424
|
export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
2471
2425
|
|
|
2472
|
-
export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
2473
|
-
|
|
2474
|
-
export declare interface ICreatedByType {
|
|
2475
|
-
address: string;
|
|
2476
|
-
}
|
|
2477
|
-
|
|
2478
2426
|
/**
|
|
2479
2427
|
* @public
|
|
2480
2428
|
*/
|
|
@@ -2928,35 +2876,6 @@ export declare const enum InteractionType {
|
|
|
2928
2876
|
PROXIMITY = 1
|
|
2929
2877
|
}
|
|
2930
2878
|
|
|
2931
|
-
/**
|
|
2932
|
-
* Internal component interface that exposes all internal methods for SDK use
|
|
2933
|
-
* This is not exposed to users, only for internal SDK operations
|
|
2934
|
-
*/
|
|
2935
|
-
export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
2936
|
-
/**
|
|
2937
|
-
* @public
|
|
2938
|
-
* Dry run update to check if a CRDT message would be accepted without actually applying it
|
|
2939
|
-
*/
|
|
2940
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
2941
|
-
/**
|
|
2942
|
-
* @public
|
|
2943
|
-
* Get the iterator to every entity has the component
|
|
2944
|
-
*/
|
|
2945
|
-
iterator(): Iterable<[Entity, any]>;
|
|
2946
|
-
/**
|
|
2947
|
-
* @public
|
|
2948
|
-
*/
|
|
2949
|
-
dirtyIterator(): Iterable<Entity>;
|
|
2950
|
-
/**
|
|
2951
|
-
* @public
|
|
2952
|
-
*/
|
|
2953
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
2954
|
-
/**
|
|
2955
|
-
* @public
|
|
2956
|
-
*/
|
|
2957
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
2958
|
-
}
|
|
2959
|
-
|
|
2960
2879
|
/**
|
|
2961
2880
|
* @public
|
|
2962
2881
|
*/
|
|
@@ -4941,6 +4860,12 @@ export declare interface PBAvatarLocomotionSettings {
|
|
|
4941
4860
|
runJumpHeight?: number | undefined;
|
|
4942
4861
|
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4943
4862
|
hardLandingCooldown?: number | undefined;
|
|
4863
|
+
/** Height of the double jump (in meters) */
|
|
4864
|
+
doubleJumpHeight?: number | undefined;
|
|
4865
|
+
/** Maximum speed when gliding (in meters per second) */
|
|
4866
|
+
glidingSpeed?: number | undefined;
|
|
4867
|
+
/** Maximum falling speed when gliding (in meters per second) */
|
|
4868
|
+
glidingFallingSpeed?: number | undefined;
|
|
4944
4869
|
}
|
|
4945
4870
|
|
|
4946
4871
|
/**
|
|
@@ -7033,6 +6958,7 @@ export declare namespace PBVideoPlayer {
|
|
|
7033
6958
|
* an 'instant' transition (like using speed/time = 0)
|
|
7034
6959
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
7035
6960
|
* the holding entity transform).
|
|
6961
|
+
* * The fov defines the Field of View of the virtual camera
|
|
7036
6962
|
*/
|
|
7037
6963
|
/**
|
|
7038
6964
|
* @public
|
|
@@ -7040,6 +6966,8 @@ export declare namespace PBVideoPlayer {
|
|
|
7040
6966
|
export declare interface PBVirtualCamera {
|
|
7041
6967
|
defaultTransition?: CameraTransition | undefined;
|
|
7042
6968
|
lookAtEntity?: number | undefined;
|
|
6969
|
+
/** default: 60 */
|
|
6970
|
+
fov?: number | undefined;
|
|
7043
6971
|
}
|
|
7044
6972
|
|
|
7045
6973
|
/**
|
|
@@ -9667,14 +9595,6 @@ export declare interface UiTransformProps {
|
|
|
9667
9595
|
*/
|
|
9668
9596
|
export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
9669
9597
|
|
|
9670
|
-
export declare type ValidateCallback<T> = (value: {
|
|
9671
|
-
entity: Entity;
|
|
9672
|
-
currentValue: T | undefined;
|
|
9673
|
-
newValue: T | undefined;
|
|
9674
|
-
senderAddress: string;
|
|
9675
|
-
createdBy: string;
|
|
9676
|
-
}) => boolean;
|
|
9677
|
-
|
|
9678
9598
|
/**
|
|
9679
9599
|
* @public
|
|
9680
9600
|
*/
|