Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RCAPI

Hierarchy

  • RCAPI

Index

Constructors

constructor

Properties

client

client: Client

Methods

Private _calculateManabar

  • _calculateManabar(max_mana: number, __namedParameters: object): Manabar
  • Internal convenience method to reduce redundant code

    Parameters

    • max_mana: number
    • __namedParameters: object
      • current_mana: any
      • last_update_time: any

    Returns Manabar

calculateRCMana

calculateVPMana

call

  • call(method: string, params?: any): Promise<any>
  • Convenience for calling rc_api.

    Parameters

    • method: string
    • Optional params: any

    Returns Promise<any>

findRCAccounts

  • findRCAccounts(usernames: string[]): Promise<RCAccount[]>
  • Returns RC data for array of usernames

    Parameters

    • usernames: string[]

    Returns Promise<RCAccount[]>

getRCMana

  • getRCMana(username: string): Promise<Manabar>
  • Makes a API call and returns the RC mana-data for a specified username

    Parameters

    • username: string

    Returns Promise<Manabar>

getResourceParams

  • getResourceParams(): Promise<RCParams>

getResourcePool

  • getResourcePool(): Promise<RCPool>

getVPMana

  • getVPMana(username: string): Promise<Manabar>
  • Makes a API call and returns the VP mana-data for a specified username

    Parameters

    • username: string

    Returns Promise<Manabar>

Generated using TypeDoc