mirror of
https://github.com/pret/pmd-red.git
synced 2026-08-28 19:55:09 -05:00
move map script table to C
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
9
include/map_script_table.h
Normal file
9
include/map_script_table.h
Normal 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
|
||||
Reference in New Issue
Block a user