papermario/src/code_a5dd0_len_114e0.c

346 lines
9.0 KiB
C
Raw Normal View History

2020-08-04 08:49:11 +02:00
#include "common.h"
INCLUDE_ASM("code_a5dd0_len_114e0", update_entities);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", update_shadows);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8010FBC0);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8010FBD8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8010FD68);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8010FD98);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8010FEB4);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_801100CC);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011022C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80110374);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_801104A4);
2020-08-04 08:49:11 +02:00
2020-09-18 07:51:36 +02:00
Entity* get_entity_by_index(s32 index) {
return (*gCurrentEntityListPtr)[index & 0xFFF];
}
2020-08-04 08:49:11 +02:00
2020-09-18 07:51:36 +02:00
Shadow* get_shadow_by_index(s32 index) {
return (*gCurrentShadowListPtr)[index & 0xFFF];
}
2020-08-04 08:49:11 +02:00
2020-09-18 07:51:36 +02:00
Entity** get_entity_list(void) {
Entity** ret;
if (!GAME_STATUS->isBattle) {
ret = gWorldEntityList;
} else {
ret = gBattleEntityList;
}
return ret;
}
Shadow** get_shadow_list(void) {
Shadow** ret;
if (!GAME_STATUS->isBattle) {
ret = gWorldShadowList;
} else {
ret = gBattleShadowList;
}
return ret;
}
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80110678);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_801106A4);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_801106D0);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80110790);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011085C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_801108B8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", test_player_entity_aabb);
2020-08-04 08:49:11 +02:00
2020-09-18 07:51:36 +02:00
s32 is_player_action_state(ActionState actionState) {
return actionState == gPlayerActionState;
}
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80110BCC);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", load_entity_data);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80110CB8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80110E58);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80110F10);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_801110B4);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011115C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_801112A4);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80111408);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80111790);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_801117DC);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", create_entity);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", create_shadow_from_data);
2020-08-04 08:49:11 +02:00
INCLUDE_API_ASM("code_a5dd0_len_114e0", MakeEntity);
2020-08-04 08:49:11 +02:00
INCLUDE_API_ASM("code_a5dd0_len_114e0", AssignScript);
2020-08-04 08:49:11 +02:00
INCLUDE_API_ASM("code_a5dd0_len_114e0", AssignAreaFlag);
2020-08-04 08:49:11 +02:00
INCLUDE_API_ASM("code_a5dd0_len_114e0", AssignBlockFlag);
2020-08-04 08:49:11 +02:00
INCLUDE_API_ASM("code_a5dd0_len_114e0", AssignFlag);
2020-08-04 08:49:11 +02:00
INCLUDE_API_ASM("code_a5dd0_len_114e0", AssignPanelFlag);
2020-08-04 08:49:11 +02:00
INCLUDE_API_ASM("code_a5dd0_len_114e0", AssignCrateFlag);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", create_entity_shadow);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", create_shadow_type);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80112328);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80112344);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_801125E8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", set_standard_shadow_scale);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80112900);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", set_shadow_scale_peach);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80112B20);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80112B98);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80112CA8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80112D84);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", step_current_game_mode);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", render_ui);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80112FC4);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80113090);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80114B58);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", load_tile_header);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80115498);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", get_model_property);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", _load_model_textures);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", load_model_textures);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80115CA8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", clear_model_data);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", init_model_data);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", calculate_model_sizes);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011620C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80116674);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80116698);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", render_models);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80117C94);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80117D00);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80117E74);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_801180E8);
2020-08-04 08:49:11 +02:00
2020-09-18 07:51:36 +02:00
Model* get_model_from_list_index(s32 listIndex) {
return (*gCurrentModelListPtr)[listIndex];
}
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", load_data_for_models);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", load_model_transforms);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", get_model_list_index_from_tree_index);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011B090);
2020-08-04 08:49:11 +02:00
2020-09-22 23:36:30 +02:00
INCLUDE_ASM_T(void, "code_a5dd0_len_114e0", get_model_center_and_size, s32 modelID, f32* centerX, f32* centerY,
2020-09-19 17:17:53 +02:00
f32* centerZ, f32* sizeX, f32* sizeY, f32* sizeZ);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011B1C0);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011B1D8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011B37C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011B5D0);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011B660);
2020-08-04 08:49:11 +02:00
2020-09-22 23:36:30 +02:00
INCLUDE_ASM_T(void, "code_a5dd0_len_114e0", clone_model, u16 srcModelID, u16 newModelID);
2020-08-04 08:49:11 +02:00
2020-09-22 23:36:30 +02:00
INCLUDE_ASM_T(void, "code_a5dd0_len_114e0", func_8011B7C0, u16 arg0, s32 arg1, s32 arg2);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011B950);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011BAE8);
2020-08-04 08:49:11 +02:00
2020-09-18 07:51:36 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", set_world_fog_color);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011BBA4);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", get_fog_color);
2020-08-04 08:49:11 +02:00
2020-09-18 07:51:36 +02:00
void set_tex_panner(Model* model, s8 texPannerID) {
model->texPannerID = texPannerID;
}
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", set_main_pan_u);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", set_main_pan_v);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", set_aux_pan_u);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", set_aux_pan_v);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011BC7C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011BCB4);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011BCD0);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011BCEC);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011BE14);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011BE5C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011BE80);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011BFD4);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011C028);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011C0DC);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011C130);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011C164);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011C32C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011D72C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011D7E4);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011D82C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011D890);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", queue_render_task);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011D9B8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011DE80);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011DFD0);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E014);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E058);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E09C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E0DC);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E150);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E1C4);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E224);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E310);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E398);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E400);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E438);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E4B8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E5E0);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E718);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011E8BC);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011EA54);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011EBF0);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011F058);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011F118);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011F304);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011F3E8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011FA54);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011FF74);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011FF98);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011FFB4);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_8011FFE0);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80120000);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", play_model_animation);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80120198);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80120234);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_801203AC);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80120420);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80120474);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80120530);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_80120678);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_a5dd0_len_114e0", func_801206F8);