Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • YEnergy

Index

Constructors

constructor

Methods

Static getGeneratedEnergy

  • getGeneratedEnergy(target: YEntity): number
  • Parameters

    Returns number

Static getOtherConnectedEntity

  • getOtherConnectedEntity(entity: YEntity, port: number, connected: (entity: YEntity, port: number) => void, noConnection: () => void): void
  • Parameters

    • entity: YEntity
    • port: number
    • connected: (entity: YEntity, port: number) => void
        • (entity: YEntity, port: number): void
        • Parameters

          Returns void

    • noConnection: () => void
        • (): void
        • Returns void

    Returns void

Static getPortCount

  • getPortCount(target: YEntity): number
  • Parameters

    Returns number

Static getRequiredEnergy

  • getRequiredEnergy(target: YEntity): number
  • Parameters

    Returns number

Static getUsedEnergy

  • getUsedEnergy(target: YEntity): number
  • Parameters

    Returns number

Static isEnergyPortConnected

  • isEnergyPortConnected(entity: YEntity, port: number): boolean
  • Parameters

    Returns boolean

Static linkEnergy

  • Parameters

    Returns void

  • Parameters

    Returns void

Static unlinkEnergy

  • unlinkEnergy(entity: YEntity, port: number): void
  • unlinkEnergy(entity: YEntity): void
  • Parameters

    Returns void

  • Parameters

    Returns void

Generated using TypeDoc