Inventory updates, API updates, lots of file renaming

This commit is contained in:
2026-03-17 04:05:04 -04:00
parent b060784bb7
commit fb6f902f28
63 changed files with 820 additions and 553 deletions
+43
View File
@@ -0,0 +1,43 @@
#pragma once
#include "../../entity/character.hpp"
#include "../../entity/cursor.hpp"
#include "../../entity/item.hpp"
#include "area_manager.hpp"
#include "text.hpp"
namespace game::state::play
{
class ItemManager
{
public:
static constexpr auto LIMIT = 100;
std::vector<entity::Item> items{};
int heldItemIndex{-1};
int queuedRemoveItemIndex{-1};
bool isItemHovered{};
bool isItemHoveredPrevious{};
bool isJustItemHoveredStopped{};
bool isItemHeld{};
bool isItemHeldPrevious{};
bool isJustItemHeldStopped{};
bool isJustItemHeld{};
bool isJustItemThrown{};
bool isQueueFinishFood{};
bool isItemFinished{};
glm::vec2 cursorPositionPrevious{};
glm::vec2 cursorDeltaPrevious{};
std::vector<int> queuedItemIDs{};
std::vector<int> returnItemIDs{};
void update(entity::Character&, entity::Cursor&, AreaManager&, Text&, const glm::vec4& bounds, Canvas&);
};
}