Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ParticleEffectAsset

UNFINISHED! Class that represents a particle effect asset.

Hierarchy

  • ParticleEffectAsset

Index

Constructors

constructor

Accessors

Asset

  • get Asset(): string

AssetName

  • get AssetName(): string

IsLoaded

  • get IsLoaded(): boolean

Methods

markAsNoLongerNeeded

  • markAsNoLongerNeeded(): void

request

  • request(timeout: number): Promise<boolean>
  • Load a particle effect into the game memory.

    Parameters

    • timeout: number

      Max time to load Particle Effect

    Returns Promise<boolean>

startNonLoopedAtCoord

  • Start a particle effect at a world position.

    Parameters

    • effectName: string

      Name of effect.

    • pos: Vector3
    • Default value rot: Vector3 = new Vector3(0, 0, 0)

      Rotation from entity position.

    • Default value scale: number = 1

      Size of the effect.

    • Default value invertAxis: IInvertAxis = { flags: InvertAxisFlags.None }

      Which axis to invert (default none).

    Returns boolean

startNonLoopedOnEntity

  • Start a particle effect on an entity

    Parameters

    • effectName: string

      Name of effect.

    • entity: Entity

      Entity to use effect on.

    • Default value off: Vector3 = new Vector3(0, 0, 0)

      Offset from entity position.

    • Default value rot: Vector3 = new Vector3(0, 0, 0)

      Rotation from entity position.

    • Default value scale: number = 1

      Size of the effect.

    • Default value invertAxis: IInvertAxis = { flags: InvertAxisFlags.None }

      Which axis to invert (default none).

    Returns boolean

toString

  • toString(): string

Generated using TypeDoc