mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
InventoryView now uses items instead of blocks (part I)
This commit is contained in:
parent
dd5cd55aeb
commit
eae00dbb11
5 changed files with 36 additions and 21 deletions
|
|
@ -9,14 +9,16 @@
|
|||
|
||||
class Assets;
|
||||
class GfxContext;
|
||||
class Content;
|
||||
class ContentIndices;
|
||||
class LevelFrontend;
|
||||
|
||||
typedef std::function<void(blockid_t)> slotconsumer;
|
||||
typedef std::function<void(itemid_t)> slotconsumer;
|
||||
|
||||
class InventoryView {
|
||||
const Content* content;
|
||||
const ContentIndices* indices;
|
||||
std::vector<blockid_t> blocks;
|
||||
std::vector<itemid_t> items;
|
||||
slotconsumer consumer = nullptr;
|
||||
LevelFrontend* frontend;
|
||||
|
||||
|
|
@ -29,9 +31,9 @@ class InventoryView {
|
|||
public:
|
||||
InventoryView(
|
||||
int columns,
|
||||
const ContentIndices* indices,
|
||||
const Content* content,
|
||||
LevelFrontend* frontend,
|
||||
std::vector<blockid_t> blocks);
|
||||
std::vector<itemid_t> items);
|
||||
|
||||
virtual ~InventoryView();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue