@galacean/engine-core 1.1.0-alpha.2 → 1.1.0-alpha.3

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": "1.1.0-alpha.2",
3
+ "version": "1.1.0-alpha.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -15,10 +15,10 @@
15
15
  "types/**/*"
16
16
  ],
17
17
  "dependencies": {
18
- "@galacean/engine-math": "1.1.0-alpha.2"
18
+ "@galacean/engine-math": "1.1.0-alpha.3"
19
19
  },
20
20
  "devDependencies": {
21
- "@galacean/engine-design": "1.1.0-alpha.2"
21
+ "@galacean/engine-design": "1.1.0-alpha.3"
22
22
  },
23
23
  "scripts": {
24
24
  "b:types": "tsc"
@@ -10,7 +10,6 @@ export declare class ComponentsManager {
10
10
  private _onUpdateScripts;
11
11
  private _onLateUpdateScripts;
12
12
  private _onPhysicsUpdateScripts;
13
- private _disableScripts;
14
13
  private _pendingDestroyScripts;
15
14
  private _disposeDestroyScripts;
16
15
  private _onUpdateAnimations;
@@ -30,7 +29,6 @@ export declare class ComponentsManager {
30
29
  removeOnUpdateAnimations(animation: Component): void;
31
30
  addOnUpdateRenderers(renderer: Renderer): void;
32
31
  removeOnUpdateRenderers(renderer: Renderer): void;
33
- addDisableScript(component: Script): void;
34
32
  addPendingDestroyScript(component: Script): void;
35
33
  callScriptOnStart(): void;
36
34
  callScriptOnUpdate(deltaTime: number): void;
@@ -2,18 +2,23 @@
2
2
  * High-performance unordered array, delete uses exchange method to improve performance, internal capacity only increases.
3
3
  */
4
4
  export declare class DisorderedArray<T> {
5
- _elements: T[];
6
5
  length: number;
6
+ _elements: T[];
7
+ private _isLooping;
8
+ private _blankCount;
7
9
  constructor(count?: number);
8
10
  add(element: T): void;
9
11
  delete(element: T): void;
10
12
  set(index: number, element: T): void;
11
13
  get(index: number): T;
14
+ startLoop(): void;
12
15
  /**
13
16
  * Delete the element at the specified index.
14
17
  * @param index - The index of the element to be deleted
15
18
  * @returns The replaced item is used to reset its index
16
19
  */
17
20
  deleteByIndex(index: number): T;
21
+ endLoop(): void;
22
+ endLoopAndClear(): void;
18
23
  garbageCollection(): void;
19
24
  }
package/types/Script.d.ts CHANGED
@@ -8,7 +8,6 @@ import { Collision } from "./physics/Collision";
8
8
  */
9
9
  export declare class Script extends Component {
10
10
  _entityScriptsIndex: number;
11
- _waitHandlingInValid: boolean;
12
11
  /**
13
12
  * Called when be enabled first time, only once.
14
13
  */
@@ -8,7 +8,7 @@ import { SizeOverLifetimeModule } from "./modules/SizeOverLifetimeModule";
8
8
  import { TextureSheetAnimationModule } from "./modules/TextureSheetAnimationModule";
9
9
  import { VelocityOverLifetimeModule } from "./modules/VelocityOverLifetimeModule";
10
10
  /**
11
- * Particle System.
11
+ * Particle Generator.
12
12
  */
13
13
  export declare class ParticleGenerator {
14
14
  private static readonly _particleIncreaseCount;
@@ -35,7 +35,7 @@ export declare class ParticleGenerator {
35
35
  private _instanceVertices;
36
36
  private _randomSeed;
37
37
  /**
38
- * Whether the particle system is contain alive or is still creating particles.
38
+ * Whether the particle generator is contain alive or is still creating particles.
39
39
  */
40
40
  get isAlive(): boolean;
41
41
  /**
@@ -50,12 +50,12 @@ export declare class ParticleGenerator {
50
50
  constructor(renderer: ParticleRenderer);
51
51
  /**
52
52
  * Start emitting particles.
53
- * @param withChildren - Whether to start the particle system of the child entity
53
+ * @param withChildren - Whether to start the particle generator of the child entity
54
54
  */
55
55
  play(withChildren?: boolean): void;
56
56
  /**
57
57
  * Stop emitting particles.
58
- * @param withChildren - Whether to stop the particle system of the child entity
58
+ * @param withChildren - Whether to stop the particle generator of the child entity
59
59
  * @param stopMode - Stop mode
60
60
  */
61
61
  stop(withChildren?: boolean, stopMode?: ParticleStopMode): void;
@@ -67,6 +67,6 @@ export declare class ParticleGenerator {
67
67
  private _addNewParticle;
68
68
  private _retireActiveParticles;
69
69
  private _freeRetiredParticles;
70
- private _addNewParticlesToVertexBuffer;
70
+ private _addActiveParticlesToVertexBuffer;
71
71
  private _addVertexBufferBindingsFilterDuplicate;
72
72
  }
@@ -2,16 +2,16 @@
2
2
  * The rendering mode for particle renderer.
3
3
  */
4
4
  export declare enum ParticleRenderMode {
5
- /** Render particles as billboards facing the active camera. */
6
- Billboard = 0,
7
- /** Stretch particles in the direction of motion. */
8
- StretchBillboard = 1,
9
- /** Render particles as billboards always facing up along the y-Axis. */
10
- HorizontalBillboard = 2,
11
- /** Render particles as billboards always facing the player, but not pitching along the x-Axis. */
12
- VerticalBillboard = 3,
13
- /** Render particles as meshes. */
14
- Mesh = 4,
15
- /** Do not render particles. */
16
- None = 5
5
+ /** Render particles as billboards facing the active camera. */
6
+ Billboard = 0,
7
+ /** Stretch particles in the direction of motion. */
8
+ StretchBillboard = 1,
9
+ /** Render particles as billboards always facing up along the y-Axis. */
10
+ HorizontalBillboard = 2,
11
+ /** Render particles as billboards always facing the player, but not pitching along the x-Axis. */
12
+ VerticalBillboard = 3,
13
+ /** Render particles as meshes. */
14
+ Mesh = 4,
15
+ /** Do not render particles. */
16
+ None = 5
17
17
  }
@@ -1,10 +1,10 @@
1
1
  /**
2
- * Control how particle systems apply transform scale.
2
+ * Control how Particle Generator apply transform scale.
3
3
  */
4
4
  export declare enum ParticleScaleMode {
5
- /** Scale the Particle System using the entire transform hierarchy. */
5
+ /** Scale the Particle Generator using the entire transform hierarchy. */
6
6
  Hierarchy = 0,
7
- /** Scale the Particle System using only its own transform scale. (Ignores parent scale). */
7
+ /** Scale the Particle Generator using only its own transform scale. (Ignores parent scale). */
8
8
  Local = 1,
9
9
  /** Only apply transform scale to the shape component, which controls where particles are spawned, but does not affect their size or movement. */
10
10
  World = 2
@@ -3,7 +3,7 @@ import { ParticleCompositeCurve } from "./ParticleCompositeCurve";
3
3
  import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
4
4
  import { BaseShape } from "./shape/BaseShape";
5
5
  /**
6
- * The EmissionModule of a Particle System.
6
+ * The EmissionModule of a Particle Generator.
7
7
  */
8
8
  export declare class EmissionModule extends ParticleGeneratorModule {
9
9
  /** The rate of particle emission. */
@@ -14,29 +14,29 @@ export declare class MainModule implements ICustomClone {
14
14
  private static readonly _simulationSpace;
15
15
  private static readonly _startRotation3D;
16
16
  private static readonly _scaleMode;
17
- /** The duration of the Particle System in seconds. */
17
+ /** The duration of the Particle Generator in seconds. */
18
18
  duration: number;
19
- /** Specifies whether the Particle System loops. */
19
+ /** Specifies whether the Particle Generator loops. */
20
20
  isLoop: boolean;
21
21
  /** Start delay in seconds. */
22
22
  startDelay: ParticleCompositeCurve;
23
23
  /** The initial lifetime of particles when emitted. */
24
24
  startLifetime: ParticleCompositeCurve;
25
- /** The initial speed of particles when the Particle System first spawns them. */
25
+ /** The initial speed of particles when the Particle Generator first spawns them. */
26
26
  startSpeed: ParticleCompositeCurve;
27
27
  /** A flag to enable specifying particle size individually for each axis. */
28
28
  startSize3D: boolean;
29
- /** The initial size of particles when the Particle System first spawns them. */
29
+ /** The initial size of particles when the Particle Generator first spawns them. */
30
30
  startSize: ParticleCompositeCurve;
31
- /** The initial size of particles along the x-axis when the Particle System first spawns them. */
31
+ /** The initial size of particles along the x-axis when the Particle Generator first spawns them. */
32
32
  startSizeX: ParticleCompositeCurve;
33
- /** The initial size of particles along the y-axis when the Particle System first spawns them. */
33
+ /** The initial size of particles along the y-axis when the Particle Generator first spawns them. */
34
34
  startSizeY: ParticleCompositeCurve;
35
- /** The initial size of particles along the z-axis when the Particle System first spawns them. */
35
+ /** The initial size of particles along the z-axis when the Particle Generator first spawns them. */
36
36
  startSizeZ: ParticleCompositeCurve;
37
37
  /** A flag to enable 3D particle rotation. */
38
38
  startRotation3D: boolean;
39
- /** The initial rotation of particles when the Particle System first spawns them. */
39
+ /** The initial rotation of particles when the Particle Generator first spawns them. */
40
40
  startRotation: ParticleCompositeCurve;
41
41
  /** The initial rotation of particles around the x-axis when emitted.*/
42
42
  startRotationX: ParticleCompositeCurve;
@@ -47,13 +47,13 @@ export declare class MainModule implements ICustomClone {
47
47
  flipRotation: number;
48
48
  /** The mode of start color */
49
49
  startColor: ParticleCompositeGradient;
50
- /** A scale that this Particle System applies to gravity, defined by Physics.gravity. */
50
+ /** A scale that this Particle Generator applies to gravity, defined by Physics.gravity. */
51
51
  gravityModifier: ParticleCompositeCurve;
52
52
  /** This selects the space in which to simulate particles. It can be either world or local space. */
53
53
  simulationSpace: ParticleSimulationSpace;
54
- /** Override the default playback speed of the Particle System. */
54
+ /** Override the default playback speed of the Particle Generator. */
55
55
  simulationSpeed: number;
56
- /** Control how the Particle System applies its Transform component to the particles it emits. */
56
+ /** Control how the Particle Generator applies its Transform component to the particles it emits. */
57
57
  scalingMode: ParticleScaleMode;
58
58
  /** If set to true, the Particle Generator automatically begins to play on startup. */
59
59
  playOnEnabled: boolean;