@dcl/playground-assets 7.22.4 → 7.22.5-24779418349.commit-111fd7e
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 +98 -511
- package/dist/beta.d.ts +98 -511
- package/dist/index.bundled.d.ts +98 -511
- package/dist/index.js +9 -9
- package/dist/index.js.map +8 -0
- package/dist/playground/sdk/apis.d.ts +0 -5
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground/snippets/pointer-events.ts +7 -14
- package/dist/playground-assets.d.ts +98 -511
- package/dist/tsdoc-metadata.json +1 -1
- package/etc/playground-assets.api.json +6008 -10356
- package/etc/playground-assets.api.md +75 -307
- package/package.json +6 -5
|
@@ -94,6 +94,29 @@ export interface AudioStreamComponentDefinitionExtended extends LastWriteWinElem
|
|
|
94
94
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
95
95
|
}
|
|
96
96
|
|
|
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
|
+
|
|
97
120
|
// @public (undocumented)
|
|
98
121
|
export const enum AvatarAnchorPointType {
|
|
99
122
|
// (undocumented)
|
|
@@ -208,12 +231,20 @@ export interface BaseComponent<T> {
|
|
|
208
231
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
209
232
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
210
233
|
get(entity: Entity): any;
|
|
234
|
+
getCrdtState(entity: Entity): {
|
|
235
|
+
data: Uint8Array;
|
|
236
|
+
timestamp: number;
|
|
237
|
+
} | null;
|
|
211
238
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
212
239
|
has(entity: Entity): boolean;
|
|
213
240
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
214
241
|
// (undocumented)
|
|
215
242
|
readonly schema: ISchema<T>;
|
|
216
243
|
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;
|
|
217
248
|
}
|
|
218
249
|
|
|
219
250
|
// @public (undocumented)
|
|
@@ -610,22 +641,6 @@ export type Color4Type = {
|
|
|
610
641
|
a: number;
|
|
611
642
|
};
|
|
612
643
|
|
|
613
|
-
// @public (undocumented)
|
|
614
|
-
export interface ColorRange {
|
|
615
|
-
// (undocumented)
|
|
616
|
-
end: PBColor4 | undefined;
|
|
617
|
-
// (undocumented)
|
|
618
|
-
start: PBColor4 | undefined;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
// @public (undocumented)
|
|
622
|
-
export namespace ColorRange {
|
|
623
|
-
// (undocumented)
|
|
624
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): ColorRange;
|
|
625
|
-
// (undocumented)
|
|
626
|
-
export function encode(message: ColorRange, writer?: _m0.Writer): _m0.Writer;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
644
|
// @public (undocumented)
|
|
630
645
|
export interface ComponentData {
|
|
631
646
|
// (undocumented)
|
|
@@ -683,7 +698,6 @@ export const componentDefinitionByName: {
|
|
|
683
698
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
684
699
|
"core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
|
685
700
|
"core::NftShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
|
|
686
|
-
"core::ParticleSystem": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBParticleSystem>>;
|
|
687
701
|
"core::PhysicsCombinedForce": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
|
|
688
702
|
"core::PhysicsCombinedImpulse": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
|
|
689
703
|
"core::PlayerIdentityData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
|
|
@@ -843,10 +857,10 @@ export type Coords = {
|
|
|
843
857
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
844
858
|
|
|
845
859
|
// @public (undocumented)
|
|
846
|
-
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
860
|
+
export type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
847
861
|
|
|
848
862
|
// @public (undocumented)
|
|
849
|
-
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
863
|
+
export type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
850
864
|
|
|
851
865
|
// @public
|
|
852
866
|
export type CrdtMessageHeader = {
|
|
@@ -867,6 +881,8 @@ export enum CrdtMessageType {
|
|
|
867
881
|
// (undocumented)
|
|
868
882
|
APPEND_VALUE = 4,
|
|
869
883
|
// (undocumented)
|
|
884
|
+
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
885
|
+
// (undocumented)
|
|
870
886
|
DELETE_COMPONENT = 2,
|
|
871
887
|
// (undocumented)
|
|
872
888
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -875,7 +891,7 @@ export enum CrdtMessageType {
|
|
|
875
891
|
// (undocumented)
|
|
876
892
|
DELETE_ENTITY_NETWORK = 7,
|
|
877
893
|
// (undocumented)
|
|
878
|
-
MAX_MESSAGE_TYPE =
|
|
894
|
+
MAX_MESSAGE_TYPE = 9,
|
|
879
895
|
// (undocumented)
|
|
880
896
|
PUT_COMPONENT = 1,
|
|
881
897
|
// (undocumented)
|
|
@@ -887,6 +903,11 @@ export enum CrdtMessageType {
|
|
|
887
903
|
// @public (undocumented)
|
|
888
904
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
889
905
|
|
|
906
|
+
// 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)
|
|
907
|
+
//
|
|
908
|
+
// @public (undocumented)
|
|
909
|
+
export const CreatedBy: ICreatedBy;
|
|
910
|
+
|
|
890
911
|
// @public (undocumented)
|
|
891
912
|
export function createEntityContainer(opts?: {
|
|
892
913
|
reservedStaticEntities: number;
|
|
@@ -1198,7 +1219,6 @@ export type EventSystemOptions = {
|
|
|
1198
1219
|
showFeedback?: boolean;
|
|
1199
1220
|
showHighlight?: boolean;
|
|
1200
1221
|
maxPlayerDistance?: number;
|
|
1201
|
-
priority?: number;
|
|
1202
1222
|
};
|
|
1203
1223
|
|
|
1204
1224
|
// @public
|
|
@@ -1245,22 +1265,6 @@ export type FlexWrapType = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
|
1245
1265
|
// @public (undocumented)
|
|
1246
1266
|
export type FloatArray = number[];
|
|
1247
1267
|
|
|
1248
|
-
// @public (undocumented)
|
|
1249
|
-
export interface FloatRange {
|
|
1250
|
-
// (undocumented)
|
|
1251
|
-
end: number;
|
|
1252
|
-
// (undocumented)
|
|
1253
|
-
start: number;
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
// @public (undocumented)
|
|
1257
|
-
export namespace FloatRange {
|
|
1258
|
-
// (undocumented)
|
|
1259
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): FloatRange;
|
|
1260
|
-
// (undocumented)
|
|
1261
|
-
export function encode(message: FloatRange, writer?: _m0.Writer): _m0.Writer;
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
1268
|
// @public (undocumented)
|
|
1265
1269
|
export const enum Font {
|
|
1266
1270
|
// (undocumented)
|
|
@@ -1342,6 +1346,19 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1342
1346
|
// @public (undocumented)
|
|
1343
1347
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1344
1348
|
|
|
1349
|
+
// 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)
|
|
1350
|
+
//
|
|
1351
|
+
// @public (undocumented)
|
|
1352
|
+
export type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
1353
|
+
|
|
1354
|
+
// 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)
|
|
1355
|
+
//
|
|
1356
|
+
// @public (undocumented)
|
|
1357
|
+
export interface ICreatedByType {
|
|
1358
|
+
// (undocumented)
|
|
1359
|
+
address: string;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1345
1362
|
// @public (undocumented)
|
|
1346
1363
|
export interface IEngine {
|
|
1347
1364
|
addEntity(): Entity;
|
|
@@ -1581,12 +1598,18 @@ export type InstanceCompositeOptions = {
|
|
|
1581
1598
|
alreadyRequestedSrc?: Set<string>;
|
|
1582
1599
|
};
|
|
1583
1600
|
|
|
1584
|
-
// @public
|
|
1585
|
-
|
|
1601
|
+
// 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)
|
|
1602
|
+
//
|
|
1603
|
+
// @public
|
|
1604
|
+
export interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
1605
|
+
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
1606
|
+
// (undocumented)
|
|
1607
|
+
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
1586
1608
|
// (undocumented)
|
|
1587
|
-
|
|
1609
|
+
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
1588
1610
|
// (undocumented)
|
|
1589
|
-
|
|
1611
|
+
dirtyIterator(): Iterable<Entity>;
|
|
1612
|
+
iterator(): Iterable<[Entity, any]>;
|
|
1590
1613
|
}
|
|
1591
1614
|
|
|
1592
1615
|
// @public (undocumented)
|
|
@@ -1663,13 +1686,6 @@ export type JustifyType = 'flex-start' | 'center' | 'flex-end' | 'space-between'
|
|
|
1663
1686
|
// @public
|
|
1664
1687
|
export type Key = number | string;
|
|
1665
1688
|
|
|
1666
|
-
// @public
|
|
1667
|
-
export enum KnockbackFalloff {
|
|
1668
|
-
CONSTANT = 0,
|
|
1669
|
-
INVERSE_SQUARE = 2,
|
|
1670
|
-
LINEAR = 1
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
1689
|
// Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
|
|
1674
1690
|
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
|
|
1675
1691
|
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
|
|
@@ -2273,24 +2289,6 @@ export const onVideoEvent: Observable<{
|
|
|
2273
2289
|
// @public
|
|
2274
2290
|
export type OverflowType = 'hidden' | 'scroll' | 'visible';
|
|
2275
2291
|
|
|
2276
|
-
// Warning: (ae-missing-release-tag) "ParticleSystem" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2277
|
-
//
|
|
2278
|
-
// @public (undocumented)
|
|
2279
|
-
export const ParticleSystem: ParticleSystemComponentDefinitionExtended;
|
|
2280
|
-
|
|
2281
|
-
// @public (undocumented)
|
|
2282
|
-
export interface ParticleSystemComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBParticleSystem> {
|
|
2283
|
-
Shape: ParticleSystemHelper;
|
|
2284
|
-
}
|
|
2285
|
-
|
|
2286
|
-
// @public (undocumented)
|
|
2287
|
-
export interface ParticleSystemHelper {
|
|
2288
|
-
Box: (box?: PBParticleSystem_Box) => PBParticleSystem['shape'];
|
|
2289
|
-
Cone: (cone?: PBParticleSystem_Cone) => PBParticleSystem['shape'];
|
|
2290
|
-
Point: (point?: PBParticleSystem_Point) => PBParticleSystem['shape'];
|
|
2291
|
-
Sphere: (sphere?: PBParticleSystem_Sphere) => PBParticleSystem['shape'];
|
|
2292
|
-
}
|
|
2293
|
-
|
|
2294
2292
|
// @public (undocumented)
|
|
2295
2293
|
export interface PBAnimationState {
|
|
2296
2294
|
clip: string;
|
|
@@ -3007,198 +3005,6 @@ export namespace PBNftShape {
|
|
|
3007
3005
|
export function encode(message: PBNftShape, writer?: _m0.Writer): _m0.Writer;
|
|
3008
3006
|
}
|
|
3009
3007
|
|
|
3010
|
-
// @public (undocumented)
|
|
3011
|
-
export interface PBParticleSystem {
|
|
3012
|
-
active?: boolean | undefined;
|
|
3013
|
-
additionalForce?: PBVector3 | undefined;
|
|
3014
|
-
billboard?: boolean | undefined;
|
|
3015
|
-
blendMode?: PBParticleSystem_BlendMode | undefined;
|
|
3016
|
-
bursts?: PBParticleSystem_BurstConfiguration | undefined;
|
|
3017
|
-
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
|
|
3018
|
-
// Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
|
|
3019
|
-
colorOverTime?: ColorRange | undefined;
|
|
3020
|
-
faceTravelDirection?: boolean | undefined;
|
|
3021
|
-
gravity?: number | undefined;
|
|
3022
|
-
initialColor?: ColorRange | undefined;
|
|
3023
|
-
initialRotation?: PBQuaternion | undefined;
|
|
3024
|
-
initialSize?: FloatRange | undefined;
|
|
3025
|
-
initialVelocitySpeed?: FloatRange | undefined;
|
|
3026
|
-
lifetime?: number | undefined;
|
|
3027
|
-
limitVelocity?: PBParticleSystem_LimitVelocity | undefined;
|
|
3028
|
-
loop?: boolean | undefined;
|
|
3029
|
-
maxParticles?: number | undefined;
|
|
3030
|
-
playbackState?: PBParticleSystem_PlaybackState | undefined;
|
|
3031
|
-
prewarm?: boolean | undefined;
|
|
3032
|
-
rate?: number | undefined;
|
|
3033
|
-
rotationOverTime?: PBQuaternion | undefined;
|
|
3034
|
-
// (undocumented)
|
|
3035
|
-
shape?: {
|
|
3036
|
-
$case: "point";
|
|
3037
|
-
point: PBParticleSystem_Point;
|
|
3038
|
-
} | {
|
|
3039
|
-
$case: "sphere";
|
|
3040
|
-
sphere: PBParticleSystem_Sphere;
|
|
3041
|
-
} | {
|
|
3042
|
-
$case: "cone";
|
|
3043
|
-
cone: PBParticleSystem_Cone;
|
|
3044
|
-
} | {
|
|
3045
|
-
$case: "box";
|
|
3046
|
-
box: PBParticleSystem_Box;
|
|
3047
|
-
} | undefined;
|
|
3048
|
-
simulationSpace?: PBParticleSystem_SimulationSpace | undefined;
|
|
3049
|
-
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
|
|
3050
|
-
// Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
|
|
3051
|
-
sizeOverTime?: FloatRange | undefined;
|
|
3052
|
-
spriteSheet?: PBParticleSystem_SpriteSheetAnimation | undefined;
|
|
3053
|
-
texture?: Texture | undefined;
|
|
3054
|
-
}
|
|
3055
|
-
|
|
3056
|
-
// @public (undocumented)
|
|
3057
|
-
export namespace PBParticleSystem {
|
|
3058
|
-
// (undocumented)
|
|
3059
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem;
|
|
3060
|
-
// (undocumented)
|
|
3061
|
-
export function encode(message: PBParticleSystem, writer?: _m0.Writer): _m0.Writer;
|
|
3062
|
-
}
|
|
3063
|
-
|
|
3064
|
-
// @public (undocumented)
|
|
3065
|
-
const enum PBParticleSystem_BlendMode {
|
|
3066
|
-
PSB_ADD = 1,
|
|
3067
|
-
PSB_ALPHA = 0,
|
|
3068
|
-
PSB_MULTIPLY = 2
|
|
3069
|
-
}
|
|
3070
|
-
export { PBParticleSystem_BlendMode }
|
|
3071
|
-
export { PBParticleSystem_BlendMode as ParticleSystemBlendMode }
|
|
3072
|
-
|
|
3073
|
-
// @public (undocumented)
|
|
3074
|
-
export interface PBParticleSystem_Box {
|
|
3075
|
-
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
|
|
3076
|
-
// Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
|
|
3077
|
-
size?: PBVector3 | undefined;
|
|
3078
|
-
}
|
|
3079
|
-
|
|
3080
|
-
// @public (undocumented)
|
|
3081
|
-
export namespace PBParticleSystem_Box {
|
|
3082
|
-
// (undocumented)
|
|
3083
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Box;
|
|
3084
|
-
// (undocumented)
|
|
3085
|
-
export function encode(message: PBParticleSystem_Box, writer?: _m0.Writer): _m0.Writer;
|
|
3086
|
-
}
|
|
3087
|
-
|
|
3088
|
-
// @public (undocumented)
|
|
3089
|
-
export interface PBParticleSystem_Burst {
|
|
3090
|
-
count: number;
|
|
3091
|
-
cycles?: number | undefined;
|
|
3092
|
-
interval?: number | undefined;
|
|
3093
|
-
probability?: number | undefined;
|
|
3094
|
-
time: number;
|
|
3095
|
-
}
|
|
3096
|
-
|
|
3097
|
-
// @public (undocumented)
|
|
3098
|
-
export namespace PBParticleSystem_Burst {
|
|
3099
|
-
// (undocumented)
|
|
3100
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Burst;
|
|
3101
|
-
// (undocumented)
|
|
3102
|
-
export function encode(message: PBParticleSystem_Burst, writer?: _m0.Writer): _m0.Writer;
|
|
3103
|
-
}
|
|
3104
|
-
|
|
3105
|
-
// @public (undocumented)
|
|
3106
|
-
export interface PBParticleSystem_BurstConfiguration {
|
|
3107
|
-
// (undocumented)
|
|
3108
|
-
values: PBParticleSystem_Burst[];
|
|
3109
|
-
}
|
|
3110
|
-
|
|
3111
|
-
// @public (undocumented)
|
|
3112
|
-
export namespace PBParticleSystem_BurstConfiguration {
|
|
3113
|
-
// (undocumented)
|
|
3114
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_BurstConfiguration;
|
|
3115
|
-
// (undocumented)
|
|
3116
|
-
export function encode(message: PBParticleSystem_BurstConfiguration, writer?: _m0.Writer): _m0.Writer;
|
|
3117
|
-
}
|
|
3118
|
-
|
|
3119
|
-
// @public (undocumented)
|
|
3120
|
-
export interface PBParticleSystem_Cone {
|
|
3121
|
-
angle?: number | undefined;
|
|
3122
|
-
radius?: number | undefined;
|
|
3123
|
-
}
|
|
3124
|
-
|
|
3125
|
-
// @public (undocumented)
|
|
3126
|
-
export namespace PBParticleSystem_Cone {
|
|
3127
|
-
// (undocumented)
|
|
3128
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Cone;
|
|
3129
|
-
// (undocumented)
|
|
3130
|
-
export function encode(message: PBParticleSystem_Cone, writer?: _m0.Writer): _m0.Writer;
|
|
3131
|
-
}
|
|
3132
|
-
|
|
3133
|
-
// @public (undocumented)
|
|
3134
|
-
export interface PBParticleSystem_LimitVelocity {
|
|
3135
|
-
dampen?: number | undefined;
|
|
3136
|
-
speed: number;
|
|
3137
|
-
}
|
|
3138
|
-
|
|
3139
|
-
// @public (undocumented)
|
|
3140
|
-
export namespace PBParticleSystem_LimitVelocity {
|
|
3141
|
-
// (undocumented)
|
|
3142
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_LimitVelocity;
|
|
3143
|
-
// (undocumented)
|
|
3144
|
-
export function encode(message: PBParticleSystem_LimitVelocity, writer?: _m0.Writer): _m0.Writer;
|
|
3145
|
-
}
|
|
3146
|
-
|
|
3147
|
-
// @public (undocumented)
|
|
3148
|
-
const enum PBParticleSystem_PlaybackState {
|
|
3149
|
-
PS_PAUSED = 1,
|
|
3150
|
-
PS_PLAYING = 0,
|
|
3151
|
-
PS_STOPPED = 2
|
|
3152
|
-
}
|
|
3153
|
-
export { PBParticleSystem_PlaybackState }
|
|
3154
|
-
export { PBParticleSystem_PlaybackState as ParticleSystemPlaybackState }
|
|
3155
|
-
|
|
3156
|
-
// @public (undocumented)
|
|
3157
|
-
export interface PBParticleSystem_Point {
|
|
3158
|
-
}
|
|
3159
|
-
|
|
3160
|
-
// @public (undocumented)
|
|
3161
|
-
export namespace PBParticleSystem_Point {
|
|
3162
|
-
// (undocumented)
|
|
3163
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Point;
|
|
3164
|
-
// (undocumented)
|
|
3165
|
-
export function encode(_: PBParticleSystem_Point, writer?: _m0.Writer): _m0.Writer;
|
|
3166
|
-
}
|
|
3167
|
-
|
|
3168
|
-
// @public (undocumented)
|
|
3169
|
-
export const enum PBParticleSystem_SimulationSpace {
|
|
3170
|
-
PSS_LOCAL = 0,
|
|
3171
|
-
PSS_WORLD = 1
|
|
3172
|
-
}
|
|
3173
|
-
|
|
3174
|
-
// @public (undocumented)
|
|
3175
|
-
export interface PBParticleSystem_Sphere {
|
|
3176
|
-
radius?: number | undefined;
|
|
3177
|
-
}
|
|
3178
|
-
|
|
3179
|
-
// @public (undocumented)
|
|
3180
|
-
export namespace PBParticleSystem_Sphere {
|
|
3181
|
-
// (undocumented)
|
|
3182
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Sphere;
|
|
3183
|
-
// (undocumented)
|
|
3184
|
-
export function encode(message: PBParticleSystem_Sphere, writer?: _m0.Writer): _m0.Writer;
|
|
3185
|
-
}
|
|
3186
|
-
|
|
3187
|
-
// @public (undocumented)
|
|
3188
|
-
export interface PBParticleSystem_SpriteSheetAnimation {
|
|
3189
|
-
framesPerSecond?: number | undefined;
|
|
3190
|
-
tilesX: number;
|
|
3191
|
-
tilesY: number;
|
|
3192
|
-
}
|
|
3193
|
-
|
|
3194
|
-
// @public (undocumented)
|
|
3195
|
-
export namespace PBParticleSystem_SpriteSheetAnimation {
|
|
3196
|
-
// (undocumented)
|
|
3197
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_SpriteSheetAnimation;
|
|
3198
|
-
// (undocumented)
|
|
3199
|
-
export function encode(message: PBParticleSystem_SpriteSheetAnimation, writer?: _m0.Writer): _m0.Writer;
|
|
3200
|
-
}
|
|
3201
|
-
|
|
3202
3008
|
// @public (undocumented)
|
|
3203
3009
|
export interface PBPhysicsCombinedForce {
|
|
3204
3010
|
vector: PBVector3 | undefined;
|
|
@@ -3258,7 +3064,6 @@ export namespace PBPointerEvents {
|
|
|
3258
3064
|
export interface PBPointerEvents_Entry {
|
|
3259
3065
|
eventInfo: PBPointerEvents_Info | undefined;
|
|
3260
3066
|
eventType: PointerEventType;
|
|
3261
|
-
interactionType?: InteractionType | undefined;
|
|
3262
3067
|
}
|
|
3263
3068
|
|
|
3264
3069
|
// @public (undocumented)
|
|
@@ -3275,7 +3080,6 @@ export interface PBPointerEvents_Info {
|
|
|
3275
3080
|
hoverText?: string | undefined;
|
|
3276
3081
|
maxDistance?: number | undefined;
|
|
3277
3082
|
maxPlayerDistance?: number | undefined;
|
|
3278
|
-
priority?: number | undefined;
|
|
3279
3083
|
showFeedback?: boolean | undefined;
|
|
3280
3084
|
showHighlight?: boolean | undefined;
|
|
3281
3085
|
}
|
|
@@ -3968,31 +3772,12 @@ export namespace PBVisibilityComponent {
|
|
|
3968
3772
|
export function encode(message: PBVisibilityComponent, writer?: _m0.Writer): _m0.Writer;
|
|
3969
3773
|
}
|
|
3970
3774
|
|
|
3971
|
-
// @public
|
|
3972
|
-
export const Physics: PhysicsSystem;
|
|
3973
|
-
|
|
3974
3775
|
// @public (undocumented)
|
|
3975
3776
|
export const PhysicsCombinedForce: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>;
|
|
3976
3777
|
|
|
3977
3778
|
// @public (undocumented)
|
|
3978
3779
|
export const PhysicsCombinedImpulse: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>;
|
|
3979
3780
|
|
|
3980
|
-
// @public (undocumented)
|
|
3981
|
-
export interface PhysicsSystem {
|
|
3982
|
-
applyForceToPlayer(source: Entity, vector: Vector3Type): void;
|
|
3983
|
-
// (undocumented)
|
|
3984
|
-
applyForceToPlayer(source: Entity, direction: Vector3Type, magnitude: number): void;
|
|
3985
|
-
applyForceToPlayerForDuration(source: Entity, duration: number, vector: Vector3Type): void;
|
|
3986
|
-
// (undocumented)
|
|
3987
|
-
applyForceToPlayerForDuration(source: Entity, duration: number, direction: Vector3Type, magnitude: number): void;
|
|
3988
|
-
applyImpulseToPlayer(vector: Vector3Type): void;
|
|
3989
|
-
// (undocumented)
|
|
3990
|
-
applyImpulseToPlayer(direction: Vector3Type, magnitude: number): void;
|
|
3991
|
-
applyKnockbackToPlayer(fromPosition: Vector3Type, magnitude: number, radius?: number, falloff?: KnockbackFalloff): void;
|
|
3992
|
-
applyRepulsionForceToPlayer(source: Entity, fromPosition: Vector3Type, magnitude: number, radius?: number, falloff?: KnockbackFalloff): void;
|
|
3993
|
-
removeForceFromPlayer(source: Entity): void;
|
|
3994
|
-
}
|
|
3995
|
-
|
|
3996
3781
|
// @public
|
|
3997
3782
|
export namespace Plane {
|
|
3998
3783
|
// (undocumented)
|
|
@@ -4058,30 +3843,10 @@ export interface PointerEventsSystem {
|
|
|
4058
3843
|
}, cb: EventSystemCallback): void;
|
|
4059
3844
|
// @deprecated (undocumented)
|
|
4060
3845
|
onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
4061
|
-
onProximityDown(pointerData: {
|
|
4062
|
-
entity: Entity;
|
|
4063
|
-
opts?: Partial<EventSystemOptions>;
|
|
4064
|
-
}, cb: EventSystemCallback): void;
|
|
4065
|
-
onProximityEnter(pointerData: {
|
|
4066
|
-
entity: Entity;
|
|
4067
|
-
opts?: Partial<EventSystemOptions>;
|
|
4068
|
-
}, cb: EventSystemCallback): void;
|
|
4069
|
-
onProximityLeave(pointerData: {
|
|
4070
|
-
entity: Entity;
|
|
4071
|
-
opts?: Partial<EventSystemOptions>;
|
|
4072
|
-
}, cb: EventSystemCallback): void;
|
|
4073
|
-
onProximityUp(pointerData: {
|
|
4074
|
-
entity: Entity;
|
|
4075
|
-
opts?: Partial<EventSystemOptions>;
|
|
4076
|
-
}, cb: EventSystemCallback): void;
|
|
4077
3846
|
removeOnPointerDown(entity: Entity): void;
|
|
4078
3847
|
removeOnPointerHoverEnter(entity: Entity): void;
|
|
4079
3848
|
removeOnPointerHoverLeave(entity: Entity): void;
|
|
4080
3849
|
removeOnPointerUp(entity: Entity): void;
|
|
4081
|
-
removeOnProximityDown(entity: Entity): void;
|
|
4082
|
-
removeOnProximityEnter(entity: Entity): void;
|
|
4083
|
-
removeOnProximityLeave(entity: Entity): void;
|
|
4084
|
-
removeOnProximityUp(entity: Entity): void;
|
|
4085
3850
|
}
|
|
4086
3851
|
|
|
4087
3852
|
// @public
|
|
@@ -4096,10 +3861,6 @@ export const enum PointerEventType {
|
|
|
4096
3861
|
// (undocumented)
|
|
4097
3862
|
PET_HOVER_LEAVE = 3,
|
|
4098
3863
|
// (undocumented)
|
|
4099
|
-
PET_PROXIMITY_ENTER = 4,
|
|
4100
|
-
// (undocumented)
|
|
4101
|
-
PET_PROXIMITY_LEAVE = 5,
|
|
4102
|
-
// (undocumented)
|
|
4103
3864
|
PET_UP = 0
|
|
4104
3865
|
}
|
|
4105
3866
|
|
|
@@ -4530,9 +4291,6 @@ export namespace RotateContinuous {
|
|
|
4530
4291
|
export function encode(message: RotateContinuous, writer?: _m0.Writer): _m0.Writer;
|
|
4531
4292
|
}
|
|
4532
4293
|
|
|
4533
|
-
// @public
|
|
4534
|
-
export function rotateVectorByQuaternion(v: Vector3Type, q: QuaternionType): Vector3Type;
|
|
4535
|
-
|
|
4536
4294
|
// Warning: (ae-missing-release-tag) "RPCSendableMessage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
4537
4295
|
//
|
|
4538
4296
|
// @public (undocumented)
|
|
@@ -4946,7 +4704,6 @@ export interface TransformComponentExtended extends TransformComponent {
|
|
|
4946
4704
|
create(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
|
|
4947
4705
|
// (undocumented)
|
|
4948
4706
|
createOrReplace(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
|
|
4949
|
-
localToWorldDirection(entity: Entity, localDirection: Vector3Type): Vector3Type;
|
|
4950
4707
|
}
|
|
4951
4708
|
|
|
4952
4709
|
// @public (undocumented)
|
|
@@ -5265,6 +5022,17 @@ export interface UiTransformProps {
|
|
|
5265
5022
|
// @public (undocumented)
|
|
5266
5023
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5267
5024
|
|
|
5025
|
+
// 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)
|
|
5026
|
+
//
|
|
5027
|
+
// @public (undocumented)
|
|
5028
|
+
export type ValidateCallback<T> = (value: {
|
|
5029
|
+
entity: Entity;
|
|
5030
|
+
currentValue: T | undefined;
|
|
5031
|
+
newValue: T | undefined;
|
|
5032
|
+
senderAddress: string;
|
|
5033
|
+
createdBy: string;
|
|
5034
|
+
}) => boolean;
|
|
5035
|
+
|
|
5268
5036
|
// @public (undocumented)
|
|
5269
5037
|
export type ValueSetOptions<T> = {
|
|
5270
5038
|
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.22.
|
|
4
|
+
"version": "7.22.5-24779418349.commit-111fd7e",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.22.
|
|
8
|
-
"@dcl/sdk": "7.22.
|
|
7
|
+
"@dcl/js-runtime": "7.22.5-24779418349.commit-111fd7e",
|
|
8
|
+
"@dcl/sdk": "7.22.5-24779418349.commit-111fd7e"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@microsoft/api-extractor": "^7.33.8"
|
|
@@ -25,12 +25,13 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "npm run build-playground && node_modules/.bin/api-extractor run",
|
|
27
27
|
"build-local": "npm run build-playground && node_modules/.bin/api-extractor run --local --verbose --diagnostics",
|
|
28
|
-
"build-playground": "./../sdk-commands/dist/index.js build --production --emitDeclaration --customEntryPoint"
|
|
28
|
+
"build-playground": "./../sdk-commands/dist/index.js build --production --emitDeclaration --customEntryPoint",
|
|
29
|
+
"server-logs": "sdk-commands sdk-server-logs"
|
|
29
30
|
},
|
|
30
31
|
"tsdoc": {
|
|
31
32
|
"tsdocFlavor": "AEDoc"
|
|
32
33
|
},
|
|
33
34
|
"types": "./dist/index.d.ts",
|
|
34
35
|
"typings": "./dist/index.d.ts",
|
|
35
|
-
"commit": "
|
|
36
|
+
"commit": "111fd7e0b0b0fff32756dcb79c342b97a2565a45"
|
|
36
37
|
}
|