@dcl/playground-assets 7.22.5-24836126953.commit-ddc8da1 → 7.22.5
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 +511 -98
- package/dist/beta.d.ts +511 -98
- package/dist/index.bundled.d.ts +511 -98
- package/dist/index.js +9 -9
- package/dist/playground/sdk/apis.d.ts +5 -0
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground/snippets/pointer-events.ts +14 -7
- package/dist/playground-assets.d.ts +511 -98
- package/etc/playground-assets.api.json +10304 -5956
- package/etc/playground-assets.api.md +307 -75
- package/package.json +5 -6
- package/dist/index.js.map +0 -8
|
@@ -94,29 +94,6 @@ 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
|
-
|
|
120
97
|
// @public (undocumented)
|
|
121
98
|
export const enum AvatarAnchorPointType {
|
|
122
99
|
// (undocumented)
|
|
@@ -231,20 +208,12 @@ export interface BaseComponent<T> {
|
|
|
231
208
|
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
232
209
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
233
210
|
get(entity: Entity): any;
|
|
234
|
-
getCrdtState(entity: Entity): {
|
|
235
|
-
data: Uint8Array;
|
|
236
|
-
timestamp: number;
|
|
237
|
-
} | null;
|
|
238
211
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
239
212
|
has(entity: Entity): boolean;
|
|
240
213
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
241
214
|
// (undocumented)
|
|
242
215
|
readonly schema: ISchema<T>;
|
|
243
216
|
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
217
|
}
|
|
249
218
|
|
|
250
219
|
// @public (undocumented)
|
|
@@ -641,6 +610,22 @@ export type Color4Type = {
|
|
|
641
610
|
a: number;
|
|
642
611
|
};
|
|
643
612
|
|
|
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
|
+
|
|
644
629
|
// @public (undocumented)
|
|
645
630
|
export interface ComponentData {
|
|
646
631
|
// (undocumented)
|
|
@@ -698,6 +683,7 @@ export const componentDefinitionByName: {
|
|
|
698
683
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
699
684
|
"core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
|
700
685
|
"core::NftShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
|
|
686
|
+
"core::ParticleSystem": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBParticleSystem>>;
|
|
701
687
|
"core::PhysicsCombinedForce": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
|
|
702
688
|
"core::PhysicsCombinedImpulse": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
|
|
703
689
|
"core::PlayerIdentityData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
|
|
@@ -857,10 +843,10 @@ export type Coords = {
|
|
|
857
843
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
858
844
|
|
|
859
845
|
// @public (undocumented)
|
|
860
|
-
export type CrdtMessage = PutComponentMessage |
|
|
846
|
+
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
861
847
|
|
|
862
848
|
// @public (undocumented)
|
|
863
|
-
export type CrdtMessageBody = PutComponentMessageBody |
|
|
849
|
+
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
864
850
|
|
|
865
851
|
// @public
|
|
866
852
|
export type CrdtMessageHeader = {
|
|
@@ -881,8 +867,6 @@ export enum CrdtMessageType {
|
|
|
881
867
|
// (undocumented)
|
|
882
868
|
APPEND_VALUE = 4,
|
|
883
869
|
// (undocumented)
|
|
884
|
-
AUTHORITATIVE_PUT_COMPONENT = 8,
|
|
885
|
-
// (undocumented)
|
|
886
870
|
DELETE_COMPONENT = 2,
|
|
887
871
|
// (undocumented)
|
|
888
872
|
DELETE_COMPONENT_NETWORK = 6,
|
|
@@ -891,7 +875,7 @@ export enum CrdtMessageType {
|
|
|
891
875
|
// (undocumented)
|
|
892
876
|
DELETE_ENTITY_NETWORK = 7,
|
|
893
877
|
// (undocumented)
|
|
894
|
-
MAX_MESSAGE_TYPE =
|
|
878
|
+
MAX_MESSAGE_TYPE = 8,
|
|
895
879
|
// (undocumented)
|
|
896
880
|
PUT_COMPONENT = 1,
|
|
897
881
|
// (undocumented)
|
|
@@ -903,11 +887,6 @@ export enum CrdtMessageType {
|
|
|
903
887
|
// @public (undocumented)
|
|
904
888
|
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
905
889
|
|
|
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
|
-
|
|
911
890
|
// @public (undocumented)
|
|
912
891
|
export function createEntityContainer(opts?: {
|
|
913
892
|
reservedStaticEntities: number;
|
|
@@ -1219,6 +1198,7 @@ export type EventSystemOptions = {
|
|
|
1219
1198
|
showFeedback?: boolean;
|
|
1220
1199
|
showHighlight?: boolean;
|
|
1221
1200
|
maxPlayerDistance?: number;
|
|
1201
|
+
priority?: number;
|
|
1222
1202
|
};
|
|
1223
1203
|
|
|
1224
1204
|
// @public
|
|
@@ -1265,6 +1245,22 @@ export type FlexWrapType = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
|
1265
1245
|
// @public (undocumented)
|
|
1266
1246
|
export type FloatArray = number[];
|
|
1267
1247
|
|
|
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
|
+
|
|
1268
1264
|
// @public (undocumented)
|
|
1269
1265
|
export const enum Font {
|
|
1270
1266
|
// (undocumented)
|
|
@@ -1346,19 +1342,6 @@ export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T>
|
|
|
1346
1342
|
// @public (undocumented)
|
|
1347
1343
|
export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
1348
1344
|
|
|
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
|
-
|
|
1362
1345
|
// @public (undocumented)
|
|
1363
1346
|
export interface IEngine {
|
|
1364
1347
|
addEntity(): Entity;
|
|
@@ -1598,18 +1581,12 @@ export type InstanceCompositeOptions = {
|
|
|
1598
1581
|
alreadyRequestedSrc?: Set<string>;
|
|
1599
1582
|
};
|
|
1600
1583
|
|
|
1601
|
-
//
|
|
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;
|
|
1584
|
+
// @public (undocumented)
|
|
1585
|
+
export const enum InteractionType {
|
|
1608
1586
|
// (undocumented)
|
|
1609
|
-
|
|
1587
|
+
CURSOR = 0,
|
|
1610
1588
|
// (undocumented)
|
|
1611
|
-
|
|
1612
|
-
iterator(): Iterable<[Entity, any]>;
|
|
1589
|
+
PROXIMITY = 1
|
|
1613
1590
|
}
|
|
1614
1591
|
|
|
1615
1592
|
// @public (undocumented)
|
|
@@ -1686,6 +1663,13 @@ export type JustifyType = 'flex-start' | 'center' | 'flex-end' | 'space-between'
|
|
|
1686
1663
|
// @public
|
|
1687
1664
|
export type Key = number | string;
|
|
1688
1665
|
|
|
1666
|
+
// @public
|
|
1667
|
+
export enum KnockbackFalloff {
|
|
1668
|
+
CONSTANT = 0,
|
|
1669
|
+
INVERSE_SQUARE = 2,
|
|
1670
|
+
LINEAR = 1
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1689
1673
|
// Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
|
|
1690
1674
|
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
|
|
1691
1675
|
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
|
|
@@ -2289,6 +2273,24 @@ export const onVideoEvent: Observable<{
|
|
|
2289
2273
|
// @public
|
|
2290
2274
|
export type OverflowType = 'hidden' | 'scroll' | 'visible';
|
|
2291
2275
|
|
|
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
|
+
|
|
2292
2294
|
// @public (undocumented)
|
|
2293
2295
|
export interface PBAnimationState {
|
|
2294
2296
|
clip: string;
|
|
@@ -3005,6 +3007,198 @@ export namespace PBNftShape {
|
|
|
3005
3007
|
export function encode(message: PBNftShape, writer?: _m0.Writer): _m0.Writer;
|
|
3006
3008
|
}
|
|
3007
3009
|
|
|
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
|
+
|
|
3008
3202
|
// @public (undocumented)
|
|
3009
3203
|
export interface PBPhysicsCombinedForce {
|
|
3010
3204
|
vector: PBVector3 | undefined;
|
|
@@ -3064,6 +3258,7 @@ export namespace PBPointerEvents {
|
|
|
3064
3258
|
export interface PBPointerEvents_Entry {
|
|
3065
3259
|
eventInfo: PBPointerEvents_Info | undefined;
|
|
3066
3260
|
eventType: PointerEventType;
|
|
3261
|
+
interactionType?: InteractionType | undefined;
|
|
3067
3262
|
}
|
|
3068
3263
|
|
|
3069
3264
|
// @public (undocumented)
|
|
@@ -3080,6 +3275,7 @@ export interface PBPointerEvents_Info {
|
|
|
3080
3275
|
hoverText?: string | undefined;
|
|
3081
3276
|
maxDistance?: number | undefined;
|
|
3082
3277
|
maxPlayerDistance?: number | undefined;
|
|
3278
|
+
priority?: number | undefined;
|
|
3083
3279
|
showFeedback?: boolean | undefined;
|
|
3084
3280
|
showHighlight?: boolean | undefined;
|
|
3085
3281
|
}
|
|
@@ -3772,12 +3968,31 @@ export namespace PBVisibilityComponent {
|
|
|
3772
3968
|
export function encode(message: PBVisibilityComponent, writer?: _m0.Writer): _m0.Writer;
|
|
3773
3969
|
}
|
|
3774
3970
|
|
|
3971
|
+
// @public
|
|
3972
|
+
export const Physics: PhysicsSystem;
|
|
3973
|
+
|
|
3775
3974
|
// @public (undocumented)
|
|
3776
3975
|
export const PhysicsCombinedForce: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>;
|
|
3777
3976
|
|
|
3778
3977
|
// @public (undocumented)
|
|
3779
3978
|
export const PhysicsCombinedImpulse: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>;
|
|
3780
3979
|
|
|
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
|
+
|
|
3781
3996
|
// @public
|
|
3782
3997
|
export namespace Plane {
|
|
3783
3998
|
// (undocumented)
|
|
@@ -3843,10 +4058,30 @@ export interface PointerEventsSystem {
|
|
|
3843
4058
|
}, cb: EventSystemCallback): void;
|
|
3844
4059
|
// @deprecated (undocumented)
|
|
3845
4060
|
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;
|
|
3846
4077
|
removeOnPointerDown(entity: Entity): void;
|
|
3847
4078
|
removeOnPointerHoverEnter(entity: Entity): void;
|
|
3848
4079
|
removeOnPointerHoverLeave(entity: Entity): void;
|
|
3849
4080
|
removeOnPointerUp(entity: Entity): void;
|
|
4081
|
+
removeOnProximityDown(entity: Entity): void;
|
|
4082
|
+
removeOnProximityEnter(entity: Entity): void;
|
|
4083
|
+
removeOnProximityLeave(entity: Entity): void;
|
|
4084
|
+
removeOnProximityUp(entity: Entity): void;
|
|
3850
4085
|
}
|
|
3851
4086
|
|
|
3852
4087
|
// @public
|
|
@@ -3861,6 +4096,10 @@ export const enum PointerEventType {
|
|
|
3861
4096
|
// (undocumented)
|
|
3862
4097
|
PET_HOVER_LEAVE = 3,
|
|
3863
4098
|
// (undocumented)
|
|
4099
|
+
PET_PROXIMITY_ENTER = 4,
|
|
4100
|
+
// (undocumented)
|
|
4101
|
+
PET_PROXIMITY_LEAVE = 5,
|
|
4102
|
+
// (undocumented)
|
|
3864
4103
|
PET_UP = 0
|
|
3865
4104
|
}
|
|
3866
4105
|
|
|
@@ -4291,6 +4530,9 @@ export namespace RotateContinuous {
|
|
|
4291
4530
|
export function encode(message: RotateContinuous, writer?: _m0.Writer): _m0.Writer;
|
|
4292
4531
|
}
|
|
4293
4532
|
|
|
4533
|
+
// @public
|
|
4534
|
+
export function rotateVectorByQuaternion(v: Vector3Type, q: QuaternionType): Vector3Type;
|
|
4535
|
+
|
|
4294
4536
|
// 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)
|
|
4295
4537
|
//
|
|
4296
4538
|
// @public (undocumented)
|
|
@@ -4704,6 +4946,7 @@ export interface TransformComponentExtended extends TransformComponent {
|
|
|
4704
4946
|
create(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
|
|
4705
4947
|
// (undocumented)
|
|
4706
4948
|
createOrReplace(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
|
|
4949
|
+
localToWorldDirection(entity: Entity, localDirection: Vector3Type): Vector3Type;
|
|
4707
4950
|
}
|
|
4708
4951
|
|
|
4709
4952
|
// @public (undocumented)
|
|
@@ -5022,17 +5265,6 @@ export interface UiTransformProps {
|
|
|
5022
5265
|
// @public (undocumented)
|
|
5023
5266
|
export type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5024
5267
|
|
|
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
|
-
|
|
5036
5268
|
// @public (undocumented)
|
|
5037
5269
|
export type ValueSetOptions<T> = {
|
|
5038
5270
|
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.5
|
|
4
|
+
"version": "7.22.5",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.22.5
|
|
8
|
-
"@dcl/sdk": "7.22.5
|
|
7
|
+
"@dcl/js-runtime": "7.22.5",
|
|
8
|
+
"@dcl/sdk": "7.22.5"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@microsoft/api-extractor": "^7.33.8"
|
|
@@ -25,13 +25,12 @@
|
|
|
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"
|
|
29
|
-
"server-logs": "sdk-commands sdk-server-logs"
|
|
28
|
+
"build-playground": "./../sdk-commands/dist/index.js build --production --emitDeclaration --customEntryPoint"
|
|
30
29
|
},
|
|
31
30
|
"tsdoc": {
|
|
32
31
|
"tsdocFlavor": "AEDoc"
|
|
33
32
|
},
|
|
34
33
|
"types": "./dist/index.d.ts",
|
|
35
34
|
"typings": "./dist/index.d.ts",
|
|
36
|
-
"commit": "
|
|
35
|
+
"commit": "b6da827dbab8b88795119b50ab578d457e552d0c"
|
|
37
36
|
}
|