AnimaEngine  1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
json_export.h
Go to the documentation of this file.
1 
6 #ifndef JSON_EXPORT_H
7 #define JSON_EXPORT_H
8 
9 #include "common.h"
10 #include "ncer.h"
11 #include "nclr.h"
12 
13 #define JSON_PATH_BUFFER_SIZE 4096
18 typedef struct JsonMemberInfo {
19  int offset;
20  int member_id;
21  size_t raw_size;
22  size_t decoded_size;
23  char compression[32];
24  char magic[5];
25  char type[32];
29 
39  const char *json_dir,
40  int species,
41  int base,
42  const JsonMemberInfo members[20]
43 );
44 
50 int Json_WritePalettes(const char *out_dir);
51 
58 int Json_WriteCells(const char *out_dir, int tile_stride);
59 
66 int Json_WriteAnimation(const char *out_dir, int tile_stride);
67 
68 #endif
69 
Common types, macros, and standard library includes used throughout AnimaEngine.
int Json_WritePalettes(const char *out_dir)
Stub helper to write debug palettes metadata.
Definition: json_export.c:180
int Json_WriteManifest(const char *json_dir, int species, int base, const JsonMemberInfo members[20])
Writes complete metadata manifest JSON for a Pokemon species.
Definition: json_export.c:58
int Json_WriteCells(const char *out_dir, int tile_stride)
Stub helper to write cell layout configurations.
Definition: json_export.c:326
#define JSON_PATH_BUFFER_SIZE
Definition: json_export.h:13
int Json_WriteAnimation(const char *out_dir, int tile_stride)
Stub helper to write animation timeline data.
Definition: json_export.c:695
struct JsonMemberInfo JsonMemberInfo
Metadata describing a single member record parsed from an NARC archive.
Nintendo Cell Resource (.NCER) parser representing individual 2D sprite composite elements.
Nintendo Color Resource (.NCLR) palette parser.
Metadata describing a single member record parsed from an NARC archive.
Definition: json_export.h:18
char magic[5]
Definition: json_export.h:24
char nds_path[JSON_PATH_BUFFER_SIZE]
Definition: json_export.h:27
int offset
Definition: json_export.h:19
int member_id
Definition: json_export.h:20
char compression[32]
Definition: json_export.h:23
char raw_path[JSON_PATH_BUFFER_SIZE]
Definition: json_export.h:26
size_t raw_size
Definition: json_export.h:21
size_t decoded_size
Definition: json_export.h:22
char type[32]
Definition: json_export.h:25