Melee Modding Library  2.0.0
A C library for modding Super Smash Bros Melee
logic.h
Go to the documentation of this file.
1 
7 #ifndef MML_LOGIC_H
8 #define MML_LOGIC_H
9 
10 #include "gctypes.h"
11 
26 typedef union
27 {
28  u32 u;
29  s32 s;
30  f32 f;
31  void* p;
33 } FunctionArg __attribute__((__transparent_union__));
34 
41 typedef struct
42 {
43  void* function;
47 } FunctionCall;
48 
56 typedef struct
57 {
61 } Logic;
62 
63 #endif
Data types for the gamecube.
f32 f
Definition: logic.h:30
Describes a function call.
Definition: logic.h:41
FunctionCall condition
Definition: logic.h:58
void * p
Definition: logic.h:31
Function Argument.
Definition: logic.h:26
float f32
Definition: gctypes.h:30
u32 u
Definition: logic.h:28
s32 s
Definition: logic.h:29
int32_t s32
Definition: gctypes.h:20
uint32_t u32
Definition: gctypes.h:16
FunctionArg arg2
Definition: logic.h:45
FunctionArg arg1
Definition: logic.h:44
FunctionCall action
Definition: logic.h:59
Describes simple if-then logic.
Definition: logic.h:56