@dcl/playground-assets 7.22.3-24033264917.commit-024caa7 → 7.22.3-24082946861.commit-0d8c4f2
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 +445 -1
- package/dist/beta.d.ts +445 -1
- package/dist/index.bundled.d.ts +445 -1
- 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 +445 -1
- package/etc/playground-assets.api.json +7588 -2556
- package/etc/playground-assets.api.md +323 -0
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
|
@@ -115,6 +115,61 @@ export declare const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
|
|
|
115
115
|
*/
|
|
116
116
|
export declare type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
|
|
117
117
|
|
|
118
|
+
export declare const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
|
|
119
|
+
|
|
120
|
+
export declare interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
|
|
121
|
+
/**
|
|
122
|
+
* Reads the component data of `entity` into the provided `out` view.
|
|
123
|
+
*
|
|
124
|
+
* @throws Error if the entity does not have an AudioAnalysis component.
|
|
125
|
+
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
126
|
+
* @param out - An existing AudioAnalysisView to populate with the latest values.
|
|
127
|
+
*/
|
|
128
|
+
readIntoView(entity: Entity, out: AudioAnalysisView): void;
|
|
129
|
+
/**
|
|
130
|
+
* Attempts to read the component data of `entity` into the provided `out` view.
|
|
131
|
+
*
|
|
132
|
+
* @returns `true` if the component exists and data was written into `out`,
|
|
133
|
+
* `false` if the entity does not have an AudioAnalysis component.
|
|
134
|
+
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
135
|
+
* @param out - An existing AudioAnalysisView to populate.
|
|
136
|
+
*/
|
|
137
|
+
tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Creates an AudioAnalysis component for the given `entity`.
|
|
140
|
+
*
|
|
141
|
+
* If a component already exists on the entity, this call fails (does not replace).
|
|
142
|
+
*
|
|
143
|
+
* @param entity - The entity to attach the component to.
|
|
144
|
+
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
145
|
+
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
146
|
+
* @param bandsGain - Optional gain multiplier applied to all frequency bands.
|
|
147
|
+
*/
|
|
148
|
+
createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
149
|
+
amplitudeGain?: number, bandsGain?: number): void;
|
|
150
|
+
/**
|
|
151
|
+
* Creates the AudioAnalysis component if missing, or replaces the existing one.
|
|
152
|
+
*
|
|
153
|
+
* @param entity - The target entity.
|
|
154
|
+
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
155
|
+
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
156
|
+
* @param bandsGain - Optional gain multiplier applied to the frequency bands.
|
|
157
|
+
*/
|
|
158
|
+
createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
159
|
+
amplitudeGain?: number, bandsGain?: number): void;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* A read-only JavaScript-friendly view of AudioAnalysis ECS data.
|
|
164
|
+
*
|
|
165
|
+
* `amplitude` represents the aggregated signal strength.
|
|
166
|
+
* `bands` represents the processed frequency bands.
|
|
167
|
+
*/
|
|
168
|
+
export declare type AudioAnalysisView = {
|
|
169
|
+
amplitude: number;
|
|
170
|
+
bands: number[];
|
|
171
|
+
};
|
|
172
|
+
|
|
118
173
|
/** @public */
|
|
119
174
|
export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
120
175
|
|
|
@@ -209,6 +264,9 @@ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBA
|
|
|
209
264
|
/** @public */
|
|
210
265
|
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
211
266
|
|
|
267
|
+
/** @public */
|
|
268
|
+
export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
269
|
+
|
|
212
270
|
/** @public */
|
|
213
271
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
214
272
|
|
|
@@ -1288,6 +1346,23 @@ export declare type Color4Type = {
|
|
|
1288
1346
|
a: number;
|
|
1289
1347
|
};
|
|
1290
1348
|
|
|
1349
|
+
/** A range of Color4 values. Randomized or lerped between start and end. */
|
|
1350
|
+
/**
|
|
1351
|
+
* @public
|
|
1352
|
+
*/
|
|
1353
|
+
export declare interface ColorRange {
|
|
1354
|
+
start: PBColor4 | undefined;
|
|
1355
|
+
end: PBColor4 | undefined;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* @public
|
|
1360
|
+
*/
|
|
1361
|
+
export declare namespace ColorRange {
|
|
1362
|
+
export function encode(message: ColorRange, writer?: _m0.Writer): _m0.Writer;
|
|
1363
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ColorRange;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1291
1366
|
/**
|
|
1292
1367
|
* @public
|
|
1293
1368
|
*/
|
|
@@ -1321,6 +1396,7 @@ export declare const componentDefinitionByName: {
|
|
|
1321
1396
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
1322
1397
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
1323
1398
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
1399
|
+
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
1324
1400
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
1325
1401
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
1326
1402
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -1328,6 +1404,7 @@ export declare const componentDefinitionByName: {
|
|
|
1328
1404
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
1329
1405
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
1330
1406
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1407
|
+
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1331
1408
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1332
1409
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1333
1410
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -1344,6 +1421,7 @@ export declare const componentDefinitionByName: {
|
|
|
1344
1421
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
1345
1422
|
"core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
|
1346
1423
|
"core::NftShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
|
|
1424
|
+
"core::ParticleSystem": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBParticleSystem>>;
|
|
1347
1425
|
"core::PhysicsCombinedForce": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
|
|
1348
1426
|
"core::PhysicsCombinedImpulse": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
|
|
1349
1427
|
"core::PlayerIdentityData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
|
|
@@ -2148,6 +2226,23 @@ export declare type FlexWrapType = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
|
2148
2226
|
/** @public */
|
|
2149
2227
|
export declare type FloatArray = number[];
|
|
2150
2228
|
|
|
2229
|
+
/** A range of float values. Randomized or lerped between start and end. */
|
|
2230
|
+
/**
|
|
2231
|
+
* @public
|
|
2232
|
+
*/
|
|
2233
|
+
export declare interface FloatRange {
|
|
2234
|
+
start: number;
|
|
2235
|
+
end: number;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
/**
|
|
2239
|
+
* @public
|
|
2240
|
+
*/
|
|
2241
|
+
export declare namespace FloatRange {
|
|
2242
|
+
export function encode(message: FloatRange, writer?: _m0.Writer): _m0.Writer;
|
|
2243
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): FloatRange;
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2151
2246
|
/**
|
|
2152
2247
|
* @public
|
|
2153
2248
|
*/
|
|
@@ -2697,7 +2792,8 @@ export declare const enum InputAction {
|
|
|
2697
2792
|
IA_ACTION_3 = 10,
|
|
2698
2793
|
IA_ACTION_4 = 11,
|
|
2699
2794
|
IA_ACTION_5 = 12,
|
|
2700
|
-
IA_ACTION_6 = 13
|
|
2795
|
+
IA_ACTION_6 = 13,
|
|
2796
|
+
IA_MODIFIER = 14
|
|
2701
2797
|
}
|
|
2702
2798
|
|
|
2703
2799
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -4373,6 +4469,30 @@ export declare const onVideoEvent: Observable<{
|
|
|
4373
4469
|
*/
|
|
4374
4470
|
export declare type OverflowType = 'hidden' | 'scroll' | 'visible';
|
|
4375
4471
|
|
|
4472
|
+
export declare const ParticleSystem: ParticleSystemComponentDefinitionExtended;
|
|
4473
|
+
|
|
4474
|
+
/**
|
|
4475
|
+
* @public
|
|
4476
|
+
*/
|
|
4477
|
+
export declare interface ParticleSystemComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBParticleSystem> {
|
|
4478
|
+
/** Helpers for constructing emitter shapes */
|
|
4479
|
+
Shape: ParticleSystemHelper;
|
|
4480
|
+
}
|
|
4481
|
+
|
|
4482
|
+
/**
|
|
4483
|
+
* @public
|
|
4484
|
+
*/
|
|
4485
|
+
export declare interface ParticleSystemHelper {
|
|
4486
|
+
/** Emit from a single point */
|
|
4487
|
+
Point: (point?: PBParticleSystem_Point) => PBParticleSystem['shape'];
|
|
4488
|
+
/** Emit from the surface or volume of a sphere */
|
|
4489
|
+
Sphere: (sphere?: PBParticleSystem_Sphere) => PBParticleSystem['shape'];
|
|
4490
|
+
/** Emit from the base of a cone, projecting outward */
|
|
4491
|
+
Cone: (cone?: PBParticleSystem_Cone) => PBParticleSystem['shape'];
|
|
4492
|
+
/** Emit from the surface or volume of a box */
|
|
4493
|
+
Box: (box?: PBParticleSystem_Box) => PBParticleSystem['shape'];
|
|
4494
|
+
}
|
|
4495
|
+
|
|
4376
4496
|
/** AnimationState indicates the status and configuration of one available animation. */
|
|
4377
4497
|
/**
|
|
4378
4498
|
* @public
|
|
@@ -4465,6 +4585,45 @@ export declare namespace PBAssetLoadLoadingState {
|
|
|
4465
4585
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
|
|
4466
4586
|
}
|
|
4467
4587
|
|
|
4588
|
+
/**
|
|
4589
|
+
* @public
|
|
4590
|
+
*/
|
|
4591
|
+
export declare interface PBAudioAnalysis {
|
|
4592
|
+
/** Parameters section */
|
|
4593
|
+
mode: PBAudioAnalysisMode;
|
|
4594
|
+
/** Used only when mode == MODE_LOGARITHMIC */
|
|
4595
|
+
amplitudeGain?: number | undefined;
|
|
4596
|
+
/** End when mode == MODE_LOGARITHMIC */
|
|
4597
|
+
bandsGain?: number | undefined;
|
|
4598
|
+
/** Result section */
|
|
4599
|
+
amplitude: number;
|
|
4600
|
+
/** Protobuf doesn't support fixed arrays -> 8 band fields */
|
|
4601
|
+
band0: number;
|
|
4602
|
+
band1: number;
|
|
4603
|
+
band2: number;
|
|
4604
|
+
band3: number;
|
|
4605
|
+
band4: number;
|
|
4606
|
+
band5: number;
|
|
4607
|
+
band6: number;
|
|
4608
|
+
band7: number;
|
|
4609
|
+
}
|
|
4610
|
+
|
|
4611
|
+
/**
|
|
4612
|
+
* @public
|
|
4613
|
+
*/
|
|
4614
|
+
export declare namespace PBAudioAnalysis {
|
|
4615
|
+
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
4616
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
4617
|
+
}
|
|
4618
|
+
|
|
4619
|
+
/**
|
|
4620
|
+
* @public
|
|
4621
|
+
*/
|
|
4622
|
+
export declare const enum PBAudioAnalysisMode {
|
|
4623
|
+
MODE_RAW = 0,
|
|
4624
|
+
MODE_LOGARITHMIC = 1
|
|
4625
|
+
}
|
|
4626
|
+
|
|
4468
4627
|
/**
|
|
4469
4628
|
* @public
|
|
4470
4629
|
*/
|
|
@@ -4654,6 +4813,42 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4654
4813
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4655
4814
|
}
|
|
4656
4815
|
|
|
4816
|
+
/**
|
|
4817
|
+
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
4818
|
+
* as the avatar movement speed, jump height etc.
|
|
4819
|
+
*/
|
|
4820
|
+
/**
|
|
4821
|
+
* @public
|
|
4822
|
+
*/
|
|
4823
|
+
export declare interface PBAvatarLocomotionSettings {
|
|
4824
|
+
/** Maximum speed when walking (in meters per second) */
|
|
4825
|
+
walkSpeed?: number | undefined;
|
|
4826
|
+
/** Maximum speed when jogging (in meters per second) */
|
|
4827
|
+
jogSpeed?: number | undefined;
|
|
4828
|
+
/** Maximum speed when running (in meters per second) */
|
|
4829
|
+
runSpeed?: number | undefined;
|
|
4830
|
+
/** Height of a regular jump (in meters) */
|
|
4831
|
+
jumpHeight?: number | undefined;
|
|
4832
|
+
/** Height of a jump while running (in meters) */
|
|
4833
|
+
runJumpHeight?: number | undefined;
|
|
4834
|
+
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4835
|
+
hardLandingCooldown?: number | undefined;
|
|
4836
|
+
/** Height of the double jump (in meters) */
|
|
4837
|
+
doubleJumpHeight?: number | undefined;
|
|
4838
|
+
/** Maximum speed when gliding (in meters per second) */
|
|
4839
|
+
glidingSpeed?: number | undefined;
|
|
4840
|
+
/** Maximum falling speed when gliding (in meters per second) */
|
|
4841
|
+
glidingFallingSpeed?: number | undefined;
|
|
4842
|
+
}
|
|
4843
|
+
|
|
4844
|
+
/**
|
|
4845
|
+
* @public
|
|
4846
|
+
*/
|
|
4847
|
+
export declare namespace PBAvatarLocomotionSettings {
|
|
4848
|
+
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
4849
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
4850
|
+
}
|
|
4851
|
+
|
|
4657
4852
|
/**
|
|
4658
4853
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4659
4854
|
* avatar behavior changes.
|
|
@@ -5424,6 +5619,252 @@ export declare namespace PBNftShape {
|
|
|
5424
5619
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBNftShape;
|
|
5425
5620
|
}
|
|
5426
5621
|
|
|
5622
|
+
/**
|
|
5623
|
+
* @public
|
|
5624
|
+
*/
|
|
5625
|
+
export declare interface PBParticleSystem {
|
|
5626
|
+
/** --- Emission --- */
|
|
5627
|
+
active?: boolean | undefined;
|
|
5628
|
+
/** default = 10. Particles emitted per second. */
|
|
5629
|
+
rate?: number | undefined;
|
|
5630
|
+
/** default = 1000. Maximum number of live particles. */
|
|
5631
|
+
maxParticles?: number | undefined;
|
|
5632
|
+
/** default = 5. Particle lifetime in seconds. */
|
|
5633
|
+
lifetime?: number | undefined;
|
|
5634
|
+
/** --- Motion --- */
|
|
5635
|
+
gravity?: number | undefined;
|
|
5636
|
+
/** Constant force vector applied to each particle (world space). */
|
|
5637
|
+
additionalForce?: PBVector3 | undefined;
|
|
5638
|
+
/** --- Size --- */
|
|
5639
|
+
initialSize?: FloatRange | undefined;
|
|
5640
|
+
/** default = {1, 1}. Particle size lerped from start to end over its lifetime. */
|
|
5641
|
+
sizeOverTime?: FloatRange | undefined;
|
|
5642
|
+
/** --- Rotation --- */
|
|
5643
|
+
initialRotation?: PBQuaternion | undefined;
|
|
5644
|
+
/** default = identity (0,0,0,1). Per-axis angular velocity as quaternion; converted to Euler XYZ. */
|
|
5645
|
+
rotationOverTime?: PBQuaternion | undefined;
|
|
5646
|
+
/** default = false. Particles orient along their velocity direction. */
|
|
5647
|
+
faceTravelDirection?: boolean | undefined;
|
|
5648
|
+
/** --- Color --- */
|
|
5649
|
+
initialColor?: ColorRange | undefined;
|
|
5650
|
+
/** default = {white, white}. Particle color lerped from start to end over its lifetime. */
|
|
5651
|
+
colorOverTime?: ColorRange | undefined;
|
|
5652
|
+
/** --- Velocity --- */
|
|
5653
|
+
initialVelocitySpeed?: FloatRange | undefined;
|
|
5654
|
+
/** --- Rendering --- */
|
|
5655
|
+
texture?: Texture | undefined;
|
|
5656
|
+
/** default = PSB_ALPHA */
|
|
5657
|
+
blendMode?: PBParticleSystem_BlendMode | undefined;
|
|
5658
|
+
/** default = true */
|
|
5659
|
+
billboard?: boolean | undefined;
|
|
5660
|
+
/** --- Sprite Sheet Animation --- */
|
|
5661
|
+
spriteSheet?: PBParticleSystem_SpriteSheetAnimation | undefined;
|
|
5662
|
+
shape?: {
|
|
5663
|
+
$case: "point";
|
|
5664
|
+
point: PBParticleSystem_Point;
|
|
5665
|
+
} | {
|
|
5666
|
+
$case: "sphere";
|
|
5667
|
+
sphere: PBParticleSystem_Sphere;
|
|
5668
|
+
} | {
|
|
5669
|
+
$case: "cone";
|
|
5670
|
+
cone: PBParticleSystem_Cone;
|
|
5671
|
+
} | {
|
|
5672
|
+
$case: "box";
|
|
5673
|
+
box: PBParticleSystem_Box;
|
|
5674
|
+
} | undefined;
|
|
5675
|
+
/** --- Simulation --- */
|
|
5676
|
+
loop?: boolean | undefined;
|
|
5677
|
+
/** default = false. Start as if already simulated for one full loop cycle. Requires loop = true. */
|
|
5678
|
+
prewarm?: boolean | undefined;
|
|
5679
|
+
/** default = PSS_LOCAL. Controls whether particles simulate in local or world space. */
|
|
5680
|
+
simulationSpace?: PBParticleSystem_SimulationSpace | undefined;
|
|
5681
|
+
/** --- Limit Velocity Over Lifetime --- */
|
|
5682
|
+
limitVelocity?: PBParticleSystem_LimitVelocity | undefined;
|
|
5683
|
+
/** --- Playback --- */
|
|
5684
|
+
playbackState?: PBParticleSystem_PlaybackState | undefined;
|
|
5685
|
+
/** --- Emission Bursts --- */
|
|
5686
|
+
bursts: PBParticleSystem_Burst[];
|
|
5687
|
+
}
|
|
5688
|
+
|
|
5689
|
+
/**
|
|
5690
|
+
* @public
|
|
5691
|
+
*/
|
|
5692
|
+
export declare namespace PBParticleSystem {
|
|
5693
|
+
export function encode(message: PBParticleSystem, writer?: _m0.Writer): _m0.Writer;
|
|
5694
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem;
|
|
5695
|
+
}
|
|
5696
|
+
|
|
5697
|
+
/**
|
|
5698
|
+
* @public
|
|
5699
|
+
*/
|
|
5700
|
+
declare const enum PBParticleSystem_BlendMode {
|
|
5701
|
+
/** PSB_ALPHA - Standard alpha transparency. */
|
|
5702
|
+
PSB_ALPHA = 0,
|
|
5703
|
+
/** PSB_ADD - Additive blending (brightens underlying pixels). */
|
|
5704
|
+
PSB_ADD = 1,
|
|
5705
|
+
/** PSB_MULTIPLY - Multiply blending (darkens underlying pixels). */
|
|
5706
|
+
PSB_MULTIPLY = 2
|
|
5707
|
+
}
|
|
5708
|
+
export { PBParticleSystem_BlendMode }
|
|
5709
|
+
export { PBParticleSystem_BlendMode as ParticleSystemBlendMode }
|
|
5710
|
+
|
|
5711
|
+
/** Emitter spawns particles from the surface or volume of a box. */
|
|
5712
|
+
/**
|
|
5713
|
+
* @public
|
|
5714
|
+
*/
|
|
5715
|
+
export declare interface PBParticleSystem_Box {
|
|
5716
|
+
/** default = {1, 1, 1} */
|
|
5717
|
+
size?: PBVector3 | undefined;
|
|
5718
|
+
}
|
|
5719
|
+
|
|
5720
|
+
/**
|
|
5721
|
+
* @public
|
|
5722
|
+
*/
|
|
5723
|
+
export declare namespace PBParticleSystem_Box {
|
|
5724
|
+
export function encode(message: PBParticleSystem_Box, writer?: _m0.Writer): _m0.Writer;
|
|
5725
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Box;
|
|
5726
|
+
}
|
|
5727
|
+
|
|
5728
|
+
/** Emission burst configuration. */
|
|
5729
|
+
/**
|
|
5730
|
+
* @public
|
|
5731
|
+
*/
|
|
5732
|
+
export declare interface PBParticleSystem_Burst {
|
|
5733
|
+
/** Seconds from start of cycle. */
|
|
5734
|
+
time: number;
|
|
5735
|
+
/** Particles to emit. */
|
|
5736
|
+
count: number;
|
|
5737
|
+
/** default = 1. Repeat count (0 = infinite). */
|
|
5738
|
+
cycles?: number | undefined;
|
|
5739
|
+
/** default = 0.01. Seconds between cycles. */
|
|
5740
|
+
interval?: number | undefined;
|
|
5741
|
+
/** default = 1.0. Emission chance [0,1]. */
|
|
5742
|
+
probability?: number | undefined;
|
|
5743
|
+
}
|
|
5744
|
+
|
|
5745
|
+
/**
|
|
5746
|
+
* @public
|
|
5747
|
+
*/
|
|
5748
|
+
export declare namespace PBParticleSystem_Burst {
|
|
5749
|
+
export function encode(message: PBParticleSystem_Burst, writer?: _m0.Writer): _m0.Writer;
|
|
5750
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Burst;
|
|
5751
|
+
}
|
|
5752
|
+
|
|
5753
|
+
/** Emitter spawns particles from the base of a cone and projects them outward. */
|
|
5754
|
+
/**
|
|
5755
|
+
* @public
|
|
5756
|
+
*/
|
|
5757
|
+
export declare interface PBParticleSystem_Cone {
|
|
5758
|
+
/** default = 25. Half-angle of the cone in degrees. */
|
|
5759
|
+
angle?: number | undefined;
|
|
5760
|
+
/** default = 1. Base radius in meters. */
|
|
5761
|
+
radius?: number | undefined;
|
|
5762
|
+
}
|
|
5763
|
+
|
|
5764
|
+
/**
|
|
5765
|
+
* @public
|
|
5766
|
+
*/
|
|
5767
|
+
export declare namespace PBParticleSystem_Cone {
|
|
5768
|
+
export function encode(message: PBParticleSystem_Cone, writer?: _m0.Writer): _m0.Writer;
|
|
5769
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Cone;
|
|
5770
|
+
}
|
|
5771
|
+
|
|
5772
|
+
/** Clamps particle speed over lifetime. */
|
|
5773
|
+
/**
|
|
5774
|
+
* @public
|
|
5775
|
+
*/
|
|
5776
|
+
export declare interface PBParticleSystem_LimitVelocity {
|
|
5777
|
+
/** Maximum particle speed (m/s). */
|
|
5778
|
+
speed: number;
|
|
5779
|
+
/** default = 1. Fraction (0–1) of excess velocity removed per frame. 1 = hard clamp. */
|
|
5780
|
+
dampen?: number | undefined;
|
|
5781
|
+
}
|
|
5782
|
+
|
|
5783
|
+
/**
|
|
5784
|
+
* @public
|
|
5785
|
+
*/
|
|
5786
|
+
export declare namespace PBParticleSystem_LimitVelocity {
|
|
5787
|
+
export function encode(message: PBParticleSystem_LimitVelocity, writer?: _m0.Writer): _m0.Writer;
|
|
5788
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_LimitVelocity;
|
|
5789
|
+
}
|
|
5790
|
+
|
|
5791
|
+
/**
|
|
5792
|
+
* @public
|
|
5793
|
+
*/
|
|
5794
|
+
declare const enum PBParticleSystem_PlaybackState {
|
|
5795
|
+
/** PS_PLAYING - Particle system is emitting and simulating. */
|
|
5796
|
+
PS_PLAYING = 0,
|
|
5797
|
+
/** PS_PAUSED - Simulation is frozen; no new particles are emitted. */
|
|
5798
|
+
PS_PAUSED = 1,
|
|
5799
|
+
/** PS_STOPPED - Simulation stopped and existing particles cleared. */
|
|
5800
|
+
PS_STOPPED = 2
|
|
5801
|
+
}
|
|
5802
|
+
export { PBParticleSystem_PlaybackState }
|
|
5803
|
+
export { PBParticleSystem_PlaybackState as ParticleSystemPlaybackState }
|
|
5804
|
+
|
|
5805
|
+
/** Emitter spawns particles from a single point. */
|
|
5806
|
+
/**
|
|
5807
|
+
* @public
|
|
5808
|
+
*/
|
|
5809
|
+
export declare interface PBParticleSystem_Point {
|
|
5810
|
+
}
|
|
5811
|
+
|
|
5812
|
+
/**
|
|
5813
|
+
* @public
|
|
5814
|
+
*/
|
|
5815
|
+
export declare namespace PBParticleSystem_Point {
|
|
5816
|
+
export function encode(_: PBParticleSystem_Point, writer?: _m0.Writer): _m0.Writer;
|
|
5817
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Point;
|
|
5818
|
+
}
|
|
5819
|
+
|
|
5820
|
+
/**
|
|
5821
|
+
* @public
|
|
5822
|
+
*/
|
|
5823
|
+
export declare const enum PBParticleSystem_SimulationSpace {
|
|
5824
|
+
/** PSS_LOCAL - Particles move with the entity transform. */
|
|
5825
|
+
PSS_LOCAL = 0,
|
|
5826
|
+
/** PSS_WORLD - Particles stay in world position after emission. */
|
|
5827
|
+
PSS_WORLD = 1
|
|
5828
|
+
}
|
|
5829
|
+
|
|
5830
|
+
/** Emitter spawns particles from the surface or volume of a sphere. */
|
|
5831
|
+
/**
|
|
5832
|
+
* @public
|
|
5833
|
+
*/
|
|
5834
|
+
export declare interface PBParticleSystem_Sphere {
|
|
5835
|
+
/** default = 1 */
|
|
5836
|
+
radius?: number | undefined;
|
|
5837
|
+
}
|
|
5838
|
+
|
|
5839
|
+
/**
|
|
5840
|
+
* @public
|
|
5841
|
+
*/
|
|
5842
|
+
export declare namespace PBParticleSystem_Sphere {
|
|
5843
|
+
export function encode(message: PBParticleSystem_Sphere, writer?: _m0.Writer): _m0.Writer;
|
|
5844
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_Sphere;
|
|
5845
|
+
}
|
|
5846
|
+
|
|
5847
|
+
/** Sprite sheet (texture atlas) animation settings. */
|
|
5848
|
+
/**
|
|
5849
|
+
* @public
|
|
5850
|
+
*/
|
|
5851
|
+
export declare interface PBParticleSystem_SpriteSheetAnimation {
|
|
5852
|
+
/** Number of columns in the sprite sheet. */
|
|
5853
|
+
tilesX: number;
|
|
5854
|
+
/** Number of rows in the sprite sheet. */
|
|
5855
|
+
tilesY: number;
|
|
5856
|
+
/** default = 30. Playback speed in frames per second. */
|
|
5857
|
+
framesPerSecond?: number | undefined;
|
|
5858
|
+
}
|
|
5859
|
+
|
|
5860
|
+
/**
|
|
5861
|
+
* @public
|
|
5862
|
+
*/
|
|
5863
|
+
export declare namespace PBParticleSystem_SpriteSheetAnimation {
|
|
5864
|
+
export function encode(message: PBParticleSystem_SpriteSheetAnimation, writer?: _m0.Writer): _m0.Writer;
|
|
5865
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBParticleSystem_SpriteSheetAnimation;
|
|
5866
|
+
}
|
|
5867
|
+
|
|
5427
5868
|
/**
|
|
5428
5869
|
* This component applies a continuous physics force.
|
|
5429
5870
|
*
|
|
@@ -6467,6 +6908,7 @@ export declare namespace PBVideoPlayer {
|
|
|
6467
6908
|
* an 'instant' transition (like using speed/time = 0)
|
|
6468
6909
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6469
6910
|
* the holding entity transform).
|
|
6911
|
+
* * The fov defines the Field of View of the virtual camera
|
|
6470
6912
|
*/
|
|
6471
6913
|
/**
|
|
6472
6914
|
* @public
|
|
@@ -6474,6 +6916,8 @@ export declare namespace PBVideoPlayer {
|
|
|
6474
6916
|
export declare interface PBVirtualCamera {
|
|
6475
6917
|
defaultTransition?: CameraTransition | undefined;
|
|
6476
6918
|
lookAtEntity?: number | undefined;
|
|
6919
|
+
/** default: 60 */
|
|
6920
|
+
fov?: number | undefined;
|
|
6477
6921
|
}
|
|
6478
6922
|
|
|
6479
6923
|
/**
|