papermario/include/types.h

20 lines
495 B
C
Raw Normal View History

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
2020-12-27 13:11:14 +01:00
typedef s32 BattleID;
#define BATTLE_ID(area, stage, index) ((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))
2020-11-11 17:33:55 +01:00
2020-08-16 03:54:04 +02:00
#endif