Options
All
  • Public
  • Public/Protected
  • All
Menu

An implementation of [[SaveReader]] for encrypted saves.

Hierarchy

  • SaveReaderEncrypted

Implements

  • SaveReader

Index

Constructors

constructor

Accessors

generation

generation:

isNewKey

isNewKey:

unlockedSlots

unlockedSlots:

Methods

getAllPkx

  • getAllPkx(): any[]

getPkx

scanSlots

  • scanSlots(pos1?: number, pos2?: number): void

Static getGeneration

  • getGeneration(file: Uint8Array): 6 | 7 | -1
  • Calculate and return the generation for a save file.

    Parameters

    • file: Uint8Array

      The file for which to get the generation

    Returns 6 | 7 | -1

Static getOffsets

  • getOffsets(generation: number): any
  • Get the offsets in save files for a supported generation.

    Parameters

    • generation: number

      The generation for which to get the offsets for you

    Returns any

Static getPkxRaw

  • getPkxRaw(boxes: Uint8Array, pos: number, key: SaveKey): [Uint8Array, boolean]
  • Get the raw data for a Pokémon from the key and raw boxes data.

    Parameters

    • boxes: Uint8Array

      The raw data of all boxes

    • pos: number

      The position from which to get the Pokémon

    • key: SaveKey

      The key to use

    Returns [Uint8Array, boolean]

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