@galacean/engine-core 2.0.0-alpha.29 → 2.0.0-alpha.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-core",
3
- "version": "2.0.0-alpha.29",
3
+ "version": "2.0.0-alpha.30",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -18,10 +18,10 @@
18
18
  "types/**/*"
19
19
  ],
20
20
  "dependencies": {
21
- "@galacean/engine-math": "2.0.0-alpha.29"
21
+ "@galacean/engine-math": "2.0.0-alpha.30"
22
22
  },
23
23
  "devDependencies": {
24
- "@galacean/engine-design": "2.0.0-alpha.29"
24
+ "@galacean/engine-design": "2.0.0-alpha.30"
25
25
  },
26
26
  "scripts": {
27
27
  "b:types": "tsc"
@@ -5,10 +5,30 @@ import { ParticleCompositeCurve } from "./ParticleCompositeCurve";
5
5
  export declare class Burst {
6
6
  time: number;
7
7
  count: ParticleCompositeCurve;
8
+ private _cycles;
9
+ private _repeatInterval;
8
10
  /**
9
- * Create burst object.
11
+ * Number of times to repeat the burst.
12
+ */
13
+ get cycles(): number;
14
+ set cycles(value: number);
15
+ /**
16
+ * Time interval between each repeated burst.
17
+ */
18
+ get repeatInterval(): number;
19
+ set repeatInterval(value: number);
20
+ /**
21
+ * Create a single-shot burst.
10
22
  * @param time - Time to emit the burst
11
23
  * @param count - Count of particles to emit
12
24
  */
13
25
  constructor(time: number, count: ParticleCompositeCurve);
26
+ /**
27
+ * Create a repeated burst.
28
+ * @param time - Time to emit the burst
29
+ * @param count - Count of particles to emit
30
+ * @param cycles - Number of times to repeat the burst
31
+ * @param repeatInterval - Time interval between each repeated burst
32
+ */
33
+ constructor(time: number, count: ParticleCompositeCurve, cycles: number, repeatInterval: number);
14
34
  }