Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
mim_01.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3
4#define NAMESPACE A(mim_01)
5
6API_CALLABLE(N(SetupFog)) {
8 set_world_fog_dist(950, 1000);
9 set_world_fog_color(16, 16, 16, 255);
13
14 return ApiStatus_DONE2;
15}
16
17EvtScript N(EVS_PreBattle) = {
18 Call(SetSpriteShading, SHADING_NONE)
19 Call(N(SetupFog))
20 Return
21 End
22};
23
24EvtScript N(EVS_PostBattle) = {
25 Return
26 End
27};
28
29Stage NAMESPACE = {
30 .texture = "mim_tex",
31 .shape = "mim_bt01_shape",
32 .hit = "mim_bt01_hit",
33 .preBattle = &N(EVS_PreBattle),
34 .postBattle = &N(EVS_PostBattle),
35};
Bytecode EvtScript[]
@ CAM_BATTLE
Definition enums.h:1801
#define ApiStatus_DONE2
Definition evt.h:118
void set_world_fog_color(s32 r, s32 g, s32 b, s32 a)
Definition model.c:3789
void enable_world_fog(void)
Definition model.c:3776
void set_world_fog_dist(s32 start, s32 end)
Definition model.c:3784
ApiStatus SetSpriteShading(Evt *script, b32 isInitialCall)
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define Return
Kills the current EVT thread.
Definition macros.h:217
s16 bgColor[3]
Camera gCameras[4]
Definition cam_main.c:17