Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
Pipe.inc.c File Reference

Go to the source code of this file.

Macros

#define EVT_EXIT_PIPE_HORIZONTAL(entry, collider, script)
 
#define EVT_EXIT_PIPE_VERTICAL(entry, collider, script)
 
#define EVT_ENTER_PIPE_HORIZONTAL(collider, bindExitsScript)
 
#define EVT_ENTER_PIPE_VERTICAL(bindExitsScript)
 

Macro Definition Documentation

◆ EVT_EXIT_PIPE_HORIZONTAL

#define EVT_EXIT_PIPE_HORIZONTAL ( entry,
collider,
script )
Value:
{ \
SetGroup(EVT_GROUP_EXIT_MAP) \
Set(LVarA, entry) \
Set(LVarB, collider) \
Set(LVarC, Ref(script)) \
ExecWait(N(EVS_Pipe_ExitHorizontal)) \
Return \
End \
}
@ EVT_GROUP_EXIT_MAP
Definition evt.h:145
#define Ref(sym)
Address/pointer constant.
Definition macros.h:60
#define LVarC
Definition macros.h:160
#define LVarB
Definition macros.h:159
#define LVarA
Definition macros.h:158

Definition at line 8 of file Pipe.inc.c.

8#define EVT_EXIT_PIPE_HORIZONTAL(entry, collider, script) \
9{ \
10 SetGroup(EVT_GROUP_EXIT_MAP) \
11 Set(LVarA, entry) \
12 Set(LVarB, collider) \
13 Set(LVarC, Ref(script)) \
14 ExecWait(N(EVS_Pipe_ExitHorizontal)) \
15 Return \
16 End \
17}

◆ EVT_EXIT_PIPE_VERTICAL

#define EVT_EXIT_PIPE_VERTICAL ( entry,
collider,
script )
Value:
{ \
SetGroup(EVT_GROUP_EXIT_MAP) \
Set(LVarA, entry) \
Set(LVarB, collider) \
Set(LVarC, Ref(script)) \
ExecWait(N(EVS_Pipe_ExitVertical)) \
Return \
End \
}

Definition at line 19 of file Pipe.inc.c.

19#define EVT_EXIT_PIPE_VERTICAL(entry, collider, script) \
20{ \
21 SetGroup(EVT_GROUP_EXIT_MAP) \
22 Set(LVarA, entry) \
23 Set(LVarB, collider) \
24 Set(LVarC, Ref(script)) \
25 ExecWait(N(EVS_Pipe_ExitVertical)) \
26 Return \
27 End \
28}

◆ EVT_ENTER_PIPE_HORIZONTAL

#define EVT_ENTER_PIPE_HORIZONTAL ( collider,
bindExitsScript )
Value:
Set(LVarA, Ref(bindExitsScript)) \
Set(LVarB, collider) \
Exec(N(EVS_Pipe_EnterHorizontal))
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
Definition macros.h:365

Definition at line 30 of file Pipe.inc.c.

30#define EVT_ENTER_PIPE_HORIZONTAL(collider, bindExitsScript) \
31 Set(LVarA, Ref(bindExitsScript)) \
32 Set(LVarB, collider) \
33 Exec(N(EVS_Pipe_EnterHorizontal))

◆ EVT_ENTER_PIPE_VERTICAL

#define EVT_ENTER_PIPE_VERTICAL ( bindExitsScript)
Value:
Set(LVarA, Ref(bindExitsScript)) \
Exec(N(EVS_Pipe_EnterVertical))

Definition at line 35 of file Pipe.inc.c.

35#define EVT_ENTER_PIPE_VERTICAL(bindExitsScript) \
36 Set(LVarA, Ref(bindExitsScript)) \
37 Exec(N(EVS_Pipe_EnterVertical))