mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-23 14:22:16 -05:00
Initial work towards cleaning up item tracker
This commit is contained in:
parent
2e9cb4c426
commit
252f5fe68a
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,35 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
void InitItemTracker();
|
||||
void DrawItemTracker(bool& open);
|
||||
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 \
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user