papermario/include/types.h

20 lines
505 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-10-20 08:49:40 +02:00
typedef s32 FormationID;
2020-11-07 02:09:11 +01:00
#define FORMATION_ID(section, stage, index) ((section << 16) + (stage << 8) + index)
2020-10-20 08:49:40 +02:00
2020-11-11 17:33:55 +01:00
typedef s32 NpcAnimID;
#define NPC_ANIM(sprite, palette, anim) ((_NPC_SPRITE_##sprite << 16) + (_NPC_PALETTE_##sprite##_##palette << 8) + _NPC_ANIM_##sprite##_##anim)
2020-08-16 03:54:04 +02:00
#endif