Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
mac_02.inc.c
Go to the documentation of this file.
1
#include "
battle/battle.h
"
2
#include "
script_api/battle.h
"
3
#include "
mapfs/mac_bt02_shape.h
"
4
5
#define NAMESPACE A(mac_02)
6
7
EvtScript
N(
EVS_PreBattle
) = {
8
Call
(
SetSpriteShading
,
SHADING_NONE
)
9
Call
(
SetCamBGColor
,
CAM_BATTLE
, 0, 0, 0)
10
Call
(
EnableBattleFloorReflections
,
TRUE
)
11
Return
12
End
13
};
14
15
EvtScript
N(
EVS_PostBattle
) = {
16
Call
(
EnableBattleFloorReflections
,
FALSE
)
17
Return
18
End
19
};
20
21
Stage
NAMESPACE = {
22
.texture =
"mac_tex"
,
23
.shape =
"mac_bt02_shape"
,
24
.hit =
"mac_bt02_hit"
,
25
.preBattle = &N(
EVS_PreBattle
),
26
.postBattle = &N(
EVS_PostBattle
),
27
};
PopupMenu_SelectedIndex
BSS s32 PopupMenu_SelectedIndex
Definition
8a860_len_3f30.c:84
EvtScript
Bytecode EvtScript[]
Definition
common_structs.h:14
CAM_BATTLE
@ CAM_BATTLE
Definition
enums.h:1801
battle.h
mac_bt02_shape.h
SetSpriteShading
ApiStatus SetSpriteShading(Evt *script, b32 isInitialCall)
SetCamBGColor
ApiStatus SetCamBGColor(Evt *script, b32 isInitialCall)
End
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition
macros.h:213
Call
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition
macros.h:576
Return
#define Return
Kills the current EVT thread.
Definition
macros.h:217
battle.h
Stage
Definition
battle.h:181
src
battle
common
stage
area_mac
mac_02.inc.c
Generated by
1.10.0