Initial work towards cleaning up item tracker

This commit is contained in:
Garrett Cox 2022-08-19 03:59:06 -05:00
parent 2e9cb4c426
commit 252f5fe68a
2 changed files with 366 additions and 1019 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,35 @@
#pragma once #pragma once
#include <string>
#include <vector>
void InitItemTracker(); void InitItemTracker();
void DrawItemTracker(bool& open); void DrawItemTracker(bool& open);
void DrawItemAmmo(int itemId); void DrawItemAmmo(int itemId);
typedef struct ItemTrackerItem {
uint32_t id;
std::string name;
std::string nameFaded;
uint32_t data;
void (*drawFunc)(ItemTrackerItem);
} ItemTrackerItem;
#define ITEM_TRACKER_ITEM(id, data, drawFunc) \
{ \
id, #id, #id "_Faded", data, drawFunc \
}
typedef struct ItemTrackerDungeon {
uint32_t id;
std::string shortName;
bool hasMap;
bool hasCompass;
bool hasBossKey;
bool hasSmallKey;
} ItemTrackerDungeon;
#define ITEM_TRACKER_DUNGEON(id, shortName, hasMap, hasCompass, hasBossKey, hasSmallKey) \
{ \
id, shortName, hasMap, hasCompass, hasBossKey, hasSmallKey \
}