pokeemerald/include
DavidJCobb 7fd0029ed7
Add typedefs for MAPSEC and METLOC values (#2183)
Added typedefs: mapsec_t, metloc_t, and variants for MAPSEC and METLOC values. There are some rough edges that could do with smoothing out, but for now, this gets us close to ideal with a ROM that compares equal.

Per feedback, all typedefs to mention the underlying type within the typedef name. The documentation comments reflect and explain the naming convention.

Updated comments to reflect the fact that we're no longer using SET8 for a Pokemon's met locations, in favor of a new macro (added by this PR) that adjusts to match the width of whatever is being set.
2025-10-19 17:37:13 +01:00
..
constants Rename passive damage hitmarker (#2174) 2025-08-21 13:43:19 +01:00
gba Allow names for voicegroups and use a macro for use with drumsets (#2149) 2025-07-30 19:43:08 +01:00
agb_flash.h
AgbRfu_LinkManager.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
apprentice.h Renaming Script Contexts 2022-08-15 15:18:12 -04:00
bard_music.h Document bard music (#2053) 2025-01-17 17:54:38 +00:00
battle_ai_script_commands.h Rename battlerId to battler for consistency (#2126) 2025-05-09 12:43:23 +01:00
battle_ai_switch_items.h Fix AI Guard Spec use, and Specs->Spec 2021-04-03 15:18:17 -04:00
battle_anim.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
battle_arena.h Add some missing battle arena constants 2022-08-11 12:02:56 -04:00
battle_bg.h
battle_controllers.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
battle_dome.h
battle_factory_screen.h
battle_factory.h Add bugfix for Battle Factory trainer IVs 2022-03-30 09:37:03 -04:00
battle_gfx_sfx_util.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
battle_interface.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
battle_main.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
battle_message.h Automatically update nickname buffer sizes 2023-08-08 16:28:09 -04:00
battle_pike.h
battle_pyramid_bag.h Use TaskFunc wherever posible (#2188) 2025-10-18 17:53:50 +01:00
battle_pyramid.h Merge branch 'master' into _pret/pr/pyramidLocation 2025-06-30 11:51:45 -04:00
battle_records.h Rename battlerId to battler for consistency (#2126) 2025-05-09 12:43:23 +01:00
battle_script_commands.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
battle_scripts.h Document remainder of battle_controllers.c 2021-01-22 02:48:22 -05:00
battle_setup.h Rename battle terrain to environment 2024-07-13 12:02:18 +02:00
battle_tent.h
battle_tower.h Label remaining subs in battle_tower.c 2020-12-24 16:18:47 -05:00
battle_transition_frontier.h Drop battle transition 'phase' terminology 2021-10-25 10:20:48 -04:00
battle_transition.h Continue battle_transition documenting 2021-10-29 11:24:36 -04:00
battle_tv.h Replace: moveId -> move, moveIdx -> moveIndex (#2134) 2025-05-09 16:33:23 +01:00
battle_util.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
battle_util2.h Document some single-remaining symbols 2021-09-24 17:14:20 -04:00
battle.h Use MainCallback wherever posible (#2184) 2025-10-14 09:41:27 +01:00
berry_blender.h Finish documenting berry blender 2020-08-24 17:06:55 -04:00
berry_crush.h Document Berry Crush 2021-03-18 15:18:23 -04:00
berry_fix_program.h
berry_powder.h
berry_tag_screen.h
berry.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
bg.h remove gflib 2024-09-18 10:37:34 -04:00
bike.h Misc cleanup 2022-01-04 10:09:42 -05:00
blit.h remove gflib 2024-09-18 10:37:34 -04:00
braille_puzzles.h
cable_club.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
clear_save_data_menu.h
clock.h
coins.h
confetti_util.h
config.h [debug] add support for mgba printf 2022-09-06 13:40:31 +02:00
contest_ai.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
contest_effect.h
contest_link.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
contest_painting.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
contest_util.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
contest.h Streamline pointer notation (#2139) 2025-05-16 12:04:44 +01:00
coord_event_weather.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
credits.h Remove ewram in headers 2023-08-10 20:11:07 -04:00
crt0.h Update modern linker script 2021-11-04 17:28:41 -04:00
data.h Clean up defines lacking spaces 2024-08-15 19:34:56 +02:00
daycare.h Document record mixing mail swap 2021-10-24 15:49:19 -04:00
decompress.h Detect potential misalignment in modern 2023-07-24 19:42:56 +01:00
decoration_inventory.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
decoration.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
dewford_trend.h Document Dewford Trend 2021-03-31 16:08:42 -04:00
digit_obj_util.h Document some generic argument names 2022-05-31 14:34:25 -04:00
diploma.h
dma3.h remove gflib 2024-09-18 10:37:34 -04:00
dodrio_berry_picking.h Use MainCallback wherever posible (#2184) 2025-10-14 09:41:27 +01:00
dynamic_placeholder_text_util.h
easy_chat.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
egg_hatch.h
ereader_helpers.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
ereader_screen.h Document some mystery gift 2021-10-14 15:10:41 -04:00
event_data.h General mystery gift documentation, finish mystery gift client/server/scripts 2021-10-16 23:35:17 -04:00
event_object_lock.h Fix some object lock names 2021-05-04 01:21:50 -04:00
event_object_movement.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
event_scripts.h Document battle tower TV show 2022-06-14 09:37:39 -04:00
evolution_graphics.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
evolution_scene.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
faraway_island.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
field_camera.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
field_control_avatar.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
field_door.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
field_effect_helpers.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
field_effect.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
field_message_box.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
field_player_avatar.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
field_poison.h
field_screen_effect.h Finish updating macro comments 2021-11-18 01:47:58 -05:00
field_special_scene.h Continue documenting generic arguments 2022-06-03 15:38:03 -04:00
field_specials.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
field_tasks.h
field_weather.h Merge branch 'master' into thunder 2022-10-18 04:37:56 +00:00
fieldmap.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
fldeff_misc.h Continue documenting generic arguments 2022-06-03 15:38:03 -04:00
fldeff.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
fonts.h Convert fonts.s to C 2021-10-31 01:44:18 -04:00
frontier_pass.h
frontier_util.h
gametypes.h Add typedefs for MAPSEC and METLOC values (#2183) 2025-10-19 17:37:13 +01:00
global.berry.h Documenting padding in structs used by Saveblocks 2022-12-17 22:55:43 -03:00
global.fieldmap.h Add typedefs for MAPSEC and METLOC values (#2183) 2025-10-19 17:37:13 +01:00
global.h Add typedefs for MAPSEC and METLOC values (#2183) 2025-10-19 17:37:13 +01:00
global.tv.h Add typedefs for MAPSEC and METLOC values (#2183) 2025-10-19 17:37:13 +01:00
gpu_regs.h remove gflib 2024-09-18 10:37:34 -04:00
graphics.h Match graphics declarations with externs (#2089) 2025-06-23 20:31:18 +01:00
gym_leader_rematch.h Fix trainer match call flags 2024-08-15 23:00:20 +02:00
hall_of_fame.h
heal_location.h Move heal locations data to their associated map.json (#2034) 2024-10-11 15:15:55 -04:00
image_processing_effects.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
international_string_util.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
intro_credits_graphics.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
intro.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
io_reg.h remove gflib 2024-09-18 10:37:34 -04:00
item_icon.h Strangest match 2021-02-28 10:06:07 -06:00
item_menu_icons.h Document item menu 2021-08-10 22:13:02 -04:00
item_menu.h Use TaskFunc wherever posible (#2188) 2025-10-18 17:53:50 +01:00
item_use.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
item.h Rename ItemId_GetX to GetItemX (#2116) 2025-05-22 13:27:52 +01:00
landmark.h Add typedefs for MAPSEC and METLOC values (#2183) 2025-10-19 17:37:13 +01:00
libgcnmultiboot.h
librfu.h Correct C23 Checks (#2144) 2025-05-19 15:43:06 +01:00
lilycove_lady.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
link_rfu.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
link.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
list_menu.h sync list menu functions with firered 2025-06-02 22:51:26 +02:00
load_save.h [doc] fix misnamed dma <--> aslr 2022-09-07 14:37:03 +02:00
lottery_corner.h
m4a.h
mail.h Use MainCallback wherever posible (#2184) 2025-10-14 09:41:27 +01:00
main_menu.h Continue documenting generic arguments 2022-06-03 15:38:03 -04:00
main.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
malloc.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
map_name_popup.h
match_call.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
math_util.h
mauville_old_man.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
menu_helpers.h Document some generic argument names 2022-05-31 14:34:25 -04:00
menu_specialized.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
menu.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
metatile_behavior.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
mini_printf.h Streamline pointer notation (#2139) 2025-05-16 12:04:44 +01:00
minigame_countdown.h
mirage_tower.h
mon_markings.h Detect potential misalignment in modern 2023-07-24 19:42:56 +01:00
money.h Standarized use of star in pointer types 2022-07-29 10:17:58 -04:00
move_relearner.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
multiboot_pokemon_colosseum.h
multiboot.h
mystery_event_menu.h
mystery_event_msg.h Correct usage of MysteryEvent to MysteryGift 2021-10-17 03:00:48 -04:00
mystery_event_script.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
mystery_gift_client.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
mystery_gift_link.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
mystery_gift_menu.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
mystery_gift_server.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
mystery_gift_view.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
mystery_gift.h Correct usage of MysteryEvent to MysteryGift 2021-10-17 03:00:48 -04:00
naming_screen.h Start documenting naming screen 2020-08-07 02:00:41 -04:00
new_game.h
option_menu.h
overworld.h Add typedefs for MAPSEC and METLOC values (#2183) 2025-10-19 17:37:13 +01:00
palette_util.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
palette.h Detect potential misalignment in modern 2023-07-24 19:42:56 +01:00
party_menu.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
pc_screen_effect.h
play_time.h
player_pc.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
pokeball.h Fix priortiy typos 2023-07-19 17:33:28 +02:00
pokeblock.h Move pokemon and easy chat constants to global, misc clean-up 2021-12-28 18:07:41 -05:00
pokedex_area_region_map.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
pokedex_area_screen.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
pokedex_cry_screen.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
pokedex.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
pokemon_animation.h Document pokemon animation types 2021-04-10 00:50:28 -04:00
pokemon_icon.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
pokemon_jump.h Document pokemon jump 2021-02-26 17:26:39 -05:00
pokemon_size_record.h
pokemon_storage_system.h Replace: moveId -> move, moveIdx -> moveIndex (#2134) 2025-05-09 16:33:23 +01:00
pokemon_summary_screen.h Clean up pokemon/ball/dex mentions in comments 2023-12-12 19:02:36 +01:00
pokemon.h Add typedefs for MAPSEC and METLOC values (#2183) 2025-10-19 17:37:13 +01:00
pokenav.h Add typedefs for MAPSEC and METLOC values (#2183) 2025-10-19 17:37:13 +01:00
random.h Clean up defines lacking spaces 2024-08-15 19:34:56 +02:00
rayquaza_scene.h Use MainCallback wherever posible (#2184) 2025-10-14 09:41:27 +01:00
record_mixing.h Document record mixing mail swap 2021-10-24 15:49:19 -04:00
recorded_battle.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
region_map.h Add typedefs for MAPSEC and METLOC values (#2183) 2025-10-19 17:37:13 +01:00
reload_save.h Continue misc link documentation, rename reset_save_heap 2021-10-05 23:37:54 -04:00
reset_rtc_screen.h
reshow_battle_screen.h Document battle_controller_player.c 2021-01-22 20:03:27 -05:00
roamer.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
rotating_gate.h Fix conflicting types for rotating gate functions (#2087) 2025-01-17 18:19:21 -05:00
rotating_tile_puzzle.h
roulette.h More roulette doc 2020-08-04 14:25:13 -04:00
rtc.h
safari_zone.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
save_location.h
save.h Use MainCallback wherever posible (#2184) 2025-10-14 09:41:27 +01:00
scanline_effect.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
script_menu.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
script_movement.h
script_pokemon_util.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
script.h Moving documentation comments per request 2022-08-15 16:37:38 -04:00
secret_base.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
shop.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
siirtc.h Renamed time amounts 2023-09-20 19:04:50 -03:00
slot_machine.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
sound.h Review changes 2022-07-29 15:38:23 -04:00
sprite.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
start_menu.h Standarized use of star in pointer types 2022-07-29 10:17:58 -04:00
starter_choose.h Colorize and combine birch_bag/birch_grass 2023-01-12 15:22:23 -05:00
string_util.h remove gflib 2024-09-18 10:37:34 -04:00
strings.h Add PokéNav too 2023-12-12 23:20:22 +01:00
task.h Use TASK_NONE constant 2021-02-24 11:03:25 -05:00
text_window.h Document files with a few remaining symbols 2021-11-02 18:06:06 -04:00
text.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
tileset_anims.h Convert tilesets.s to C 2022-09-27 17:23:26 -04:00
tilesets.h Streamline pointer notation (#2139) 2025-05-16 12:04:44 +01:00
time_events.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
title_screen.h Document intro, start intro_credits/credits 2021-03-28 23:13:56 -04:00
trade.h Move gTradePlatform_Tilemap to header (#2088) 2025-06-22 19:48:37 -04:00
trader.h
trainer_card.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
trainer_hill.h Added a constant for NPC trainer name length (#1712) 2022-07-25 22:59:13 -04:00
trainer_pokemon_sprites.h Clean up trainer_pokemon_sprites 2021-10-18 01:56:24 -04:00
trainer_see.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
trig.h
tv.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
union_room_battle.h
union_room_chat.h
union_room_player_avatar.h Update argument names in link headers, link_rfu doc cleanup 2021-10-07 16:05:12 -04:00
union_room.h Cleaned trailing whitespace 2022-09-11 14:14:49 -04:00
util.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
walda_phrase.h Document walda_phrase 2021-09-26 17:01:39 -04:00
wallclock.h
wild_encounter.h Update header files to match source files (#2143) 2025-05-19 09:18:04 +01:00
window.h remove gflib 2024-09-18 10:37:34 -04:00
wonder_news.h Document wonder news 2022-11-22 02:17:03 -05:00