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-04-17 13:46:17 +02:00
|
|
|
typedef void (*UnkFunc)();
|
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[];
|
|
|
|
|
2020-12-27 13:11:14 +01:00
|
|
|
typedef s32 BattleID;
|
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
|
|
|
|
2020-11-11 17:33:55 +01:00
|
|
|
typedef s32 NpcAnimID;
|
2020-12-24 12:15:05 +01:00
|
|
|
#define NPC_ANIM(sprite, palette, anim) (((_NPC_SPRITE_##sprite << 16) + (_NPC_PALETTE_##sprite##_##palette << 8) + _NPC_ANIM_##sprite##_##anim))
|
2021-04-03 19:21:49 +02:00
|
|
|
#define ANIM_END -1
|
2020-08-16 03:54:04 +02:00
|
|
|
#endif
|