Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SpotlightComponent

The spotlight component is attached to all spotlights and is pretty much targeted towards it.

Hierarchy

Index

Constructors

constructor

  • Parameters

    • __namedParameters: object
      • attackSlowdown: number
      • burnDamagePerSec: number
      • consumeAmountPerSec: number
      • consumeResource: any
      • impactSpriteSrc: string
      • movementSlowdown: number
      • radiusTiles: any

    Returns SpotlightComponent

Methods

deserialize

  • deserialize(data: any): any

getDebugString

  • getDebugString(): string

serialize

  • serialize(): object

turnOff

  • turnOff(time: any): void
  • Turns off the spotlight

    Parameters

    • time: any

      current ingame time

    Returns void

turnOn

  • turnOn(time: any): void
  • Turns on the spotlight

    Parameters

    • time: any

      current ingame time

    Returns void

Static getCachedSchema

  • getCachedSchema(): any

Static getId

  • getId(): string
  • Returns string

Static getSchema

  • getSchema(): object

Static verify

  • verify(data: any): string