Basic inventory system working and can pick up items but needs to be reflected in the UI next.

This commit is contained in:
Zed A. Shaw 2025-01-03 13:41:57 -05:00
parent d7353a02df
commit 135d9a128b
14 changed files with 212 additions and 48 deletions

View file

@ -2,6 +2,7 @@
#include "dinkyecs.hpp"
#include "map.hpp"
#include "combat.hpp"
#include "inventory.hpp"
#include <deque>
#include "tser.hpp"
@ -27,12 +28,6 @@ namespace components {
DEFINE_SERIALIZABLE(Loot, amount);
};
struct Inventory {
int gold;
LightSource light;
DEFINE_SERIALIZABLE(Inventory, gold, light);
};
struct Tile {
std::string chr;
DEFINE_SERIALIZABLE(Tile, chr);