mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-24 14:51:46 -05:00
27 lines
589 B
C++
27 lines
589 B
C++
#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::vector<uint32_t> items;
|
|
} ItemTrackerDungeon;
|