Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BuffComponent

Stores all buffs an entity provides (usually within the transport range)

Hierarchy

Index

Constructors

constructor

Methods

addBuff

  • addBuff(buff: any): void
  • Adds a new buff to this entity

    Parameters

    • buff: any

    Returns void

deserialize

  • deserialize(data: any): any

getBuffs

  • getBuffs(): any[]
  • Returns all buffs on this entity

    Returns any[]

getDebugString

  • getDebugString(): string

removeBuff

  • removeBuff(buff: any): void
  • Removes a buff from this entity

    Parameters

    • buff: any

    Returns void

serialize

  • serialize(): object

Static getCachedSchema

  • getCachedSchema(): any

Static getId

  • getId(): string
  • Returns string

Static getSchema

  • getSchema(): object

Static verify

  • verify(data: any): string