pokeheartgold/files/data/resdat.json.txt
2024-03-06 07:54:36 -05:00

55 lines
1.1 KiB
Plaintext

{{ doNotModifyHeader }}
#include "global.h"
#include "unk_02009D48.h"
{% if isString(kind) %}
{{ setVarArr("GfGfxResType", "char", "pltt", "cell", "anim", "multicell", "multianim") }}
const struct GF_2DGfxResHeaderNarcList data = {
(GfGfxResType){{ getIndexInArr("GfGfxResType", kind) }},
{
{% for res in graphics %}
{
{{ res.narc }},
{{ res.file }},
{% if res.compressed %}TRUE{% else %}FALSE{% endif %},
{{ res.id }},
{ {{ res.extra.0 }}, {{ res.extra.1 }} }
},
{% endfor %}
{
-2,
-2,
-2,
-2,
{-2, -2}
}
}
};
{% else %}
const struct ResdatNarcEntry data[] = {
{% for entry in entries %}
{
{{ entry.graphics }},
{{ entry.palette }},
{{ entry.cell }},
{{ entry.anim }},
{{ default(entry.multicell, -1) }},
{{ default(entry.multianim, -1) }},
{{ entry.transfer }},
{{ entry.priority }}
},
{% endfor %}
{
-2,
-2,
-2,
-2,
-2,
-2,
-2,
-2,
}
};
{% endif %}