Skip to main content

Blink

Used for implementing actions for the [[ActionContext|Action API]].

Implements

Index

Constructors

constructor

  • new Blink(entity: Entity<any>, timeVisible: number, timeNotVisible: number, numBlinks?: number): Blink
  • Parameters

    • entity: Entity<any>
    • timeVisible: number
    • timeNotVisible: number
    • numBlinks: number = 1

    Returns Blink

Methods

publicisComplete

  • isComplete(): boolean
  • Returns boolean

publicreset

  • reset(): void
  • Returns void

publicstop

  • stop(): void
  • Returns void

publicupdate

  • update(delta: number): void
  • Parameters

    • delta: number

    Returns void