Options
All
  • Public
  • Public/Protected
  • All
Menu

A class to allow accessing the teams stored in a battle video with the appropriate key.

Hierarchy

  • BattleVideoReader

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

generation

generation: number

The generation this battle video is from.

Accessors

video

video:

The raw battle video data this reader is accessing.

workingKeys

workingKeys:

Get an array of flags indicating which parties are readable with the given key.

Methods

getAllPkx

  • getAllPkx(): any[]

getPkx

  • getPkx(slot: number, team: number): PkBase
  • Read any Pokémon from the battle video. If the slot cannot be decrypted or there is no Pokémon there, return undefined.

    Parameters

    • slot: number

      The Pokémons position in the team

    • team: number

      The number of the team the Pokémon is in

    Returns PkBase

Static getGeneration

  • getGeneration(video: Uint8Array): 6 | 7 | -1
  • Get the generation a battle video is from.

    Parameters

    • video: Uint8Array

      The battle video to check

    Returns 6 | 7 | -1

    The generation

Static getOffsets

  • getOffsets(generation: number): any
  • Get the offsets the parties are stored at in a battle video in a given generation.

    Parameters

    • generation: number

      The generation for which to retrieve the offsets

    Returns any

    The relevant offsets

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc