@dcl/playground-assets 7.20.2-22102228700.commit-61000fc → 7.20.2-22104870534.commit-0df3cc0
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 +137 -102
- package/dist/beta.d.ts +137 -102
- package/dist/index.bundled.d.ts +137 -102
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +137 -102
- package/etc/playground-assets.api.json +2527 -2090
- package/etc/playground-assets.api.md +94 -79
- package/package.json +4 -4
|
@@ -70,6 +70,31 @@ export const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
|
|
|
70
70
|
// @public (undocumented)
|
|
71
71
|
export type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
|
|
72
72
|
|
|
73
|
+
// Warning: (ae-missing-release-tag) "AudioAnalysis" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
74
|
+
//
|
|
75
|
+
// @public (undocumented)
|
|
76
|
+
export const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
|
|
77
|
+
|
|
78
|
+
// Warning: (ae-missing-release-tag) "AudioAnalysisComponentDefinitionExtended" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
79
|
+
//
|
|
80
|
+
// @public (undocumented)
|
|
81
|
+
export interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
|
|
82
|
+
createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
83
|
+
amplitudeGain?: number, bandsGain?: number): void;
|
|
84
|
+
createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
85
|
+
amplitudeGain?: number, bandsGain?: number): void;
|
|
86
|
+
readIntoView(entity: Entity, out: AudioAnalysisView): void;
|
|
87
|
+
tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Warning: (ae-missing-release-tag) "AudioAnalysisView" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
91
|
+
//
|
|
92
|
+
// @public
|
|
93
|
+
export type AudioAnalysisView = {
|
|
94
|
+
amplitude: number;
|
|
95
|
+
bands: number[];
|
|
96
|
+
};
|
|
97
|
+
|
|
73
98
|
// @public (undocumented)
|
|
74
99
|
export const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
75
100
|
|
|
@@ -94,29 +119,6 @@ export interface AudioStreamComponentDefinitionExtended extends LastWriteWinElem
|
|
|
94
119
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
95
120
|
}
|
|
96
121
|
|
|
97
|
-
// @public (undocumented)
|
|
98
|
-
export type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
|
|
99
|
-
|
|
100
|
-
// Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
|
|
101
|
-
//
|
|
102
|
-
// @public
|
|
103
|
-
export type AuthoritativePutComponentMessageBody = {
|
|
104
|
-
type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
|
|
105
|
-
entityId: Entity;
|
|
106
|
-
componentId: number;
|
|
107
|
-
timestamp: number;
|
|
108
|
-
data: Uint8Array;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
// @public (undocumented)
|
|
112
|
-
export namespace AuthoritativePutComponentOperation {
|
|
113
|
-
const // (undocumented)
|
|
114
|
-
MESSAGE_HEADER_LENGTH = 16;
|
|
115
|
-
// (undocumented)
|
|
116
|
-
export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
|
|
117
|
-
export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
122
|
// @public (undocumented)
|
|
121
123
|
export const enum AvatarAnchorPointType {
|
|
122
124
|
// (undocumented)
|
|
@@ -185,6 +187,9 @@ export const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmo
|
|
|
185
187
|
// @public (undocumented)
|
|
186
188
|
export const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
187
189
|
|
|
190
|
+
// @public (undocumented)
|
|
191
|
+
export const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
192
|
+
|
|
188
193
|
// @public (undocumented)
|
|
189
194
|
export const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
190
195
|
|
|
@@ -231,20 +236,12 @@ export interface BaseComponent<T> {
|
|
|
231
236
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
232
237
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
233
238
|
get(entity: Entity): any;
|
|
234
|
-
getCrdtState(entity: Entity): {
|
|
235
|
-
data: Uint8Array;
|
|
236
|
-
timestamp: number;
|
|
237
|
-
} | null;
|
|
238
239
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
239
240
|
has(entity: Entity): boolean;
|
|
240
241
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
241
242
|
// (undocumented)
|
|
242
243
|
readonly schema: ISchema<T>;
|
|
243
244
|
updateFromCrdt(body: CrdtMessageBody): [null | ConflictResolutionMessage, T | undefined];
|
|
244
|
-
// (undocumented)
|
|
245
|
-
validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
|
|
246
|
-
// (undocumented)
|
|
247
|
-
validateBeforeChange(cb: ValidateCallback<T>): void;
|
|
248
245
|
}
|
|
249
246
|
|
|
250
247
|
// @public (undocumented)
|
|
@@ -675,6 +672,7 @@ export const componentDefinitionByName: {
|
|
|
675
672
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
676
673
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
677
674
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
675
|
+
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
678
676
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
679
677
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
680
678
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -682,6 +680,7 @@ export const componentDefinitionByName: {
|
|
|
682
680
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
683
681
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
684
682
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
683
|
+
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
685
684
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
686
685
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
687
686
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -855,10 +854,10 @@ export type Coords = {
|
|
|
855
854
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
856
855
|
|
|
857
856
|
// @public (undocumented)
|
|
858
|
-
export type CrdtMessage = PutComponentMessage |
|
|
857
|
+
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
859
858
|
|
|
860
859
|
// @public (undocumented)
|
|
861
|
-
export type CrdtMessageBody = PutComponentMessageBody |
|
|
860
|
+
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
862
861
|
|
|
863
862
|
// @public
|
|
864
863
|
export type CrdtMessageHeader = {
|
|
@@ -879,8 +878,6 @@ export enum CrdtMessageType {
|
|
|
879
878
|
// (undocumented)
|
|
880
879
|
APPEND_VALUE = 4,
|
|
881
880
|
// (undocumented)
|
|
882
|
-
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
883
|
-
// (undocumented)
|
|
884
881
|
DELETE_COMPONENT = 2,
|
|
885
882
|
// (undocumented)
|
|
886
883
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -889,7 +886,7 @@ export enum CrdtMessageType {
|
|
|
889
886
|
// (undocumented)
|
|
890
887
|
DELETE_ENTITY_NETWORK = 7,
|
|
891
888
|
// (undocumented)
|
|
892
|
-
MAX_MESSAGE_TYPE =
|
|
889
|
+
MAX_MESSAGE_TYPE = 8,
|
|
893
890
|
// (undocumented)
|
|
894
891
|
PUT_COMPONENT = 1,
|
|
895
892
|
// (undocumented)
|
|
@@ -901,11 +898,6 @@ export enum CrdtMessageType {
|
|
|
901
898
|
// @public (undocumented)
|
|
902
899
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
903
900
|
|
|
904
|
-
// Warning: (ae-missing-release-tag) "CreatedBy" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
905
|
-
//
|
|
906
|
-
// @public (undocumented)
|
|
907
|
-
export const CreatedBy: ICreatedBy;
|
|
908
|
-
|
|
909
901
|
// @public (undocumented)
|
|
910
902
|
export function createEntityContainer(opts?: {
|
|
911
903
|
reservedStaticEntities: number;
|
|
@@ -1341,19 +1333,6 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1341
1333
|
// @public (undocumented)
|
|
1342
1334
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1343
1335
|
|
|
1344
|
-
// Warning: (ae-missing-release-tag) "ICreatedBy" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1345
|
-
//
|
|
1346
|
-
// @public (undocumented)
|
|
1347
|
-
export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
1348
|
-
|
|
1349
|
-
// Warning: (ae-missing-release-tag) "ICreatedByType" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1350
|
-
//
|
|
1351
|
-
// @public (undocumented)
|
|
1352
|
-
export interface ICreatedByType {
|
|
1353
|
-
// (undocumented)
|
|
1354
|
-
address: string;
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
1336
|
// @public (undocumented)
|
|
1358
1337
|
export interface IEngine {
|
|
1359
1338
|
addEntity(): Entity;
|
|
@@ -1550,6 +1529,8 @@ export const enum InputAction {
|
|
|
1550
1529
|
// (undocumented)
|
|
1551
1530
|
IA_LEFT = 7,
|
|
1552
1531
|
// (undocumented)
|
|
1532
|
+
IA_MODIFIER = 14,
|
|
1533
|
+
// (undocumented)
|
|
1553
1534
|
IA_POINTER = 0,
|
|
1554
1535
|
// (undocumented)
|
|
1555
1536
|
IA_PRIMARY = 1,
|
|
@@ -1593,20 +1574,6 @@ export type InstanceCompositeOptions = {
|
|
|
1593
1574
|
alreadyRequestedSrc?: Set<string>;
|
|
1594
1575
|
};
|
|
1595
1576
|
|
|
1596
|
-
// Warning: (ae-missing-release-tag) "InternalBaseComponent" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1597
|
-
//
|
|
1598
|
-
// @public
|
|
1599
|
-
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1600
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1601
|
-
// (undocumented)
|
|
1602
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1603
|
-
// (undocumented)
|
|
1604
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1605
|
-
// (undocumented)
|
|
1606
|
-
dirtyIterator(): Iterable<Entity>;
|
|
1607
|
-
iterator(): Iterable<[Entity, any]>;
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
1577
|
// @public (undocumented)
|
|
1611
1578
|
export interface ISchema<T = any> {
|
|
1612
1579
|
// (undocumented)
|
|
@@ -2304,6 +2271,46 @@ export namespace PBAssetLoadLoadingState {
|
|
|
2304
2271
|
export function encode(message: PBAssetLoadLoadingState, writer?: _m0.Writer): _m0.Writer;
|
|
2305
2272
|
}
|
|
2306
2273
|
|
|
2274
|
+
// @public (undocumented)
|
|
2275
|
+
export interface PBAudioAnalysis {
|
|
2276
|
+
amplitude: number;
|
|
2277
|
+
amplitudeGain?: number | undefined;
|
|
2278
|
+
// Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
|
|
2279
|
+
band0: number;
|
|
2280
|
+
// (undocumented)
|
|
2281
|
+
band1: number;
|
|
2282
|
+
// (undocumented)
|
|
2283
|
+
band2: number;
|
|
2284
|
+
// (undocumented)
|
|
2285
|
+
band3: number;
|
|
2286
|
+
// (undocumented)
|
|
2287
|
+
band4: number;
|
|
2288
|
+
// (undocumented)
|
|
2289
|
+
band5: number;
|
|
2290
|
+
// (undocumented)
|
|
2291
|
+
band6: number;
|
|
2292
|
+
// (undocumented)
|
|
2293
|
+
band7: number;
|
|
2294
|
+
bandsGain?: number | undefined;
|
|
2295
|
+
mode: PBAudioAnalysisMode;
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
// @public (undocumented)
|
|
2299
|
+
export namespace PBAudioAnalysis {
|
|
2300
|
+
// (undocumented)
|
|
2301
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
2302
|
+
// (undocumented)
|
|
2303
|
+
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
// @public (undocumented)
|
|
2307
|
+
export const enum PBAudioAnalysisMode {
|
|
2308
|
+
// (undocumented)
|
|
2309
|
+
MODE_LOGARITHMIC = 1,
|
|
2310
|
+
// (undocumented)
|
|
2311
|
+
MODE_RAW = 0
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2307
2314
|
// @public (undocumented)
|
|
2308
2315
|
export interface PBAudioEvent {
|
|
2309
2316
|
// (undocumented)
|
|
@@ -2425,6 +2432,24 @@ export namespace PBAvatarEquippedData {
|
|
|
2425
2432
|
export function encode(message: PBAvatarEquippedData, writer?: _m0.Writer): _m0.Writer;
|
|
2426
2433
|
}
|
|
2427
2434
|
|
|
2435
|
+
// @public (undocumented)
|
|
2436
|
+
export interface PBAvatarLocomotionSettings {
|
|
2437
|
+
hardLandingCooldown?: number | undefined;
|
|
2438
|
+
jogSpeed?: number | undefined;
|
|
2439
|
+
jumpHeight?: number | undefined;
|
|
2440
|
+
runJumpHeight?: number | undefined;
|
|
2441
|
+
runSpeed?: number | undefined;
|
|
2442
|
+
walkSpeed?: number | undefined;
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2445
|
+
// @public (undocumented)
|
|
2446
|
+
export namespace PBAvatarLocomotionSettings {
|
|
2447
|
+
// (undocumented)
|
|
2448
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
2449
|
+
// (undocumented)
|
|
2450
|
+
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2428
2453
|
// @public (undocumented)
|
|
2429
2454
|
export interface PBAvatarModifierArea {
|
|
2430
2455
|
area: PBVector3 | undefined;
|
|
@@ -3667,6 +3692,7 @@ export namespace PBVideoPlayer {
|
|
|
3667
3692
|
export interface PBVirtualCamera {
|
|
3668
3693
|
// (undocumented)
|
|
3669
3694
|
defaultTransition?: CameraTransition | undefined;
|
|
3695
|
+
fov?: number | undefined;
|
|
3670
3696
|
// (undocumented)
|
|
3671
3697
|
lookAtEntity?: number | undefined;
|
|
3672
3698
|
}
|
|
@@ -4925,17 +4951,6 @@ export interface UiTransformProps {
|
|
|
4925
4951
|
// @public (undocumented)
|
|
4926
4952
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
4927
4953
|
|
|
4928
|
-
// Warning: (ae-missing-release-tag) "ValidateCallback" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
4929
|
-
//
|
|
4930
|
-
// @public (undocumented)
|
|
4931
|
-
export type ValidateCallback<T> = (value: {
|
|
4932
|
-
entity: Entity;
|
|
4933
|
-
currentValue: T | undefined;
|
|
4934
|
-
newValue: T | undefined;
|
|
4935
|
-
senderAddress: string;
|
|
4936
|
-
createdBy: string;
|
|
4937
|
-
}) => boolean;
|
|
4938
|
-
|
|
4939
4954
|
// @public (undocumented)
|
|
4940
4955
|
export type ValueSetOptions<T> = {
|
|
4941
4956
|
timestampFunction: (value: DeepReadonly<T>) => number;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.20.2-
|
|
4
|
+
"version": "7.20.2-22104870534.commit-0df3cc0",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.20.2-
|
|
8
|
-
"@dcl/sdk": "7.20.2-
|
|
7
|
+
"@dcl/js-runtime": "7.20.2-22104870534.commit-0df3cc0",
|
|
8
|
+
"@dcl/sdk": "7.20.2-22104870534.commit-0df3cc0"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@microsoft/api-extractor": "^7.33.8"
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
},
|
|
33
33
|
"types": "./dist/index.d.ts",
|
|
34
34
|
"typings": "./dist/index.d.ts",
|
|
35
|
-
"commit": "
|
|
35
|
+
"commit": "0df3cc09f672669cf4f67ffc4f9946ca5b3ebeb7"
|
|
36
36
|
}
|