move map script table to C

This commit is contained in:
DizzyEggg
2025-06-16 21:55:26 +02:00
parent aead764c7c
commit 24bf8eaa89
10 changed files with 493 additions and 253 deletions

View File

@@ -222,7 +222,8 @@ enum {
MAP_D21,
MAP_D22,
MAP_D23,
MAP_D24,
MAP_D24_1,
MAP_D24_2,
MAP_D25,
MAP_PERSONALITY_TEST_MULTICOLOR,
MAP_TITLE_SCREEN,

View File

@@ -2,7 +2,7 @@
#include "constants/item.h"
#include "constants/ground_map.h"
#include "structs/str_ground_script.h"
#define LPARRAY(x) (sizeof(x)/sizeof(*(x))), x
#define LPARRAY(x) (ARRAY_COUNT(x)), x
#define CPOS_HALFTILE 0x2
#define CPOS_CURRENT 0x4

View File

@@ -13,6 +13,6 @@ typedef struct GroundConversionStruct
/* 0x8 */ const u8 *text;
} GroundConversionStruct;
extern const GroundConversionStruct gGroundMapConversionTable[MAP_COUNT + 1];
extern const GroundConversionStruct gGroundMapConversionTable[MAP_COUNT];
#endif // GUARD_GROUND_MAP_CONVERSION_TABLE_H

View File

@@ -0,0 +1,9 @@
#ifndef GUARD_MAP_SCRIPT_TABLE_H
#define GUARD_MAP_SCRIPT_TABLE_H
#include "constants/ground_map.h"
#include "structs/str_ground_script.h"
extern const struct GroundScriptHeader *const gMapScriptTable[MAP_COUNT];
#endif // GUARD_MAP_SCRIPT_TABLE_H