Melee Modding Library
2.0.0
A C library for modding Super Smash Bros Melee
Main Page
Modules
Data Structures
Files
Examples
File List
Globals
src
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
;
44
FunctionArg
arg1
;
45
FunctionArg
arg2
;
47
}
FunctionCall
;
48
56
typedef
struct
57
{
58
FunctionCall
condition
;
59
FunctionCall
action
;
61
}
Logic
;
62
63
#endif
gctypes.h
Data types for the gamecube.
FunctionArg::f
f32 f
Definition:
logic.h:30
FunctionCall
Describes a function call.
Definition:
logic.h:41
Logic::condition
FunctionCall condition
Definition:
logic.h:58
FunctionArg::p
void * p
Definition:
logic.h:31
FunctionArg
Function Argument.
Definition:
logic.h:26
f32
float f32
Definition:
gctypes.h:30
FunctionArg::u
u32 u
Definition:
logic.h:28
FunctionArg::s
s32 s
Definition:
logic.h:29
s32
int32_t s32
Definition:
gctypes.h:20
u32
uint32_t u32
Definition:
gctypes.h:16
FunctionCall::arg2
FunctionArg arg2
Definition:
logic.h:45
FunctionCall::arg1
FunctionArg arg1
Definition:
logic.h:44
Logic::action
FunctionCall action
Definition:
logic.h:59
Logic
Describes simple if-then logic.
Definition:
logic.h:56
Generated by
1.8.11