Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
trd_04.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3
4#define NAMESPACE A(trd_04)
5
7
8EvtScript N(EVS_PreBattle) = {
9 Call(SetSpriteShading, SHADING_NONE)
13 Set(LVar2, 40)
14 Set(LVar3, 0)
15 Exec(N(EVS_TexturePanMain))
16 Return
17 End
18};
19
20EvtScript N(EVS_PostBattle) = {
21 Return
22 End
23};
24
25s32 N(ForegroundModels)[] = {
28};
29
30Stage NAMESPACE = {
31 .texture = "trd_tex",
32 .shape = "trd_bt04_shape",
33 .hit = "trd_bt04_hit",
34 .preBattle = &N(EVS_PreBattle),
35 .postBattle = &N(EVS_PostBattle),
36 .foregroundModelList = N(ForegroundModels),
37};
Bytecode EvtScript[]
@ TEX_PANNER_0
Definition enums.h:4398
@ CAM_BATTLE
Definition enums.h:1801
ApiStatus SetSpriteShading(Evt *script, b32 isInitialCall)
ApiStatus SetCamBGColor(Evt *script, b32 isInitialCall)
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
Definition macros.h:365
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define LVar2
Definition macros.h:150
#define LVar1
Definition macros.h:149
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define LVar3
Definition macros.h:151
#define LVar0
Definition macros.h:148
#define Exec(EVT_SOURCE)
Launches a new thread.
Definition macros.h:455
#define Return
Kills the current EVT thread.
Definition macros.h:217
#define STAGE_MODEL_LIST_END
Definition battle.h:8
#define MODEL_hikari1