Files
af/include/m_object.h
Anghelo Carvajal c7a746e71e Object table (#53)
* find object_table and make tool to extract it

* migrate object table

* update the assets yaml a bit

* comment

* name gameplay_keep

* change gameplay_keep to segment 4

* rename exclusive_ram_id to fit the segment used

* review
2023-08-16 10:21:44 -07:00

27 lines
616 B
C

#ifndef M_OBJECT_H
#define M_OBJECT_H
#include "ultra64.h"
#include "other_types.h"
#define DEFINE_OBJECT(_name, enumValue) enumValue,
#define DEFINE_OBJECT_UNSET(enumValue) enumValue,
typedef enum ObjectId {
#include "tables/object_table.h"
/* 0x19A */ OBJECT_ID_MAX // TODO: Figure out this value properly. This value was guessed, it may be smaller
} ObjectId;
#undef DEFINE_OBJECT
#undef DEFINE_OBJECT_UNSET
typedef struct ObjectOverlay {
/* 0x00 */ RomOffset vromStart;
/* 0x04 */ RomOffset vromEnd;
} ObjectOverlay; // size = 0x8
extern ObjectOverlay gObjectTable[OBJECT_ID_MAX];
#endif