Basic inventory system working and can pick up items but needs to be reflected in the UI next.
This commit is contained in:
parent
d7353a02df
commit
135d9a128b
14 changed files with 212 additions and 48 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue