@dcl/playground-assets 7.22.3-24033264917.commit-024caa7 → 7.22.3-24081083817.commit-714809b
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 +305 -0
- package/dist/beta.d.ts +305 -0
- package/dist/index.bundled.d.ts +305 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/apis.d.ts +5 -0
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +305 -0
- package/etc/playground-assets.api.json +3568 -51
- package/etc/playground-assets.api.md +229 -0
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
|
@@ -1288,6 +1288,23 @@ export declare type Color4Type = {
|
|
|
1288
1288
|
a: number;
|
|
1289
1289
|
};
|
|
1290
1290
|
|
|
1291
|
+
/** A range of Color4 values. Randomized or lerped between start and end. */
|
|
1292
|
+
/**
|
|
1293
|
+
* @public
|
|
1294
|
+
*/
|
|
1295
|
+
export declare interface ColorRange {
|
|
1296
|
+
start: PBColor4 | undefined;
|
|
1297
|
+
end: PBColor4 | undefined;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
/**
|
|
1301
|
+
* @public
|
|
1302
|
+
*/
|
|
1303
|
+
export declare namespace ColorRange {
|
|
1304
|
+
export function encode(message: ColorRange, writer?: _m0.Writer): _m0.Writer;
|
|
1305
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ColorRange;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1291
1308
|
/**
|
|
1292
1309
|
* @public
|
|
1293
1310
|
*/
|
|
@@ -1344,6 +1361,7 @@ export declare const componentDefinitionByName: {
|
|
|
1344
1361
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
1345
1362
|
"core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
|
1346
1363
|
"core::NftShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
|
|
1364
|
+
"core::ParticleSystem": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBParticleSystem>>;
|
|
1347
1365
|
"core::PhysicsCombinedForce": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
|
|
1348
1366
|
"core::PhysicsCombinedImpulse": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
|
|
1349
1367
|
"core::PlayerIdentityData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
|
|
@@ -2148,6 +2166,23 @@ export declare type FlexWrapType = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
|
2148
2166
|
/** @public */
|
|
2149
2167
|
export declare type FloatArray = number[];
|
|
2150
2168
|
|
|
2169
|
+
/** A range of float values. Randomized or lerped between start and end. */
|
|
2170
|
+
/**
|
|
2171
|
+
* @public
|
|
2172
|
+
*/
|
|
2173
|
+
export declare interface FloatRange {
|
|
2174
|
+
start: number;
|
|
2175
|
+
end: number;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
/**
|
|
2179
|
+
* @public
|
|
2180
|
+
*/
|
|
2181
|
+
export declare namespace FloatRange {
|
|
2182
|
+
export function encode(message: FloatRange, writer?: _m0.Writer): _m0.Writer;
|
|
2183
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): FloatRange;
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2151
2186
|
/**
|
|
2152
2187
|
* @public
|
|
2153
2188
|
*/
|
|
@@ -4373,6 +4408,30 @@ export declare const onVideoEvent: Observable<{
|
|
|
4373
4408
|
*/
|
|
4374
4409
|
export declare type OverflowType = 'hidden' | 'scroll' | 'visible';
|
|
4375
4410
|
|
|
4411
|
+
export declare const ParticleSystem: ParticleSystemComponentDefinitionExtended;
|
|
4412
|
+
|
|
4413
|
+
/**
|
|
4414
|
+
* @public
|
|
4415
|
+
*/
|
|
4416
|
+
export declare interface ParticleSystemComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBParticleSystem> {
|
|
4417
|
+
/** Helpers for constructing emitter shapes */
|
|
4418
|
+
Shape: ParticleSystemHelper;
|
|
4419
|
+
}
|
|
4420
|
+
|
|
4421
|
+
/**
|
|
4422
|
+
* @public
|
|
4423
|
+
*/
|
|
4424
|
+
export declare interface ParticleSystemHelper {
|
|
4425
|
+
/** Emit from a single point */
|
|
4426
|
+
Point: (point?: PBParticleSystem_Point) => PBParticleSystem['shape'];
|
|
4427
|
+
/** Emit from the surface or volume of a sphere */
|
|
4428
|
+
Sphere: (sphere?: PBParticleSystem_Sphere) => PBParticleSystem['shape'];
|
|
4429
|
+
/** Emit from the base of a cone, projecting outward */
|
|
4430
|
+
Cone: (cone?: PBParticleSystem_Cone) => PBParticleSystem['shape'];
|
|
4431
|
+
/** Emit from the surface or volume of a box */
|
|
4432
|
+
Box: (box?: PBParticleSystem_Box) => PBParticleSystem['shape'];
|
|
4433
|
+
}
|
|
4434
|
+
|
|
4376
4435
|
/** AnimationState indicates the status and configuration of one available animation. */
|
|
4377
4436
|
/**
|
|
4378
4437
|
* @public
|
|
@@ -5424,6 +5483,252 @@ export declare namespace PBNftShape {
|
|
|
5424
5483
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBNftShape;
|
|
5425
5484
|
}
|
|
5426
5485
|
|
|
5486
|
+
/**
|
|
5487
|
+
* @public
|
|
5488
|
+
*/
|
|
5489
|
+
export declare interface PBParticleSystem {
|
|
5490
|
+
/** --- Emission --- */
|
|
5491
|
+
active?: boolean | undefined;
|
|
5492
|
+
/** default = 10. Particles emitted per second. */
|
|
5493
|
+
rate?: number | undefined;
|
|
5494
|
+
/** default = 1000. Maximum number of live particles. */
|
|
5495
|
+
maxParticles?: number | undefined;
|
|
5496
|
+
/** default = 5. Particle lifetime in seconds. */
|
|
5497
|
+
lifetime?: number | undefined;
|
|
5498
|
+
/** --- Motion --- */
|
|
5499
|
+
gravity?: number | undefined;
|
|
5500
|
+
/** Constant force vector applied to each particle (world space). */
|
|
5501
|
+
additionalForce?: PBVector3 | undefined;
|
|
5502
|
+
/** --- Size --- */
|
|
5503
|
+
initialSize?: FloatRange | undefined;
|
|
5504
|
+
/** default = {1, 1}. Particle size lerped from start to end over its lifetime. */
|
|
5505
|
+
sizeOverTime?: FloatRange | undefined;
|
|
5506
|
+
/** --- Rotation --- */
|
|
5507
|
+
initialRotation?: PBQuaternion | undefined;
|
|
5508
|
+
/** default = identity (0,0,0,1). Per-axis angular velocity as quaternion; converted to Euler XYZ. */
|
|
5509
|
+
rotationOverTime?: PBQuaternion | undefined;
|
|
5510
|
+
/** default = false. Particles orient along their velocity direction. */
|
|
5511
|
+
faceTravelDirection?: boolean | undefined;
|
|
5512
|
+
/** --- Color --- */
|
|
5513
|
+
initialColor?: ColorRange | undefined;
|
|
5514
|
+
/** default = {white, white}. Particle color lerped from start to end over its lifetime. */
|
|
5515
|
+
colorOverTime?: ColorRange | undefined;
|
|
5516
|
+
/** --- Velocity --- */
|
|
5517
|
+
initialVelocitySpeed?: FloatRange | undefined;
|
|
5518
|
+
/** --- Rendering --- */
|
|
5519
|
+
texture?: Texture | undefined;
|
|
5520
|
+
/** default = PSB_ALPHA */
|
|
5521
|
+
blendMode?: PBParticleSystem_BlendMode | undefined;
|
|
5522
|
+
/** default = true */
|
|
5523
|
+
billboard?: boolean | undefined;
|
|
5524
|
+
/** --- Sprite Sheet Animation --- */
|
|
5525
|
+
spriteSheet?: PBParticleSystem_SpriteSheetAnimation | undefined;
|
|
5526
|
+
shape?: {
|
|
5527
|
+
$case: "point";
|
|
5528
|
+
point: PBParticleSystem_Point;
|
|
5529
|
+
} | {
|
|
5530
|
+
$case: "sphere";
|
|
5531
|
+
sphere: PBParticleSystem_Sphere;
|
|
5532
|
+
} | {
|
|
5533
|
+
$case: "cone";
|
|
5534
|
+
cone: PBParticleSystem_Cone;
|
|
5535
|
+
} | {
|
|
5536
|
+
$case: "box";
|
|
5537
|
+
box: PBParticleSystem_Box;
|
|
5538
|
+
} | undefined;
|
|
5539
|
+
/** --- Simulation --- */
|
|
5540
|
+
loop?: boolean | undefined;
|
|
5541
|
+
/** default = false. Start as if already simulated for one full loop cycle. Requires loop = true. */
|
|
5542
|
+
prewarm?: boolean | undefined;
|
|
5543
|
+
/** default = PSS_LOCAL. Controls whether particles simulate in local or world space. */
|
|
5544
|
+
simulationSpace?: PBParticleSystem_SimulationSpace | undefined;
|
|
5545
|
+
/** --- Limit Velocity Over Lifetime --- */
|
|
5546
|
+
limitVelocity?: PBParticleSystem_LimitVelocity | undefined;
|
|
5547
|
+
/** --- Playback --- */
|
|
5548
|
+
playbackState?: PBParticleSystem_PlaybackState | undefined;
|
|
5549
|
+
/** --- Emission Bursts --- */
|
|
5550
|
+
bursts: PBParticleSystem_Burst[];
|
|
5551
|
+
}
|
|
5552
|
+
|
|
5553
|
+
/**
|
|
5554
|
+
* @public
|
|
5555
|
+
*/
|
|
5556
|
+
export declare namespace PBParticleSystem {
|
|
5557
|
+
export function encode(message: PBParticleSystem, writer?: _m0.Writer): _m0.Writer;
|
|
5558
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem;
|
|
5559
|
+
}
|
|
5560
|
+
|
|
5561
|
+
/**
|
|
5562
|
+
* @public
|
|
5563
|
+
*/
|
|
5564
|
+
declare const enum PBParticleSystem_BlendMode {
|
|
5565
|
+
/** PSB_ALPHA - Standard alpha transparency. */
|
|
5566
|
+
PSB_ALPHA = 0,
|
|
5567
|
+
/** PSB_ADD - Additive blending (brightens underlying pixels). */
|
|
5568
|
+
PSB_ADD = 1,
|
|
5569
|
+
/** PSB_MULTIPLY - Multiply blending (darkens underlying pixels). */
|
|
5570
|
+
PSB_MULTIPLY = 2
|
|
5571
|
+
}
|
|
5572
|
+
export { PBParticleSystem_BlendMode }
|
|
5573
|
+
export { PBParticleSystem_BlendMode as ParticleSystemBlendMode }
|
|
5574
|
+
|
|
5575
|
+
/** Emitter spawns particles from the surface or volume of a box. */
|
|
5576
|
+
/**
|
|
5577
|
+
* @public
|
|
5578
|
+
*/
|
|
5579
|
+
export declare interface PBParticleSystem_Box {
|
|
5580
|
+
/** default = {1, 1, 1} */
|
|
5581
|
+
size?: PBVector3 | undefined;
|
|
5582
|
+
}
|
|
5583
|
+
|
|
5584
|
+
/**
|
|
5585
|
+
* @public
|
|
5586
|
+
*/
|
|
5587
|
+
export declare namespace PBParticleSystem_Box {
|
|
5588
|
+
export function encode(message: PBParticleSystem_Box, writer?: _m0.Writer): _m0.Writer;
|
|
5589
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Box;
|
|
5590
|
+
}
|
|
5591
|
+
|
|
5592
|
+
/** Emission burst configuration. */
|
|
5593
|
+
/**
|
|
5594
|
+
* @public
|
|
5595
|
+
*/
|
|
5596
|
+
export declare interface PBParticleSystem_Burst {
|
|
5597
|
+
/** Seconds from start of cycle. */
|
|
5598
|
+
time: number;
|
|
5599
|
+
/** Particles to emit. */
|
|
5600
|
+
count: number;
|
|
5601
|
+
/** default = 1. Repeat count (0 = infinite). */
|
|
5602
|
+
cycles?: number | undefined;
|
|
5603
|
+
/** default = 0.01. Seconds between cycles. */
|
|
5604
|
+
interval?: number | undefined;
|
|
5605
|
+
/** default = 1.0. Emission chance [0,1]. */
|
|
5606
|
+
probability?: number | undefined;
|
|
5607
|
+
}
|
|
5608
|
+
|
|
5609
|
+
/**
|
|
5610
|
+
* @public
|
|
5611
|
+
*/
|
|
5612
|
+
export declare namespace PBParticleSystem_Burst {
|
|
5613
|
+
export function encode(message: PBParticleSystem_Burst, writer?: _m0.Writer): _m0.Writer;
|
|
5614
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Burst;
|
|
5615
|
+
}
|
|
5616
|
+
|
|
5617
|
+
/** Emitter spawns particles from the base of a cone and projects them outward. */
|
|
5618
|
+
/**
|
|
5619
|
+
* @public
|
|
5620
|
+
*/
|
|
5621
|
+
export declare interface PBParticleSystem_Cone {
|
|
5622
|
+
/** default = 25. Half-angle of the cone in degrees. */
|
|
5623
|
+
angle?: number | undefined;
|
|
5624
|
+
/** default = 1. Base radius in meters. */
|
|
5625
|
+
radius?: number | undefined;
|
|
5626
|
+
}
|
|
5627
|
+
|
|
5628
|
+
/**
|
|
5629
|
+
* @public
|
|
5630
|
+
*/
|
|
5631
|
+
export declare namespace PBParticleSystem_Cone {
|
|
5632
|
+
export function encode(message: PBParticleSystem_Cone, writer?: _m0.Writer): _m0.Writer;
|
|
5633
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Cone;
|
|
5634
|
+
}
|
|
5635
|
+
|
|
5636
|
+
/** Clamps particle speed over lifetime. */
|
|
5637
|
+
/**
|
|
5638
|
+
* @public
|
|
5639
|
+
*/
|
|
5640
|
+
export declare interface PBParticleSystem_LimitVelocity {
|
|
5641
|
+
/** Maximum particle speed (m/s). */
|
|
5642
|
+
speed: number;
|
|
5643
|
+
/** default = 1. Fraction (0–1) of excess velocity removed per frame. 1 = hard clamp. */
|
|
5644
|
+
dampen?: number | undefined;
|
|
5645
|
+
}
|
|
5646
|
+
|
|
5647
|
+
/**
|
|
5648
|
+
* @public
|
|
5649
|
+
*/
|
|
5650
|
+
export declare namespace PBParticleSystem_LimitVelocity {
|
|
5651
|
+
export function encode(message: PBParticleSystem_LimitVelocity, writer?: _m0.Writer): _m0.Writer;
|
|
5652
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_LimitVelocity;
|
|
5653
|
+
}
|
|
5654
|
+
|
|
5655
|
+
/**
|
|
5656
|
+
* @public
|
|
5657
|
+
*/
|
|
5658
|
+
declare const enum PBParticleSystem_PlaybackState {
|
|
5659
|
+
/** PS_PLAYING - Particle system is emitting and simulating. */
|
|
5660
|
+
PS_PLAYING = 0,
|
|
5661
|
+
/** PS_PAUSED - Simulation is frozen; no new particles are emitted. */
|
|
5662
|
+
PS_PAUSED = 1,
|
|
5663
|
+
/** PS_STOPPED - Simulation stopped and existing particles cleared. */
|
|
5664
|
+
PS_STOPPED = 2
|
|
5665
|
+
}
|
|
5666
|
+
export { PBParticleSystem_PlaybackState }
|
|
5667
|
+
export { PBParticleSystem_PlaybackState as ParticleSystemPlaybackState }
|
|
5668
|
+
|
|
5669
|
+
/** Emitter spawns particles from a single point. */
|
|
5670
|
+
/**
|
|
5671
|
+
* @public
|
|
5672
|
+
*/
|
|
5673
|
+
export declare interface PBParticleSystem_Point {
|
|
5674
|
+
}
|
|
5675
|
+
|
|
5676
|
+
/**
|
|
5677
|
+
* @public
|
|
5678
|
+
*/
|
|
5679
|
+
export declare namespace PBParticleSystem_Point {
|
|
5680
|
+
export function encode(_: PBParticleSystem_Point, writer?: _m0.Writer): _m0.Writer;
|
|
5681
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Point;
|
|
5682
|
+
}
|
|
5683
|
+
|
|
5684
|
+
/**
|
|
5685
|
+
* @public
|
|
5686
|
+
*/
|
|
5687
|
+
export declare const enum PBParticleSystem_SimulationSpace {
|
|
5688
|
+
/** PSS_LOCAL - Particles move with the entity transform. */
|
|
5689
|
+
PSS_LOCAL = 0,
|
|
5690
|
+
/** PSS_WORLD - Particles stay in world position after emission. */
|
|
5691
|
+
PSS_WORLD = 1
|
|
5692
|
+
}
|
|
5693
|
+
|
|
5694
|
+
/** Emitter spawns particles from the surface or volume of a sphere. */
|
|
5695
|
+
/**
|
|
5696
|
+
* @public
|
|
5697
|
+
*/
|
|
5698
|
+
export declare interface PBParticleSystem_Sphere {
|
|
5699
|
+
/** default = 1 */
|
|
5700
|
+
radius?: number | undefined;
|
|
5701
|
+
}
|
|
5702
|
+
|
|
5703
|
+
/**
|
|
5704
|
+
* @public
|
|
5705
|
+
*/
|
|
5706
|
+
export declare namespace PBParticleSystem_Sphere {
|
|
5707
|
+
export function encode(message: PBParticleSystem_Sphere, writer?: _m0.Writer): _m0.Writer;
|
|
5708
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Sphere;
|
|
5709
|
+
}
|
|
5710
|
+
|
|
5711
|
+
/** Sprite sheet (texture atlas) animation settings. */
|
|
5712
|
+
/**
|
|
5713
|
+
* @public
|
|
5714
|
+
*/
|
|
5715
|
+
export declare interface PBParticleSystem_SpriteSheetAnimation {
|
|
5716
|
+
/** Number of columns in the sprite sheet. */
|
|
5717
|
+
tilesX: number;
|
|
5718
|
+
/** Number of rows in the sprite sheet. */
|
|
5719
|
+
tilesY: number;
|
|
5720
|
+
/** default = 30. Playback speed in frames per second. */
|
|
5721
|
+
framesPerSecond?: number | undefined;
|
|
5722
|
+
}
|
|
5723
|
+
|
|
5724
|
+
/**
|
|
5725
|
+
* @public
|
|
5726
|
+
*/
|
|
5727
|
+
export declare namespace PBParticleSystem_SpriteSheetAnimation {
|
|
5728
|
+
export function encode(message: PBParticleSystem_SpriteSheetAnimation, writer?: _m0.Writer): _m0.Writer;
|
|
5729
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_SpriteSheetAnimation;
|
|
5730
|
+
}
|
|
5731
|
+
|
|
5427
5732
|
/**
|
|
5428
5733
|
* This component applies a continuous physics force.
|
|
5429
5734
|
*
|
package/dist/beta.d.ts
CHANGED
|
@@ -1288,6 +1288,23 @@ export declare type Color4Type = {
|
|
|
1288
1288
|
a: number;
|
|
1289
1289
|
};
|
|
1290
1290
|
|
|
1291
|
+
/** A range of Color4 values. Randomized or lerped between start and end. */
|
|
1292
|
+
/**
|
|
1293
|
+
* @public
|
|
1294
|
+
*/
|
|
1295
|
+
export declare interface ColorRange {
|
|
1296
|
+
start: PBColor4 | undefined;
|
|
1297
|
+
end: PBColor4 | undefined;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
/**
|
|
1301
|
+
* @public
|
|
1302
|
+
*/
|
|
1303
|
+
export declare namespace ColorRange {
|
|
1304
|
+
export function encode(message: ColorRange, writer?: _m0.Writer): _m0.Writer;
|
|
1305
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ColorRange;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1291
1308
|
/**
|
|
1292
1309
|
* @public
|
|
1293
1310
|
*/
|
|
@@ -1344,6 +1361,7 @@ export declare const componentDefinitionByName: {
|
|
|
1344
1361
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
1345
1362
|
"core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
|
1346
1363
|
"core::NftShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
|
|
1364
|
+
"core::ParticleSystem": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBParticleSystem>>;
|
|
1347
1365
|
"core::PhysicsCombinedForce": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
|
|
1348
1366
|
"core::PhysicsCombinedImpulse": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
|
|
1349
1367
|
"core::PlayerIdentityData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
|
|
@@ -2148,6 +2166,23 @@ export declare type FlexWrapType = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
|
2148
2166
|
/** @public */
|
|
2149
2167
|
export declare type FloatArray = number[];
|
|
2150
2168
|
|
|
2169
|
+
/** A range of float values. Randomized or lerped between start and end. */
|
|
2170
|
+
/**
|
|
2171
|
+
* @public
|
|
2172
|
+
*/
|
|
2173
|
+
export declare interface FloatRange {
|
|
2174
|
+
start: number;
|
|
2175
|
+
end: number;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
/**
|
|
2179
|
+
* @public
|
|
2180
|
+
*/
|
|
2181
|
+
export declare namespace FloatRange {
|
|
2182
|
+
export function encode(message: FloatRange, writer?: _m0.Writer): _m0.Writer;
|
|
2183
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): FloatRange;
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2151
2186
|
/**
|
|
2152
2187
|
* @public
|
|
2153
2188
|
*/
|
|
@@ -4345,6 +4380,30 @@ export declare const onVideoEvent: Observable<{
|
|
|
4345
4380
|
*/
|
|
4346
4381
|
export declare type OverflowType = 'hidden' | 'scroll' | 'visible';
|
|
4347
4382
|
|
|
4383
|
+
export declare const ParticleSystem: ParticleSystemComponentDefinitionExtended;
|
|
4384
|
+
|
|
4385
|
+
/**
|
|
4386
|
+
* @public
|
|
4387
|
+
*/
|
|
4388
|
+
export declare interface ParticleSystemComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBParticleSystem> {
|
|
4389
|
+
/** Helpers for constructing emitter shapes */
|
|
4390
|
+
Shape: ParticleSystemHelper;
|
|
4391
|
+
}
|
|
4392
|
+
|
|
4393
|
+
/**
|
|
4394
|
+
* @public
|
|
4395
|
+
*/
|
|
4396
|
+
export declare interface ParticleSystemHelper {
|
|
4397
|
+
/** Emit from a single point */
|
|
4398
|
+
Point: (point?: PBParticleSystem_Point) => PBParticleSystem['shape'];
|
|
4399
|
+
/** Emit from the surface or volume of a sphere */
|
|
4400
|
+
Sphere: (sphere?: PBParticleSystem_Sphere) => PBParticleSystem['shape'];
|
|
4401
|
+
/** Emit from the base of a cone, projecting outward */
|
|
4402
|
+
Cone: (cone?: PBParticleSystem_Cone) => PBParticleSystem['shape'];
|
|
4403
|
+
/** Emit from the surface or volume of a box */
|
|
4404
|
+
Box: (box?: PBParticleSystem_Box) => PBParticleSystem['shape'];
|
|
4405
|
+
}
|
|
4406
|
+
|
|
4348
4407
|
/** AnimationState indicates the status and configuration of one available animation. */
|
|
4349
4408
|
/**
|
|
4350
4409
|
* @public
|
|
@@ -5396,6 +5455,252 @@ export declare namespace PBNftShape {
|
|
|
5396
5455
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBNftShape;
|
|
5397
5456
|
}
|
|
5398
5457
|
|
|
5458
|
+
/**
|
|
5459
|
+
* @public
|
|
5460
|
+
*/
|
|
5461
|
+
export declare interface PBParticleSystem {
|
|
5462
|
+
/** --- Emission --- */
|
|
5463
|
+
active?: boolean | undefined;
|
|
5464
|
+
/** default = 10. Particles emitted per second. */
|
|
5465
|
+
rate?: number | undefined;
|
|
5466
|
+
/** default = 1000. Maximum number of live particles. */
|
|
5467
|
+
maxParticles?: number | undefined;
|
|
5468
|
+
/** default = 5. Particle lifetime in seconds. */
|
|
5469
|
+
lifetime?: number | undefined;
|
|
5470
|
+
/** --- Motion --- */
|
|
5471
|
+
gravity?: number | undefined;
|
|
5472
|
+
/** Constant force vector applied to each particle (world space). */
|
|
5473
|
+
additionalForce?: PBVector3 | undefined;
|
|
5474
|
+
/** --- Size --- */
|
|
5475
|
+
initialSize?: FloatRange | undefined;
|
|
5476
|
+
/** default = {1, 1}. Particle size lerped from start to end over its lifetime. */
|
|
5477
|
+
sizeOverTime?: FloatRange | undefined;
|
|
5478
|
+
/** --- Rotation --- */
|
|
5479
|
+
initialRotation?: PBQuaternion | undefined;
|
|
5480
|
+
/** default = identity (0,0,0,1). Per-axis angular velocity as quaternion; converted to Euler XYZ. */
|
|
5481
|
+
rotationOverTime?: PBQuaternion | undefined;
|
|
5482
|
+
/** default = false. Particles orient along their velocity direction. */
|
|
5483
|
+
faceTravelDirection?: boolean | undefined;
|
|
5484
|
+
/** --- Color --- */
|
|
5485
|
+
initialColor?: ColorRange | undefined;
|
|
5486
|
+
/** default = {white, white}. Particle color lerped from start to end over its lifetime. */
|
|
5487
|
+
colorOverTime?: ColorRange | undefined;
|
|
5488
|
+
/** --- Velocity --- */
|
|
5489
|
+
initialVelocitySpeed?: FloatRange | undefined;
|
|
5490
|
+
/** --- Rendering --- */
|
|
5491
|
+
texture?: Texture | undefined;
|
|
5492
|
+
/** default = PSB_ALPHA */
|
|
5493
|
+
blendMode?: PBParticleSystem_BlendMode | undefined;
|
|
5494
|
+
/** default = true */
|
|
5495
|
+
billboard?: boolean | undefined;
|
|
5496
|
+
/** --- Sprite Sheet Animation --- */
|
|
5497
|
+
spriteSheet?: PBParticleSystem_SpriteSheetAnimation | undefined;
|
|
5498
|
+
shape?: {
|
|
5499
|
+
$case: "point";
|
|
5500
|
+
point: PBParticleSystem_Point;
|
|
5501
|
+
} | {
|
|
5502
|
+
$case: "sphere";
|
|
5503
|
+
sphere: PBParticleSystem_Sphere;
|
|
5504
|
+
} | {
|
|
5505
|
+
$case: "cone";
|
|
5506
|
+
cone: PBParticleSystem_Cone;
|
|
5507
|
+
} | {
|
|
5508
|
+
$case: "box";
|
|
5509
|
+
box: PBParticleSystem_Box;
|
|
5510
|
+
} | undefined;
|
|
5511
|
+
/** --- Simulation --- */
|
|
5512
|
+
loop?: boolean | undefined;
|
|
5513
|
+
/** default = false. Start as if already simulated for one full loop cycle. Requires loop = true. */
|
|
5514
|
+
prewarm?: boolean | undefined;
|
|
5515
|
+
/** default = PSS_LOCAL. Controls whether particles simulate in local or world space. */
|
|
5516
|
+
simulationSpace?: PBParticleSystem_SimulationSpace | undefined;
|
|
5517
|
+
/** --- Limit Velocity Over Lifetime --- */
|
|
5518
|
+
limitVelocity?: PBParticleSystem_LimitVelocity | undefined;
|
|
5519
|
+
/** --- Playback --- */
|
|
5520
|
+
playbackState?: PBParticleSystem_PlaybackState | undefined;
|
|
5521
|
+
/** --- Emission Bursts --- */
|
|
5522
|
+
bursts: PBParticleSystem_Burst[];
|
|
5523
|
+
}
|
|
5524
|
+
|
|
5525
|
+
/**
|
|
5526
|
+
* @public
|
|
5527
|
+
*/
|
|
5528
|
+
export declare namespace PBParticleSystem {
|
|
5529
|
+
export function encode(message: PBParticleSystem, writer?: _m0.Writer): _m0.Writer;
|
|
5530
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem;
|
|
5531
|
+
}
|
|
5532
|
+
|
|
5533
|
+
/**
|
|
5534
|
+
* @public
|
|
5535
|
+
*/
|
|
5536
|
+
declare const enum PBParticleSystem_BlendMode {
|
|
5537
|
+
/** PSB_ALPHA - Standard alpha transparency. */
|
|
5538
|
+
PSB_ALPHA = 0,
|
|
5539
|
+
/** PSB_ADD - Additive blending (brightens underlying pixels). */
|
|
5540
|
+
PSB_ADD = 1,
|
|
5541
|
+
/** PSB_MULTIPLY - Multiply blending (darkens underlying pixels). */
|
|
5542
|
+
PSB_MULTIPLY = 2
|
|
5543
|
+
}
|
|
5544
|
+
export { PBParticleSystem_BlendMode }
|
|
5545
|
+
export { PBParticleSystem_BlendMode as ParticleSystemBlendMode }
|
|
5546
|
+
|
|
5547
|
+
/** Emitter spawns particles from the surface or volume of a box. */
|
|
5548
|
+
/**
|
|
5549
|
+
* @public
|
|
5550
|
+
*/
|
|
5551
|
+
export declare interface PBParticleSystem_Box {
|
|
5552
|
+
/** default = {1, 1, 1} */
|
|
5553
|
+
size?: PBVector3 | undefined;
|
|
5554
|
+
}
|
|
5555
|
+
|
|
5556
|
+
/**
|
|
5557
|
+
* @public
|
|
5558
|
+
*/
|
|
5559
|
+
export declare namespace PBParticleSystem_Box {
|
|
5560
|
+
export function encode(message: PBParticleSystem_Box, writer?: _m0.Writer): _m0.Writer;
|
|
5561
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Box;
|
|
5562
|
+
}
|
|
5563
|
+
|
|
5564
|
+
/** Emission burst configuration. */
|
|
5565
|
+
/**
|
|
5566
|
+
* @public
|
|
5567
|
+
*/
|
|
5568
|
+
export declare interface PBParticleSystem_Burst {
|
|
5569
|
+
/** Seconds from start of cycle. */
|
|
5570
|
+
time: number;
|
|
5571
|
+
/** Particles to emit. */
|
|
5572
|
+
count: number;
|
|
5573
|
+
/** default = 1. Repeat count (0 = infinite). */
|
|
5574
|
+
cycles?: number | undefined;
|
|
5575
|
+
/** default = 0.01. Seconds between cycles. */
|
|
5576
|
+
interval?: number | undefined;
|
|
5577
|
+
/** default = 1.0. Emission chance [0,1]. */
|
|
5578
|
+
probability?: number | undefined;
|
|
5579
|
+
}
|
|
5580
|
+
|
|
5581
|
+
/**
|
|
5582
|
+
* @public
|
|
5583
|
+
*/
|
|
5584
|
+
export declare namespace PBParticleSystem_Burst {
|
|
5585
|
+
export function encode(message: PBParticleSystem_Burst, writer?: _m0.Writer): _m0.Writer;
|
|
5586
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Burst;
|
|
5587
|
+
}
|
|
5588
|
+
|
|
5589
|
+
/** Emitter spawns particles from the base of a cone and projects them outward. */
|
|
5590
|
+
/**
|
|
5591
|
+
* @public
|
|
5592
|
+
*/
|
|
5593
|
+
export declare interface PBParticleSystem_Cone {
|
|
5594
|
+
/** default = 25. Half-angle of the cone in degrees. */
|
|
5595
|
+
angle?: number | undefined;
|
|
5596
|
+
/** default = 1. Base radius in meters. */
|
|
5597
|
+
radius?: number | undefined;
|
|
5598
|
+
}
|
|
5599
|
+
|
|
5600
|
+
/**
|
|
5601
|
+
* @public
|
|
5602
|
+
*/
|
|
5603
|
+
export declare namespace PBParticleSystem_Cone {
|
|
5604
|
+
export function encode(message: PBParticleSystem_Cone, writer?: _m0.Writer): _m0.Writer;
|
|
5605
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Cone;
|
|
5606
|
+
}
|
|
5607
|
+
|
|
5608
|
+
/** Clamps particle speed over lifetime. */
|
|
5609
|
+
/**
|
|
5610
|
+
* @public
|
|
5611
|
+
*/
|
|
5612
|
+
export declare interface PBParticleSystem_LimitVelocity {
|
|
5613
|
+
/** Maximum particle speed (m/s). */
|
|
5614
|
+
speed: number;
|
|
5615
|
+
/** default = 1. Fraction (0–1) of excess velocity removed per frame. 1 = hard clamp. */
|
|
5616
|
+
dampen?: number | undefined;
|
|
5617
|
+
}
|
|
5618
|
+
|
|
5619
|
+
/**
|
|
5620
|
+
* @public
|
|
5621
|
+
*/
|
|
5622
|
+
export declare namespace PBParticleSystem_LimitVelocity {
|
|
5623
|
+
export function encode(message: PBParticleSystem_LimitVelocity, writer?: _m0.Writer): _m0.Writer;
|
|
5624
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_LimitVelocity;
|
|
5625
|
+
}
|
|
5626
|
+
|
|
5627
|
+
/**
|
|
5628
|
+
* @public
|
|
5629
|
+
*/
|
|
5630
|
+
declare const enum PBParticleSystem_PlaybackState {
|
|
5631
|
+
/** PS_PLAYING - Particle system is emitting and simulating. */
|
|
5632
|
+
PS_PLAYING = 0,
|
|
5633
|
+
/** PS_PAUSED - Simulation is frozen; no new particles are emitted. */
|
|
5634
|
+
PS_PAUSED = 1,
|
|
5635
|
+
/** PS_STOPPED - Simulation stopped and existing particles cleared. */
|
|
5636
|
+
PS_STOPPED = 2
|
|
5637
|
+
}
|
|
5638
|
+
export { PBParticleSystem_PlaybackState }
|
|
5639
|
+
export { PBParticleSystem_PlaybackState as ParticleSystemPlaybackState }
|
|
5640
|
+
|
|
5641
|
+
/** Emitter spawns particles from a single point. */
|
|
5642
|
+
/**
|
|
5643
|
+
* @public
|
|
5644
|
+
*/
|
|
5645
|
+
export declare interface PBParticleSystem_Point {
|
|
5646
|
+
}
|
|
5647
|
+
|
|
5648
|
+
/**
|
|
5649
|
+
* @public
|
|
5650
|
+
*/
|
|
5651
|
+
export declare namespace PBParticleSystem_Point {
|
|
5652
|
+
export function encode(_: PBParticleSystem_Point, writer?: _m0.Writer): _m0.Writer;
|
|
5653
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Point;
|
|
5654
|
+
}
|
|
5655
|
+
|
|
5656
|
+
/**
|
|
5657
|
+
* @public
|
|
5658
|
+
*/
|
|
5659
|
+
export declare const enum PBParticleSystem_SimulationSpace {
|
|
5660
|
+
/** PSS_LOCAL - Particles move with the entity transform. */
|
|
5661
|
+
PSS_LOCAL = 0,
|
|
5662
|
+
/** PSS_WORLD - Particles stay in world position after emission. */
|
|
5663
|
+
PSS_WORLD = 1
|
|
5664
|
+
}
|
|
5665
|
+
|
|
5666
|
+
/** Emitter spawns particles from the surface or volume of a sphere. */
|
|
5667
|
+
/**
|
|
5668
|
+
* @public
|
|
5669
|
+
*/
|
|
5670
|
+
export declare interface PBParticleSystem_Sphere {
|
|
5671
|
+
/** default = 1 */
|
|
5672
|
+
radius?: number | undefined;
|
|
5673
|
+
}
|
|
5674
|
+
|
|
5675
|
+
/**
|
|
5676
|
+
* @public
|
|
5677
|
+
*/
|
|
5678
|
+
export declare namespace PBParticleSystem_Sphere {
|
|
5679
|
+
export function encode(message: PBParticleSystem_Sphere, writer?: _m0.Writer): _m0.Writer;
|
|
5680
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Sphere;
|
|
5681
|
+
}
|
|
5682
|
+
|
|
5683
|
+
/** Sprite sheet (texture atlas) animation settings. */
|
|
5684
|
+
/**
|
|
5685
|
+
* @public
|
|
5686
|
+
*/
|
|
5687
|
+
export declare interface PBParticleSystem_SpriteSheetAnimation {
|
|
5688
|
+
/** Number of columns in the sprite sheet. */
|
|
5689
|
+
tilesX: number;
|
|
5690
|
+
/** Number of rows in the sprite sheet. */
|
|
5691
|
+
tilesY: number;
|
|
5692
|
+
/** default = 30. Playback speed in frames per second. */
|
|
5693
|
+
framesPerSecond?: number | undefined;
|
|
5694
|
+
}
|
|
5695
|
+
|
|
5696
|
+
/**
|
|
5697
|
+
* @public
|
|
5698
|
+
*/
|
|
5699
|
+
export declare namespace PBParticleSystem_SpriteSheetAnimation {
|
|
5700
|
+
export function encode(message: PBParticleSystem_SpriteSheetAnimation, writer?: _m0.Writer): _m0.Writer;
|
|
5701
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_SpriteSheetAnimation;
|
|
5702
|
+
}
|
|
5703
|
+
|
|
5399
5704
|
/**
|
|
5400
5705
|
* This component applies a continuous physics force.
|
|
5401
5706
|
*
|