hud, InventoryView refactor

This commit is contained in:
MihailRis
2024-04-29 01:47:38 +03:00
parent 83e7cedffe
commit d0678c6bd7
4 changed files with 41 additions and 44 deletions
+2 -4
View File
@@ -326,12 +326,10 @@ size_t InventoryView::getSlotsCount() const {
void InventoryView::bind(
std::shared_ptr<Inventory> inventory,
LevelFrontend* frontend
const Content* content
) {
this->frontend = frontend;
this->inventory = inventory;
content = frontend->getLevel()->content;
indices = content->getIndices();
this->content = content;
for (auto slot : slots) {
slot->bind(
inventory->getId(),