AnimaEngine  1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
Functions
coords.c File Reference

Implementations of Pokemon coordinate mapping functions. More...

#include "coords.h"
#include "file_util.h"
#include "nitro_util.h"

Functions

int Coord_Parse (const u8 *data, size_t size, CoordFile *out)
 Parses coordinate records from raw binary data. More...
 
void Coord_Free (CoordFile *coords)
 Deallocates all resources held inside a CoordFile structure. More...
 

Detailed Description

Implementations of Pokemon coordinate mapping functions.

Function Documentation

◆ Coord_Free()

void Coord_Free ( CoordFile coords)

Deallocates all resources held inside a CoordFile structure.

Parameters
coordsPointer to the CoordFile structure to clear.

◆ Coord_Parse()

int Coord_Parse ( const u8 data,
size_t  size,
CoordFile out 
)

Parses coordinate records from raw binary data.

Parameters
dataPointer to the binary source data buffer.
sizeSize of the data buffer in bytes.
outPointer to the CoordFile structure to populate.
Returns
0 on success; negative value on error.