@dcl/playground-assets 7.22.6-25321038582.commit-63ddb3f → 7.22.6-25375246959.commit-ec25d50
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 +83 -102
- package/dist/beta.d.ts +83 -102
- package/dist/index.bundled.d.ts +83 -102
- package/dist/index.js +9 -9
- package/dist/playground/sdk/apis.d.ts +30 -0
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +83 -102
- package/etc/playground-assets.api.json +1476 -1440
- package/etc/playground-assets.api.md +70 -79
- package/package.json +5 -6
package/dist/alpha.d.ts
CHANGED
|
@@ -115,6 +115,9 @@ export declare const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
|
|
|
115
115
|
*/
|
|
116
116
|
export declare type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
|
|
117
117
|
|
|
118
|
+
/** @public */
|
|
119
|
+
export declare const AudioAnalysis: LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>;
|
|
120
|
+
|
|
118
121
|
/** @public */
|
|
119
122
|
export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
120
123
|
|
|
@@ -163,42 +166,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
|
|
|
163
166
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
164
167
|
}
|
|
165
168
|
|
|
166
|
-
/**
|
|
167
|
-
* @public
|
|
168
|
-
*/
|
|
169
|
-
export declare type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Server authoritative message - identical to PutComponentMessageBody but with forced processing
|
|
173
|
-
* Min. length = header (8 bytes) + 16 bytes = 24 bytes
|
|
174
|
-
*
|
|
175
|
-
* @param entity - Uint32 number of the entity
|
|
176
|
-
* @param componentId - Uint32 number of id
|
|
177
|
-
* @param timestamp - Uint32 Lamport timestamp (server's authoritative timestamp)
|
|
178
|
-
* @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
|
|
179
|
-
* @public
|
|
180
|
-
*/
|
|
181
|
-
export declare type AuthoritativePutComponentMessageBody = {
|
|
182
|
-
type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
|
|
183
|
-
entityId: Entity;
|
|
184
|
-
componentId: number;
|
|
185
|
-
timestamp: number;
|
|
186
|
-
data: Uint8Array;
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* @public
|
|
191
|
-
*/
|
|
192
|
-
export declare namespace AuthoritativePutComponentOperation {
|
|
193
|
-
const MESSAGE_HEADER_LENGTH = 16;
|
|
194
|
-
/**
|
|
195
|
-
* Call this function for an optimal writing data passing the ByteBuffer
|
|
196
|
-
* already allocated
|
|
197
|
-
*/
|
|
198
|
-
export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
|
|
199
|
-
export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
169
|
/** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
|
|
203
170
|
/**
|
|
204
171
|
* @public
|
|
@@ -245,6 +212,9 @@ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBA
|
|
|
245
212
|
/** @public */
|
|
246
213
|
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
247
214
|
|
|
215
|
+
/** @public */
|
|
216
|
+
export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
217
|
+
|
|
248
218
|
/** @public */
|
|
249
219
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
250
220
|
|
|
@@ -358,22 +328,6 @@ export declare interface BaseComponent<T> {
|
|
|
358
328
|
* If the value is undefined, the component was deleted.
|
|
359
329
|
*/
|
|
360
330
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
361
|
-
/**
|
|
362
|
-
* @public
|
|
363
|
-
*
|
|
364
|
-
*/
|
|
365
|
-
validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
|
|
366
|
-
validateBeforeChange(cb: ValidateCallback<T>): void;
|
|
367
|
-
/**
|
|
368
|
-
* Get the CRDT state for an entity (serialized data and timestamp)
|
|
369
|
-
* @param entity - Entity to get the CRDT state for
|
|
370
|
-
* @returns Object with serialized data and timestamp, or null if entity doesn't have the component
|
|
371
|
-
* @public
|
|
372
|
-
*/
|
|
373
|
-
getCrdtState(entity: Entity): {
|
|
374
|
-
data: Uint8Array;
|
|
375
|
-
timestamp: number;
|
|
376
|
-
} | null;
|
|
377
331
|
}
|
|
378
332
|
|
|
379
333
|
/** @public */
|
|
@@ -1390,6 +1344,7 @@ export declare const componentDefinitionByName: {
|
|
|
1390
1344
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
1391
1345
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
1392
1346
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
1347
|
+
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
1393
1348
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
1394
1349
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
1395
1350
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -1397,6 +1352,7 @@ export declare const componentDefinitionByName: {
|
|
|
1397
1352
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
1398
1353
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
1399
1354
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1355
|
+
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1400
1356
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1401
1357
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1402
1358
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -1602,12 +1558,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
|
1602
1558
|
/**
|
|
1603
1559
|
* @public
|
|
1604
1560
|
*/
|
|
1605
|
-
export declare type CrdtMessage = PutComponentMessage |
|
|
1561
|
+
export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
1606
1562
|
|
|
1607
1563
|
/**
|
|
1608
1564
|
* @public
|
|
1609
1565
|
*/
|
|
1610
|
-
export declare type CrdtMessageBody = PutComponentMessageBody |
|
|
1566
|
+
export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
1611
1567
|
|
|
1612
1568
|
/**
|
|
1613
1569
|
* Min length = 8 bytes
|
|
@@ -1662,8 +1618,7 @@ export declare enum CrdtMessageType {
|
|
|
1662
1618
|
PUT_COMPONENT_NETWORK = 5,
|
|
1663
1619
|
DELETE_COMPONENT_NETWORK = 6,
|
|
1664
1620
|
DELETE_ENTITY_NETWORK = 7,
|
|
1665
|
-
|
|
1666
|
-
MAX_MESSAGE_TYPE = 9
|
|
1621
|
+
MAX_MESSAGE_TYPE = 8
|
|
1667
1622
|
}
|
|
1668
1623
|
|
|
1669
1624
|
/**
|
|
@@ -1671,8 +1626,6 @@ export declare enum CrdtMessageType {
|
|
|
1671
1626
|
*/
|
|
1672
1627
|
export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
1673
1628
|
|
|
1674
|
-
export declare const CreatedBy: ICreatedBy;
|
|
1675
|
-
|
|
1676
1629
|
/**
|
|
1677
1630
|
* @public
|
|
1678
1631
|
*/
|
|
@@ -2392,12 +2345,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
|
|
|
2392
2345
|
|
|
2393
2346
|
export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
2394
2347
|
|
|
2395
|
-
export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
2396
|
-
|
|
2397
|
-
export declare interface ICreatedByType {
|
|
2398
|
-
address: string;
|
|
2399
|
-
}
|
|
2400
|
-
|
|
2401
2348
|
/**
|
|
2402
2349
|
* @public
|
|
2403
2350
|
*/
|
|
@@ -2793,7 +2740,9 @@ export declare const enum InputAction {
|
|
|
2793
2740
|
IA_ACTION_3 = 10,
|
|
2794
2741
|
IA_ACTION_4 = 11,
|
|
2795
2742
|
IA_ACTION_5 = 12,
|
|
2796
|
-
IA_ACTION_6 = 13
|
|
2743
|
+
IA_ACTION_6 = 13,
|
|
2744
|
+
/** IA_MODIFIER - Modifier key (Shift on desktop) */
|
|
2745
|
+
IA_MODIFIER = 14
|
|
2797
2746
|
}
|
|
2798
2747
|
|
|
2799
2748
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -2849,35 +2798,6 @@ export declare const enum InteractionType {
|
|
|
2849
2798
|
PROXIMITY = 1
|
|
2850
2799
|
}
|
|
2851
2800
|
|
|
2852
|
-
/**
|
|
2853
|
-
* Internal component interface that exposes all internal methods for SDK use
|
|
2854
|
-
* This is not exposed to users, only for internal SDK operations
|
|
2855
|
-
*/
|
|
2856
|
-
export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
2857
|
-
/**
|
|
2858
|
-
* @public
|
|
2859
|
-
* Dry run update to check if a CRDT message would be accepted without actually applying it
|
|
2860
|
-
*/
|
|
2861
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
2862
|
-
/**
|
|
2863
|
-
* @public
|
|
2864
|
-
* Get the iterator to every entity has the component
|
|
2865
|
-
*/
|
|
2866
|
-
iterator(): Iterable<[Entity, any]>;
|
|
2867
|
-
/**
|
|
2868
|
-
* @public
|
|
2869
|
-
*/
|
|
2870
|
-
dirtyIterator(): Iterable<Entity>;
|
|
2871
|
-
/**
|
|
2872
|
-
* @public
|
|
2873
|
-
*/
|
|
2874
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
2875
|
-
/**
|
|
2876
|
-
* @public
|
|
2877
|
-
*/
|
|
2878
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
2879
|
-
}
|
|
2880
|
-
|
|
2881
2801
|
/**
|
|
2882
2802
|
* @public
|
|
2883
2803
|
*/
|
|
@@ -4614,6 +4534,45 @@ export declare namespace PBAssetLoadLoadingState {
|
|
|
4614
4534
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
|
|
4615
4535
|
}
|
|
4616
4536
|
|
|
4537
|
+
/**
|
|
4538
|
+
* @public
|
|
4539
|
+
*/
|
|
4540
|
+
export declare interface PBAudioAnalysis {
|
|
4541
|
+
/** Parameters section */
|
|
4542
|
+
mode: PBAudioAnalysisMode;
|
|
4543
|
+
/** Used only when mode == MODE_LOGARITHMIC */
|
|
4544
|
+
amplitudeGain?: number | undefined;
|
|
4545
|
+
/** End when mode == MODE_LOGARITHMIC */
|
|
4546
|
+
bandsGain?: number | undefined;
|
|
4547
|
+
/** Result section */
|
|
4548
|
+
amplitude: number;
|
|
4549
|
+
/** Protobuf doesn't support fixed arrays -> 8 band fields */
|
|
4550
|
+
band0: number;
|
|
4551
|
+
band1: number;
|
|
4552
|
+
band2: number;
|
|
4553
|
+
band3: number;
|
|
4554
|
+
band4: number;
|
|
4555
|
+
band5: number;
|
|
4556
|
+
band6: number;
|
|
4557
|
+
band7: number;
|
|
4558
|
+
}
|
|
4559
|
+
|
|
4560
|
+
/**
|
|
4561
|
+
* @public
|
|
4562
|
+
*/
|
|
4563
|
+
export declare namespace PBAudioAnalysis {
|
|
4564
|
+
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
4565
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
4566
|
+
}
|
|
4567
|
+
|
|
4568
|
+
/**
|
|
4569
|
+
* @public
|
|
4570
|
+
*/
|
|
4571
|
+
export declare const enum PBAudioAnalysisMode {
|
|
4572
|
+
MODE_RAW = 0,
|
|
4573
|
+
MODE_LOGARITHMIC = 1
|
|
4574
|
+
}
|
|
4575
|
+
|
|
4617
4576
|
/**
|
|
4618
4577
|
* @public
|
|
4619
4578
|
*/
|
|
@@ -4803,6 +4762,36 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4803
4762
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4804
4763
|
}
|
|
4805
4764
|
|
|
4765
|
+
/**
|
|
4766
|
+
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
4767
|
+
* as the avatar movement speed, jump height etc.
|
|
4768
|
+
*/
|
|
4769
|
+
/**
|
|
4770
|
+
* @public
|
|
4771
|
+
*/
|
|
4772
|
+
export declare interface PBAvatarLocomotionSettings {
|
|
4773
|
+
/** Maximum speed when walking (in meters per second) */
|
|
4774
|
+
walkSpeed?: number | undefined;
|
|
4775
|
+
/** Maximum speed when jogging (in meters per second) */
|
|
4776
|
+
jogSpeed?: number | undefined;
|
|
4777
|
+
/** Maximum speed when running (in meters per second) */
|
|
4778
|
+
runSpeed?: number | undefined;
|
|
4779
|
+
/** Height of a regular jump (in meters) */
|
|
4780
|
+
jumpHeight?: number | undefined;
|
|
4781
|
+
/** Height of a jump while running (in meters) */
|
|
4782
|
+
runJumpHeight?: number | undefined;
|
|
4783
|
+
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4784
|
+
hardLandingCooldown?: number | undefined;
|
|
4785
|
+
}
|
|
4786
|
+
|
|
4787
|
+
/**
|
|
4788
|
+
* @public
|
|
4789
|
+
*/
|
|
4790
|
+
export declare namespace PBAvatarLocomotionSettings {
|
|
4791
|
+
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
4792
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
4793
|
+
}
|
|
4794
|
+
|
|
4806
4795
|
/**
|
|
4807
4796
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4808
4797
|
* avatar behavior changes.
|
|
@@ -9455,14 +9444,6 @@ export declare interface UiTransformProps {
|
|
|
9455
9444
|
*/
|
|
9456
9445
|
export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
9457
9446
|
|
|
9458
|
-
export declare type ValidateCallback<T> = (value: {
|
|
9459
|
-
entity: Entity;
|
|
9460
|
-
currentValue: T | undefined;
|
|
9461
|
-
newValue: T | undefined;
|
|
9462
|
-
senderAddress: string;
|
|
9463
|
-
createdBy: string;
|
|
9464
|
-
}) => boolean;
|
|
9465
|
-
|
|
9466
9447
|
/**
|
|
9467
9448
|
* @public
|
|
9468
9449
|
*/
|
package/dist/beta.d.ts
CHANGED
|
@@ -115,6 +115,9 @@ export declare const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
|
|
|
115
115
|
*/
|
|
116
116
|
export declare type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
|
|
117
117
|
|
|
118
|
+
/** @public */
|
|
119
|
+
export declare const AudioAnalysis: LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>;
|
|
120
|
+
|
|
118
121
|
/** @public */
|
|
119
122
|
export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
120
123
|
|
|
@@ -163,42 +166,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
|
|
|
163
166
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
164
167
|
}
|
|
165
168
|
|
|
166
|
-
/**
|
|
167
|
-
* @public
|
|
168
|
-
*/
|
|
169
|
-
export declare type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Server authoritative message - identical to PutComponentMessageBody but with forced processing
|
|
173
|
-
* Min. length = header (8 bytes) + 16 bytes = 24 bytes
|
|
174
|
-
*
|
|
175
|
-
* @param entity - Uint32 number of the entity
|
|
176
|
-
* @param componentId - Uint32 number of id
|
|
177
|
-
* @param timestamp - Uint32 Lamport timestamp (server's authoritative timestamp)
|
|
178
|
-
* @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
|
|
179
|
-
* @public
|
|
180
|
-
*/
|
|
181
|
-
export declare type AuthoritativePutComponentMessageBody = {
|
|
182
|
-
type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
|
|
183
|
-
entityId: Entity;
|
|
184
|
-
componentId: number;
|
|
185
|
-
timestamp: number;
|
|
186
|
-
data: Uint8Array;
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* @public
|
|
191
|
-
*/
|
|
192
|
-
export declare namespace AuthoritativePutComponentOperation {
|
|
193
|
-
const MESSAGE_HEADER_LENGTH = 16;
|
|
194
|
-
/**
|
|
195
|
-
* Call this function for an optimal writing data passing the ByteBuffer
|
|
196
|
-
* already allocated
|
|
197
|
-
*/
|
|
198
|
-
export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
|
|
199
|
-
export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
169
|
/** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
|
|
203
170
|
/**
|
|
204
171
|
* @public
|
|
@@ -245,6 +212,9 @@ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBA
|
|
|
245
212
|
/** @public */
|
|
246
213
|
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
247
214
|
|
|
215
|
+
/** @public */
|
|
216
|
+
export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
217
|
+
|
|
248
218
|
/** @public */
|
|
249
219
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
250
220
|
|
|
@@ -358,22 +328,6 @@ export declare interface BaseComponent<T> {
|
|
|
358
328
|
* If the value is undefined, the component was deleted.
|
|
359
329
|
*/
|
|
360
330
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
361
|
-
/**
|
|
362
|
-
* @public
|
|
363
|
-
*
|
|
364
|
-
*/
|
|
365
|
-
validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
|
|
366
|
-
validateBeforeChange(cb: ValidateCallback<T>): void;
|
|
367
|
-
/**
|
|
368
|
-
* Get the CRDT state for an entity (serialized data and timestamp)
|
|
369
|
-
* @param entity - Entity to get the CRDT state for
|
|
370
|
-
* @returns Object with serialized data and timestamp, or null if entity doesn't have the component
|
|
371
|
-
* @public
|
|
372
|
-
*/
|
|
373
|
-
getCrdtState(entity: Entity): {
|
|
374
|
-
data: Uint8Array;
|
|
375
|
-
timestamp: number;
|
|
376
|
-
} | null;
|
|
377
331
|
}
|
|
378
332
|
|
|
379
333
|
/** @public */
|
|
@@ -1390,6 +1344,7 @@ export declare const componentDefinitionByName: {
|
|
|
1390
1344
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
1391
1345
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
1392
1346
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
1347
|
+
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
1393
1348
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
1394
1349
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
1395
1350
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -1397,6 +1352,7 @@ export declare const componentDefinitionByName: {
|
|
|
1397
1352
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
1398
1353
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
1399
1354
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1355
|
+
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1400
1356
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1401
1357
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1402
1358
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -1602,12 +1558,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
|
1602
1558
|
/**
|
|
1603
1559
|
* @public
|
|
1604
1560
|
*/
|
|
1605
|
-
export declare type CrdtMessage = PutComponentMessage |
|
|
1561
|
+
export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
1606
1562
|
|
|
1607
1563
|
/**
|
|
1608
1564
|
* @public
|
|
1609
1565
|
*/
|
|
1610
|
-
export declare type CrdtMessageBody = PutComponentMessageBody |
|
|
1566
|
+
export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
1611
1567
|
|
|
1612
1568
|
/**
|
|
1613
1569
|
* Min length = 8 bytes
|
|
@@ -1662,8 +1618,7 @@ export declare enum CrdtMessageType {
|
|
|
1662
1618
|
PUT_COMPONENT_NETWORK = 5,
|
|
1663
1619
|
DELETE_COMPONENT_NETWORK = 6,
|
|
1664
1620
|
DELETE_ENTITY_NETWORK = 7,
|
|
1665
|
-
|
|
1666
|
-
MAX_MESSAGE_TYPE = 9
|
|
1621
|
+
MAX_MESSAGE_TYPE = 8
|
|
1667
1622
|
}
|
|
1668
1623
|
|
|
1669
1624
|
/**
|
|
@@ -1671,8 +1626,6 @@ export declare enum CrdtMessageType {
|
|
|
1671
1626
|
*/
|
|
1672
1627
|
export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
1673
1628
|
|
|
1674
|
-
export declare const CreatedBy: ICreatedBy;
|
|
1675
|
-
|
|
1676
1629
|
/**
|
|
1677
1630
|
* @public
|
|
1678
1631
|
*/
|
|
@@ -2392,12 +2345,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
|
|
|
2392
2345
|
|
|
2393
2346
|
export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
2394
2347
|
|
|
2395
|
-
export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
2396
|
-
|
|
2397
|
-
export declare interface ICreatedByType {
|
|
2398
|
-
address: string;
|
|
2399
|
-
}
|
|
2400
|
-
|
|
2401
2348
|
/**
|
|
2402
2349
|
* @public
|
|
2403
2350
|
*/
|
|
@@ -2784,7 +2731,9 @@ export declare const enum InputAction {
|
|
|
2784
2731
|
IA_ACTION_3 = 10,
|
|
2785
2732
|
IA_ACTION_4 = 11,
|
|
2786
2733
|
IA_ACTION_5 = 12,
|
|
2787
|
-
IA_ACTION_6 = 13
|
|
2734
|
+
IA_ACTION_6 = 13,
|
|
2735
|
+
/** IA_MODIFIER - Modifier key (Shift on desktop) */
|
|
2736
|
+
IA_MODIFIER = 14
|
|
2788
2737
|
}
|
|
2789
2738
|
|
|
2790
2739
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -2840,35 +2789,6 @@ export declare const enum InteractionType {
|
|
|
2840
2789
|
PROXIMITY = 1
|
|
2841
2790
|
}
|
|
2842
2791
|
|
|
2843
|
-
/**
|
|
2844
|
-
* Internal component interface that exposes all internal methods for SDK use
|
|
2845
|
-
* This is not exposed to users, only for internal SDK operations
|
|
2846
|
-
*/
|
|
2847
|
-
export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
2848
|
-
/**
|
|
2849
|
-
* @public
|
|
2850
|
-
* Dry run update to check if a CRDT message would be accepted without actually applying it
|
|
2851
|
-
*/
|
|
2852
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
2853
|
-
/**
|
|
2854
|
-
* @public
|
|
2855
|
-
* Get the iterator to every entity has the component
|
|
2856
|
-
*/
|
|
2857
|
-
iterator(): Iterable<[Entity, any]>;
|
|
2858
|
-
/**
|
|
2859
|
-
* @public
|
|
2860
|
-
*/
|
|
2861
|
-
dirtyIterator(): Iterable<Entity>;
|
|
2862
|
-
/**
|
|
2863
|
-
* @public
|
|
2864
|
-
*/
|
|
2865
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
2866
|
-
/**
|
|
2867
|
-
* @public
|
|
2868
|
-
*/
|
|
2869
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
2870
|
-
}
|
|
2871
|
-
|
|
2872
2792
|
/**
|
|
2873
2793
|
* @public
|
|
2874
2794
|
*/
|
|
@@ -4586,6 +4506,45 @@ export declare namespace PBAssetLoadLoadingState {
|
|
|
4586
4506
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
|
|
4587
4507
|
}
|
|
4588
4508
|
|
|
4509
|
+
/**
|
|
4510
|
+
* @public
|
|
4511
|
+
*/
|
|
4512
|
+
export declare interface PBAudioAnalysis {
|
|
4513
|
+
/** Parameters section */
|
|
4514
|
+
mode: PBAudioAnalysisMode;
|
|
4515
|
+
/** Used only when mode == MODE_LOGARITHMIC */
|
|
4516
|
+
amplitudeGain?: number | undefined;
|
|
4517
|
+
/** End when mode == MODE_LOGARITHMIC */
|
|
4518
|
+
bandsGain?: number | undefined;
|
|
4519
|
+
/** Result section */
|
|
4520
|
+
amplitude: number;
|
|
4521
|
+
/** Protobuf doesn't support fixed arrays -> 8 band fields */
|
|
4522
|
+
band0: number;
|
|
4523
|
+
band1: number;
|
|
4524
|
+
band2: number;
|
|
4525
|
+
band3: number;
|
|
4526
|
+
band4: number;
|
|
4527
|
+
band5: number;
|
|
4528
|
+
band6: number;
|
|
4529
|
+
band7: number;
|
|
4530
|
+
}
|
|
4531
|
+
|
|
4532
|
+
/**
|
|
4533
|
+
* @public
|
|
4534
|
+
*/
|
|
4535
|
+
export declare namespace PBAudioAnalysis {
|
|
4536
|
+
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
4537
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
4538
|
+
}
|
|
4539
|
+
|
|
4540
|
+
/**
|
|
4541
|
+
* @public
|
|
4542
|
+
*/
|
|
4543
|
+
export declare const enum PBAudioAnalysisMode {
|
|
4544
|
+
MODE_RAW = 0,
|
|
4545
|
+
MODE_LOGARITHMIC = 1
|
|
4546
|
+
}
|
|
4547
|
+
|
|
4589
4548
|
/**
|
|
4590
4549
|
* @public
|
|
4591
4550
|
*/
|
|
@@ -4775,6 +4734,36 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4775
4734
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4776
4735
|
}
|
|
4777
4736
|
|
|
4737
|
+
/**
|
|
4738
|
+
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
4739
|
+
* as the avatar movement speed, jump height etc.
|
|
4740
|
+
*/
|
|
4741
|
+
/**
|
|
4742
|
+
* @public
|
|
4743
|
+
*/
|
|
4744
|
+
export declare interface PBAvatarLocomotionSettings {
|
|
4745
|
+
/** Maximum speed when walking (in meters per second) */
|
|
4746
|
+
walkSpeed?: number | undefined;
|
|
4747
|
+
/** Maximum speed when jogging (in meters per second) */
|
|
4748
|
+
jogSpeed?: number | undefined;
|
|
4749
|
+
/** Maximum speed when running (in meters per second) */
|
|
4750
|
+
runSpeed?: number | undefined;
|
|
4751
|
+
/** Height of a regular jump (in meters) */
|
|
4752
|
+
jumpHeight?: number | undefined;
|
|
4753
|
+
/** Height of a jump while running (in meters) */
|
|
4754
|
+
runJumpHeight?: number | undefined;
|
|
4755
|
+
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4756
|
+
hardLandingCooldown?: number | undefined;
|
|
4757
|
+
}
|
|
4758
|
+
|
|
4759
|
+
/**
|
|
4760
|
+
* @public
|
|
4761
|
+
*/
|
|
4762
|
+
export declare namespace PBAvatarLocomotionSettings {
|
|
4763
|
+
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
4764
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
4765
|
+
}
|
|
4766
|
+
|
|
4778
4767
|
/**
|
|
4779
4768
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4780
4769
|
* avatar behavior changes.
|
|
@@ -9422,14 +9411,6 @@ export declare interface UiTransformProps {
|
|
|
9422
9411
|
*/
|
|
9423
9412
|
export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
9424
9413
|
|
|
9425
|
-
export declare type ValidateCallback<T> = (value: {
|
|
9426
|
-
entity: Entity;
|
|
9427
|
-
currentValue: T | undefined;
|
|
9428
|
-
newValue: T | undefined;
|
|
9429
|
-
senderAddress: string;
|
|
9430
|
-
createdBy: string;
|
|
9431
|
-
}) => boolean;
|
|
9432
|
-
|
|
9433
9414
|
/**
|
|
9434
9415
|
* @public
|
|
9435
9416
|
*/
|