diff options
| author | octorock <79596758+octorock@users.noreply.github.com> | 2022-08-09 18:48:05 +0200 |
|---|---|---|
| committer | octorock <79596758+octorock@users.noreply.github.com> | 2022-08-09 18:56:13 +0200 |
| commit | ad44d63b73b52fa49f1698526e1d77b414a1991d (patch) | |
| tree | dde40030bc6013105e5f9ac1234c4e50707310f0 /include/item.h | |
| parent | dd59d70447cab4676e66895440fe6809d092bd31 (diff) | |
Document some player item stuff
Diffstat (limited to 'include/item.h')
| -rw-r--r-- | include/item.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/item.h b/include/item.h index e8e3917c..97fa95a8 100644 --- a/include/item.h +++ b/include/item.h @@ -7,6 +7,7 @@ void CreateItemEntity(u32, u32, u32); void sub_08081404(Entity*, u32); +extern void ExecuteItemFunction(ItemBehavior* this, u32 index); extern void ItemDebug(ItemBehavior*, u32); extern void ItemSword(ItemBehavior*, u32); @@ -52,11 +53,12 @@ typedef enum { ITEM_ORB_GREEN, ITEM_ORB_BLUE, ITEM_ORB_RED, - ITEM_TRAP, + ITEM_TRY_PICKUP_OBJECT, ITEM_BOTTLE1, ITEM_BOTTLE2, ITEM_BOTTLE3, ITEM_BOTTLE4, + // End of activatable items. ITEM_BOTTLE_EMPTY, ITEM_BOTTLE_BUTTER, ITEM_BOTTLE_MILK, @@ -151,4 +153,17 @@ typedef enum { ITEM_ENEMY_BEETLE } Item; +/** Slot that the item is equipped in. */ +typedef enum { EQUIP_SLOT_A, EQUIP_SLOT_B, EQUIP_SLOT_NONE } EquipSlot; + +/** Function used to create the item. */ +typedef enum { + CREATE_ITEM_0, + CREATE_ITEM_1, + CREATE_ITEM_2, + CREATE_ITEM_3, + CREATE_ITEM_4, + CREATE_ITEM_5, +} CreateItemFunc; + #endif // ITEM_H |
