UiDocument

This commit is contained in:
MihailRis
2024-02-07 19:29:20 +03:00
parent c902ed506b
commit 1dd0e9f939
17 changed files with 257 additions and 42 deletions
+6 -1
View File
@@ -18,6 +18,10 @@ class ContentIndices;
class LevelFrontend;
class Inventory;
namespace scripting {
class Environment;
}
using itemsharefunc = std::function<void(ItemStack&)>;
using slotcallback = std::function<void(ItemStack&, ItemStack&)>;
@@ -105,7 +109,8 @@ public:
LevelFrontend* frontend,
InventoryInteraction& interaction,
const std::string& src,
const std::string& file
const std::string& file,
const scripting::Environment& env
);
static const int SLOT_INTERVAL = 4;