mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 03:34:18 +03:00
34 lines
598 B
C++
34 lines
598 B
C++
#pragma once
|
|
|
|
#include "Player.hpp"
|
|
|
|
class Player; // in case we're included from Player.hpp
|
|
|
|
#define C_MAX_HOTBAR_ITEMS (9)
|
|
|
|
#ifdef ENH_EXTRA_ITEMS_IN_INV
|
|
#define C_MAX_INVENTORY_ITEMS (36+9)
|
|
#else
|
|
#define C_MAX_INVENTORY_ITEMS (36)
|
|
#endif
|
|
|
|
class Inventory
|
|
{
|
|
public:
|
|
Inventory(Player*);
|
|
|
|
int getSelectionSize();
|
|
int getSelectionSlotItemId(int slotNo);
|
|
int getSelectedItemId();
|
|
void selectSlot(int slotNo);
|
|
void setSelectionSlotItemId(int slotNo, int item);
|
|
|
|
public:
|
|
int m_SelectedHotbarSlot;
|
|
Player* m_pPlayer;
|
|
|
|
int m_hotbar[C_MAX_HOTBAR_ITEMS];
|
|
int m_items [C_MAX_INVENTORY_ITEMS];
|
|
};
|
|
|