Inventory updates, API updates, lots of file renaming
This commit is contained in:
28
src/state/play/inventory.hpp
Normal file
28
src/state/play/inventory.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../entity/character.hpp"
|
||||
|
||||
#include "../../resources.hpp"
|
||||
|
||||
#include "item_manager.hpp"
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
namespace game::state::play
|
||||
{
|
||||
class Inventory
|
||||
{
|
||||
public:
|
||||
static constexpr auto SIZE = 96.0f;
|
||||
|
||||
std::map<int, int> values{};
|
||||
std::unordered_map<int, entity::Actor> actors{};
|
||||
std::unordered_map<int, glm::vec4> rects{};
|
||||
std::unordered_map<int, Canvas> canvases{};
|
||||
int selectedItemID{-1};
|
||||
|
||||
void tick();
|
||||
void update(Resources&, ItemManager&, entity::Character&);
|
||||
int count();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user