hud.get_block_inventory and inventory.move
This commit is contained in:
@@ -564,3 +564,10 @@ void Hud::setPause(bool pause) {
|
||||
Player* Hud::getPlayer() const {
|
||||
return player;
|
||||
}
|
||||
|
||||
std::shared_ptr<Inventory> Hud::getBlockInventory() {
|
||||
if (blockUI == nullptr) {
|
||||
return nullptr;
|
||||
}
|
||||
return blockUI->getInventory();
|
||||
}
|
||||
|
||||
@@ -155,6 +155,8 @@ public:
|
||||
void remove(std::shared_ptr<gui::UINode> node);
|
||||
|
||||
Player* getPlayer() const;
|
||||
|
||||
std::shared_ptr<Inventory> getBlockInventory();
|
||||
};
|
||||
|
||||
#endif // SRC_HUD_H_
|
||||
|
||||
Reference in New Issue
Block a user