@dcl/playground-assets 7.20.5-22639691829.commit-b96024f → 7.20.5-22670537517.commit-a403a9f
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 +66 -101
- package/dist/beta.d.ts +66 -101
- package/dist/index.bundled.d.ts +66 -101
- 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 +66 -101
- package/etc/playground-assets.api.json +1256 -1642
- package/etc/playground-assets.api.md +42 -79
- package/package.json +5 -6
package/dist/alpha.d.ts
CHANGED
|
@@ -163,42 +163,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
|
|
|
163
163
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
164
164
|
}
|
|
165
165
|
|
|
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
166
|
/** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
|
|
203
167
|
/**
|
|
204
168
|
* @public
|
|
@@ -358,22 +322,6 @@ export declare interface BaseComponent<T> {
|
|
|
358
322
|
* If the value is undefined, the component was deleted.
|
|
359
323
|
*/
|
|
360
324
|
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
325
|
}
|
|
378
326
|
|
|
379
327
|
/** @public */
|
|
@@ -1396,6 +1344,8 @@ export declare const componentDefinitionByName: {
|
|
|
1396
1344
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
1397
1345
|
"core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
|
1398
1346
|
"core::NftShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
|
|
1347
|
+
"core::PhysicsCombinedForce": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
|
|
1348
|
+
"core::PhysicsCombinedImpulse": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
|
|
1399
1349
|
"core::PlayerIdentityData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
|
|
1400
1350
|
"core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
|
1401
1351
|
"core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
|
@@ -1582,12 +1532,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
|
1582
1532
|
/**
|
|
1583
1533
|
* @public
|
|
1584
1534
|
*/
|
|
1585
|
-
export declare type CrdtMessage = PutComponentMessage |
|
|
1535
|
+
export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
1586
1536
|
|
|
1587
1537
|
/**
|
|
1588
1538
|
* @public
|
|
1589
1539
|
*/
|
|
1590
|
-
export declare type CrdtMessageBody = PutComponentMessageBody |
|
|
1540
|
+
export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
1591
1541
|
|
|
1592
1542
|
/**
|
|
1593
1543
|
* Min length = 8 bytes
|
|
@@ -1642,8 +1592,7 @@ export declare enum CrdtMessageType {
|
|
|
1642
1592
|
PUT_COMPONENT_NETWORK = 5,
|
|
1643
1593
|
DELETE_COMPONENT_NETWORK = 6,
|
|
1644
1594
|
DELETE_ENTITY_NETWORK = 7,
|
|
1645
|
-
|
|
1646
|
-
MAX_MESSAGE_TYPE = 9
|
|
1595
|
+
MAX_MESSAGE_TYPE = 8
|
|
1647
1596
|
}
|
|
1648
1597
|
|
|
1649
1598
|
/**
|
|
@@ -1651,8 +1600,6 @@ export declare enum CrdtMessageType {
|
|
|
1651
1600
|
*/
|
|
1652
1601
|
export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
1653
1602
|
|
|
1654
|
-
export declare const CreatedBy: ICreatedBy;
|
|
1655
|
-
|
|
1656
1603
|
/**
|
|
1657
1604
|
* @public
|
|
1658
1605
|
*/
|
|
@@ -2345,12 +2292,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
|
|
|
2345
2292
|
|
|
2346
2293
|
export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
2347
2294
|
|
|
2348
|
-
export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
2349
|
-
|
|
2350
|
-
export declare interface ICreatedByType {
|
|
2351
|
-
address: string;
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
2295
|
/**
|
|
2355
2296
|
* @public
|
|
2356
2297
|
*/
|
|
@@ -2794,35 +2735,6 @@ export declare type InstanceCompositeOptions = {
|
|
|
2794
2735
|
alreadyRequestedSrc?: Set<string>;
|
|
2795
2736
|
};
|
|
2796
2737
|
|
|
2797
|
-
/**
|
|
2798
|
-
* Internal component interface that exposes all internal methods for SDK use
|
|
2799
|
-
* This is not exposed to users, only for internal SDK operations
|
|
2800
|
-
*/
|
|
2801
|
-
export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
2802
|
-
/**
|
|
2803
|
-
* @public
|
|
2804
|
-
* Dry run update to check if a CRDT message would be accepted without actually applying it
|
|
2805
|
-
*/
|
|
2806
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
2807
|
-
/**
|
|
2808
|
-
* @public
|
|
2809
|
-
* Get the iterator to every entity has the component
|
|
2810
|
-
*/
|
|
2811
|
-
iterator(): Iterable<[Entity, any]>;
|
|
2812
|
-
/**
|
|
2813
|
-
* @public
|
|
2814
|
-
*/
|
|
2815
|
-
dirtyIterator(): Iterable<Entity>;
|
|
2816
|
-
/**
|
|
2817
|
-
* @public
|
|
2818
|
-
*/
|
|
2819
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
2820
|
-
/**
|
|
2821
|
-
* @public
|
|
2822
|
-
*/
|
|
2823
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
2824
|
-
}
|
|
2825
|
-
|
|
2826
2738
|
/**
|
|
2827
2739
|
* @public
|
|
2828
2740
|
*/
|
|
@@ -5015,6 +4927,8 @@ export declare interface PBInputModifier_StandardInput {
|
|
|
5015
4927
|
disableRun?: boolean | undefined;
|
|
5016
4928
|
disableJump?: boolean | undefined;
|
|
5017
4929
|
disableEmote?: boolean | undefined;
|
|
4930
|
+
disableDoubleJump?: boolean | undefined;
|
|
4931
|
+
disableGliding?: boolean | undefined;
|
|
5018
4932
|
}
|
|
5019
4933
|
|
|
5020
4934
|
/**
|
|
@@ -5436,6 +5350,59 @@ export declare namespace PBNftShape {
|
|
|
5436
5350
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBNftShape;
|
|
5437
5351
|
}
|
|
5438
5352
|
|
|
5353
|
+
/**
|
|
5354
|
+
* This component applies a continuous physics force.
|
|
5355
|
+
*
|
|
5356
|
+
* @remarks Low-level component. Use Physics.applyForceToPlayer()/.removeForceToPlayer() instead.
|
|
5357
|
+
* Direct manipulation will conflict with the force accumulation registry.
|
|
5358
|
+
* Summary component: stores the accumulated result of all active forces registered by the scene in the current frame.
|
|
5359
|
+
*
|
|
5360
|
+
* State-like component: the force is applied every physics tick while the component is present on the entity.
|
|
5361
|
+
*/
|
|
5362
|
+
/**
|
|
5363
|
+
* @public
|
|
5364
|
+
*/
|
|
5365
|
+
export declare interface PBPhysicsCombinedForce {
|
|
5366
|
+
/** Includes force direction and magnitude */
|
|
5367
|
+
vector: PBVector3 | undefined;
|
|
5368
|
+
}
|
|
5369
|
+
|
|
5370
|
+
/**
|
|
5371
|
+
* @public
|
|
5372
|
+
*/
|
|
5373
|
+
export declare namespace PBPhysicsCombinedForce {
|
|
5374
|
+
export function encode(message: PBPhysicsCombinedForce, writer?: _m0.Writer): _m0.Writer;
|
|
5375
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPhysicsCombinedForce;
|
|
5376
|
+
}
|
|
5377
|
+
|
|
5378
|
+
/**
|
|
5379
|
+
* This component applies a one-shot physics summary impulse.
|
|
5380
|
+
*
|
|
5381
|
+
* @remarks Low-level component. Use Physics.applyImpulseToPlayer() instead.
|
|
5382
|
+
* Direct manipulation will conflict with the force accumulation registry.
|
|
5383
|
+
* Summary component: stores the accumulated result of all impulses registered by the scene in the current frame.
|
|
5384
|
+
*
|
|
5385
|
+
* Event-like component: each new impulse must increment the eventID to ensure delivery via CRDT, even if the direction is identical to the previous one.
|
|
5386
|
+
* Renderer processes impulse with the unique ID only once. Increase eventID of the component to apply another impulse.
|
|
5387
|
+
*/
|
|
5388
|
+
/**
|
|
5389
|
+
* @public
|
|
5390
|
+
*/
|
|
5391
|
+
export declare interface PBPhysicsCombinedImpulse {
|
|
5392
|
+
/** Includes impulse direction and magnitude */
|
|
5393
|
+
vector: PBVector3 | undefined;
|
|
5394
|
+
/** Monotonic counter to distinguish different impulses. */
|
|
5395
|
+
eventId: number;
|
|
5396
|
+
}
|
|
5397
|
+
|
|
5398
|
+
/**
|
|
5399
|
+
* @public
|
|
5400
|
+
*/
|
|
5401
|
+
export declare namespace PBPhysicsCombinedImpulse {
|
|
5402
|
+
export function encode(message: PBPhysicsCombinedImpulse, writer?: _m0.Writer): _m0.Writer;
|
|
5403
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPhysicsCombinedImpulse;
|
|
5404
|
+
}
|
|
5405
|
+
|
|
5439
5406
|
/**
|
|
5440
5407
|
* PlayerIdentityData is used to read the information about the avatar's
|
|
5441
5408
|
* identity. this component is written by the engine using the communications
|
|
@@ -6460,6 +6427,12 @@ export declare namespace PBVisibilityComponent {
|
|
|
6460
6427
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVisibilityComponent;
|
|
6461
6428
|
}
|
|
6462
6429
|
|
|
6430
|
+
/** @public */
|
|
6431
|
+
export declare const PhysicsCombinedForce: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>;
|
|
6432
|
+
|
|
6433
|
+
/** @public */
|
|
6434
|
+
export declare const PhysicsCombinedImpulse: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>;
|
|
6435
|
+
|
|
6463
6436
|
/**
|
|
6464
6437
|
* Represens a plane by the equation ax + by + cz + d = 0
|
|
6465
6438
|
* @public
|
|
@@ -8794,14 +8767,6 @@ export declare interface UiTransformProps {
|
|
|
8794
8767
|
*/
|
|
8795
8768
|
export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
8796
8769
|
|
|
8797
|
-
export declare type ValidateCallback<T> = (value: {
|
|
8798
|
-
entity: Entity;
|
|
8799
|
-
currentValue: T | undefined;
|
|
8800
|
-
newValue: T | undefined;
|
|
8801
|
-
senderAddress: string;
|
|
8802
|
-
createdBy: string;
|
|
8803
|
-
}) => boolean;
|
|
8804
|
-
|
|
8805
8770
|
/**
|
|
8806
8771
|
* @public
|
|
8807
8772
|
*/
|
package/dist/beta.d.ts
CHANGED
|
@@ -163,42 +163,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
|
|
|
163
163
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
164
164
|
}
|
|
165
165
|
|
|
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
166
|
/** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
|
|
203
167
|
/**
|
|
204
168
|
* @public
|
|
@@ -358,22 +322,6 @@ export declare interface BaseComponent<T> {
|
|
|
358
322
|
* If the value is undefined, the component was deleted.
|
|
359
323
|
*/
|
|
360
324
|
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
325
|
}
|
|
378
326
|
|
|
379
327
|
/** @public */
|
|
@@ -1396,6 +1344,8 @@ export declare const componentDefinitionByName: {
|
|
|
1396
1344
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
1397
1345
|
"core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
|
1398
1346
|
"core::NftShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
|
|
1347
|
+
"core::PhysicsCombinedForce": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
|
|
1348
|
+
"core::PhysicsCombinedImpulse": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
|
|
1399
1349
|
"core::PlayerIdentityData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
|
|
1400
1350
|
"core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
|
1401
1351
|
"core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
|
@@ -1582,12 +1532,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
|
1582
1532
|
/**
|
|
1583
1533
|
* @public
|
|
1584
1534
|
*/
|
|
1585
|
-
export declare type CrdtMessage = PutComponentMessage |
|
|
1535
|
+
export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
1586
1536
|
|
|
1587
1537
|
/**
|
|
1588
1538
|
* @public
|
|
1589
1539
|
*/
|
|
1590
|
-
export declare type CrdtMessageBody = PutComponentMessageBody |
|
|
1540
|
+
export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
1591
1541
|
|
|
1592
1542
|
/**
|
|
1593
1543
|
* Min length = 8 bytes
|
|
@@ -1642,8 +1592,7 @@ export declare enum CrdtMessageType {
|
|
|
1642
1592
|
PUT_COMPONENT_NETWORK = 5,
|
|
1643
1593
|
DELETE_COMPONENT_NETWORK = 6,
|
|
1644
1594
|
DELETE_ENTITY_NETWORK = 7,
|
|
1645
|
-
|
|
1646
|
-
MAX_MESSAGE_TYPE = 9
|
|
1595
|
+
MAX_MESSAGE_TYPE = 8
|
|
1647
1596
|
}
|
|
1648
1597
|
|
|
1649
1598
|
/**
|
|
@@ -1651,8 +1600,6 @@ export declare enum CrdtMessageType {
|
|
|
1651
1600
|
*/
|
|
1652
1601
|
export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
1653
1602
|
|
|
1654
|
-
export declare const CreatedBy: ICreatedBy;
|
|
1655
|
-
|
|
1656
1603
|
/**
|
|
1657
1604
|
* @public
|
|
1658
1605
|
*/
|
|
@@ -2345,12 +2292,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
|
|
|
2345
2292
|
|
|
2346
2293
|
export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
2347
2294
|
|
|
2348
|
-
export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
2349
|
-
|
|
2350
|
-
export declare interface ICreatedByType {
|
|
2351
|
-
address: string;
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
2295
|
/**
|
|
2355
2296
|
* @public
|
|
2356
2297
|
*/
|
|
@@ -2785,35 +2726,6 @@ export declare type InstanceCompositeOptions = {
|
|
|
2785
2726
|
alreadyRequestedSrc?: Set<string>;
|
|
2786
2727
|
};
|
|
2787
2728
|
|
|
2788
|
-
/**
|
|
2789
|
-
* Internal component interface that exposes all internal methods for SDK use
|
|
2790
|
-
* This is not exposed to users, only for internal SDK operations
|
|
2791
|
-
*/
|
|
2792
|
-
export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
2793
|
-
/**
|
|
2794
|
-
* @public
|
|
2795
|
-
* Dry run update to check if a CRDT message would be accepted without actually applying it
|
|
2796
|
-
*/
|
|
2797
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
2798
|
-
/**
|
|
2799
|
-
* @public
|
|
2800
|
-
* Get the iterator to every entity has the component
|
|
2801
|
-
*/
|
|
2802
|
-
iterator(): Iterable<[Entity, any]>;
|
|
2803
|
-
/**
|
|
2804
|
-
* @public
|
|
2805
|
-
*/
|
|
2806
|
-
dirtyIterator(): Iterable<Entity>;
|
|
2807
|
-
/**
|
|
2808
|
-
* @public
|
|
2809
|
-
*/
|
|
2810
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
2811
|
-
/**
|
|
2812
|
-
* @public
|
|
2813
|
-
*/
|
|
2814
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
2815
|
-
}
|
|
2816
|
-
|
|
2817
2729
|
/**
|
|
2818
2730
|
* @public
|
|
2819
2731
|
*/
|
|
@@ -4987,6 +4899,8 @@ export declare interface PBInputModifier_StandardInput {
|
|
|
4987
4899
|
disableRun?: boolean | undefined;
|
|
4988
4900
|
disableJump?: boolean | undefined;
|
|
4989
4901
|
disableEmote?: boolean | undefined;
|
|
4902
|
+
disableDoubleJump?: boolean | undefined;
|
|
4903
|
+
disableGliding?: boolean | undefined;
|
|
4990
4904
|
}
|
|
4991
4905
|
|
|
4992
4906
|
/**
|
|
@@ -5408,6 +5322,59 @@ export declare namespace PBNftShape {
|
|
|
5408
5322
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBNftShape;
|
|
5409
5323
|
}
|
|
5410
5324
|
|
|
5325
|
+
/**
|
|
5326
|
+
* This component applies a continuous physics force.
|
|
5327
|
+
*
|
|
5328
|
+
* @remarks Low-level component. Use Physics.applyForceToPlayer()/.removeForceToPlayer() instead.
|
|
5329
|
+
* Direct manipulation will conflict with the force accumulation registry.
|
|
5330
|
+
* Summary component: stores the accumulated result of all active forces registered by the scene in the current frame.
|
|
5331
|
+
*
|
|
5332
|
+
* State-like component: the force is applied every physics tick while the component is present on the entity.
|
|
5333
|
+
*/
|
|
5334
|
+
/**
|
|
5335
|
+
* @public
|
|
5336
|
+
*/
|
|
5337
|
+
export declare interface PBPhysicsCombinedForce {
|
|
5338
|
+
/** Includes force direction and magnitude */
|
|
5339
|
+
vector: PBVector3 | undefined;
|
|
5340
|
+
}
|
|
5341
|
+
|
|
5342
|
+
/**
|
|
5343
|
+
* @public
|
|
5344
|
+
*/
|
|
5345
|
+
export declare namespace PBPhysicsCombinedForce {
|
|
5346
|
+
export function encode(message: PBPhysicsCombinedForce, writer?: _m0.Writer): _m0.Writer;
|
|
5347
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPhysicsCombinedForce;
|
|
5348
|
+
}
|
|
5349
|
+
|
|
5350
|
+
/**
|
|
5351
|
+
* This component applies a one-shot physics summary impulse.
|
|
5352
|
+
*
|
|
5353
|
+
* @remarks Low-level component. Use Physics.applyImpulseToPlayer() instead.
|
|
5354
|
+
* Direct manipulation will conflict with the force accumulation registry.
|
|
5355
|
+
* Summary component: stores the accumulated result of all impulses registered by the scene in the current frame.
|
|
5356
|
+
*
|
|
5357
|
+
* Event-like component: each new impulse must increment the eventID to ensure delivery via CRDT, even if the direction is identical to the previous one.
|
|
5358
|
+
* Renderer processes impulse with the unique ID only once. Increase eventID of the component to apply another impulse.
|
|
5359
|
+
*/
|
|
5360
|
+
/**
|
|
5361
|
+
* @public
|
|
5362
|
+
*/
|
|
5363
|
+
export declare interface PBPhysicsCombinedImpulse {
|
|
5364
|
+
/** Includes impulse direction and magnitude */
|
|
5365
|
+
vector: PBVector3 | undefined;
|
|
5366
|
+
/** Monotonic counter to distinguish different impulses. */
|
|
5367
|
+
eventId: number;
|
|
5368
|
+
}
|
|
5369
|
+
|
|
5370
|
+
/**
|
|
5371
|
+
* @public
|
|
5372
|
+
*/
|
|
5373
|
+
export declare namespace PBPhysicsCombinedImpulse {
|
|
5374
|
+
export function encode(message: PBPhysicsCombinedImpulse, writer?: _m0.Writer): _m0.Writer;
|
|
5375
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPhysicsCombinedImpulse;
|
|
5376
|
+
}
|
|
5377
|
+
|
|
5411
5378
|
/**
|
|
5412
5379
|
* PlayerIdentityData is used to read the information about the avatar's
|
|
5413
5380
|
* identity. this component is written by the engine using the communications
|
|
@@ -6432,6 +6399,12 @@ export declare namespace PBVisibilityComponent {
|
|
|
6432
6399
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVisibilityComponent;
|
|
6433
6400
|
}
|
|
6434
6401
|
|
|
6402
|
+
/** @public */
|
|
6403
|
+
export declare const PhysicsCombinedForce: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>;
|
|
6404
|
+
|
|
6405
|
+
/** @public */
|
|
6406
|
+
export declare const PhysicsCombinedImpulse: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>;
|
|
6407
|
+
|
|
6435
6408
|
/**
|
|
6436
6409
|
* Represens a plane by the equation ax + by + cz + d = 0
|
|
6437
6410
|
* @public
|
|
@@ -8761,14 +8734,6 @@ export declare interface UiTransformProps {
|
|
|
8761
8734
|
*/
|
|
8762
8735
|
export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
8763
8736
|
|
|
8764
|
-
export declare type ValidateCallback<T> = (value: {
|
|
8765
|
-
entity: Entity;
|
|
8766
|
-
currentValue: T | undefined;
|
|
8767
|
-
newValue: T | undefined;
|
|
8768
|
-
senderAddress: string;
|
|
8769
|
-
createdBy: string;
|
|
8770
|
-
}) => boolean;
|
|
8771
|
-
|
|
8772
8737
|
/**
|
|
8773
8738
|
* @public
|
|
8774
8739
|
*/
|