Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GlobalEnhancementsComponent

Entities with this component provide a global bonus on the given stats to all structures of the same faction.

Additionally, there is a notAffectedBy property which allows the entity to opt out of global enhancements instead of providing some.

For example, the wall also has a global enhancements component, but he does not provide any enhancements, yet he has notAffectedBy set to ["health"] so he is unaffected by any global health bonuses (In particular the one from the playerbase)

Hierarchy

Index

Constructors

constructor

Methods

deserialize

  • deserialize(data: any): any

getDebugString

  • getDebugString(): string

getEnhancementAmountById

  • getEnhancementAmountById(id: any): any
  • Returns the amount of a given enhancement by its id, 0 by default

    Parameters

    • id: any

    Returns any

serialize

  • serialize(): object

Static getCachedSchema

  • getCachedSchema(): any

Static getId

  • getId(): string
  • Returns string

Static getSchema

  • getSchema(): object

Static verify

  • verify(data: any): string