Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VisualizeStorageComponent

The visualize storage component draws a visualizer, showing how much resources the @see StorageComponent currently contains. Mainly used by defensive towers.

Hierarchy

Index

Constructors

constructor

Methods

deserialize

  • deserialize(data: any): any

getDebugString

  • getDebugString(): string

serialize

  • serialize(): object

setDimensionsFromCommonSpriteIndex

  • setDimensionsFromCommonSpriteIndex(index: any): void
  • All sprites share the same position, so this method allows to reposition the indicator base on the common positions.

    Parameters

    • index: any

      The sprite index for the given level, from 0 ... 5

    Returns void

Static getCachedSchema

  • getCachedSchema(): any

Static getId

  • getId(): string
  • Returns string

Static getSchema

  • getSchema(): object

Static verify

  • verify(data: any): string