2021-10-29 19:57:15 +02:00
|
|
|
#include "functions.h"
|
|
|
|
#include "npc.h"
|
|
|
|
|
2021-06-30 04:27:12 +02:00
|
|
|
void state_world_draw_aux_ui(void);
|
2020-07-15 08:24:54 +02:00
|
|
|
|
2021-06-30 04:27:12 +02:00
|
|
|
void state_init_world(void) {
|
|
|
|
game_mode_set_fpDrawAuxUI(0, state_world_draw_aux_ui);
|
2020-07-15 08:24:54 +02:00
|
|
|
}
|
|
|
|
|
2021-06-30 04:27:12 +02:00
|
|
|
void state_step_world(void) {
|
|
|
|
update_encounters();
|
|
|
|
update_npcs();
|
2020-09-24 05:16:13 +02:00
|
|
|
update_player();
|
2020-07-15 08:24:54 +02:00
|
|
|
update_item_entities();
|
2021-02-06 16:20:35 +01:00
|
|
|
update_effects();
|
2023-01-22 16:35:43 +01:00
|
|
|
iterate_models();
|
2020-07-15 08:24:54 +02:00
|
|
|
update_cameras();
|
|
|
|
}
|
|
|
|
|
2021-06-30 04:27:12 +02:00
|
|
|
void state_drawUI_world(void) {
|
2020-09-24 05:16:13 +02:00
|
|
|
draw_status_ui();
|
2021-02-06 16:20:35 +01:00
|
|
|
draw_encounter_ui();
|
2020-07-15 08:24:54 +02:00
|
|
|
func_8013A6E8();
|
|
|
|
}
|
|
|
|
|
2021-06-30 04:27:12 +02:00
|
|
|
void state_world_draw_aux_ui(void) {
|
2021-02-06 16:20:35 +01:00
|
|
|
draw_first_strike_ui();
|
2020-07-15 08:24:54 +02:00
|
|
|
}
|