Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LaserComponent

Hierarchy

Index

Constructors

constructor

  • Parameters

    • __namedParameters: object
      • consumePerShot: number
      • consumeResource: any
      • damageType: any
      • shootIntervalSeconds: number
      • shotDamageTickInterval: number
      • shotDurationSeconds: number
      • shotLengthWorldSpace: number

    Returns LaserComponent

Methods

deserialize

  • deserialize(data: any): any

getDebugString

  • getDebugString(): string

isCurrentlyShooting

  • isCurrentlyShooting(time: any): boolean
  • Returns if the laser is currently shooting and thus may not aim further

    Parameters

    • time: any

    Returns boolean

serialize

  • serialize(): object

Static getCachedSchema

  • getCachedSchema(): any

Static getId

  • getId(): string
  • Returns string

Static getSchema

  • getSchema(): object

Static verify

  • verify(data: any): string