Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
sam_04.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3
4#define NAMESPACE A(sam_04)
5
7
11
12EvtScript N(EVS_PreBattle) = {
13 Call(SetSpriteShading, SHADING_NONE)
14 Exec(N(EVS_SpawnSnowfall))
15 Return
16 End
17};
18
19EvtScript N(EVS_PostBattle) = {
20 Return
21 End
22};
23
24Stage NAMESPACE = {
25 .texture = "sam_tex",
26 .shape = "sam_bt04_shape",
27 .hit = "sam_bt04_hit",
28 .bg = "sam_bg",
29 .preBattle = &N(EVS_PreBattle),
30 .postBattle = &N(EVS_PostBattle),
31};
Bytecode EvtScript[]
void enable_background_wave(void)
Definition background.c:309
void N EnableBackgroundWave(void)
Definition sam_04.inc.c:8
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 Exec(EVT_SOURCE)
Launches a new thread.
Definition macros.h:455
#define Return
Kills the current EVT thread.
Definition macros.h:217