2020-08-10 23:30:46 +02:00
|
|
|
#ifndef _TYPES_H_
|
|
|
|
#define _TYPES_H_
|
|
|
|
|
2020-08-19 02:21:04 +02:00
|
|
|
#include "ultra64.h"
|
|
|
|
|
2020-08-10 23:30:46 +02:00
|
|
|
#define UNK_TYPE s32
|
|
|
|
#define UNK_PTR void*
|
|
|
|
#define UNK_RET void
|
|
|
|
#define UNK_FUN_ARG void(*)(void)
|
|
|
|
#define UNK_FUN_PTR(name) void(*name)(void)
|
|
|
|
#define UNK_ARGS
|
|
|
|
|
2021-07-08 17:53:00 +02:00
|
|
|
typedef void (*StateFunc)(void);
|
2021-04-17 13:46:17 +02:00
|
|
|
|
2021-04-13 09:47:52 +02:00
|
|
|
/// Linker symbol address, as in `ld_addrs.h`.
|
|
|
|
typedef u8 Addr[];
|
|
|
|
|
2021-03-29 02:05:56 +02:00
|
|
|
#define BATTLE_ID(unk, area, stage, index) ((unk << 24) + (area << 16) + (stage << 8) + index)
|
2020-10-20 08:49:40 +02:00
|
|
|
|
2021-08-24 18:42:29 +02:00
|
|
|
/// Terminates an extraAnimationList
|
2021-04-03 19:21:49 +02:00
|
|
|
#define ANIM_END -1
|
2021-08-24 18:42:29 +02:00
|
|
|
|
2020-08-16 03:54:04 +02:00
|
|
|
#endif
|