block coords passing to on_open

This commit is contained in:
MihailRis
2024-02-19 03:43:01 +03:00
parent 98a96a9c1b
commit 60902e69ba
3 changed files with 15 additions and 5 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#include <string>
#include <filesystem>
#include <glm/glm.hpp>
#include "../../delegates.h"
@@ -65,7 +66,7 @@ namespace scripting {
bool on_item_break_block(Player* player, const ItemDef* item, int x, int y, int z);
/** Called on UI view show */
void on_ui_open(UiDocument* layout, Inventory* inventory);
void on_ui_open(UiDocument* layout, Inventory* inventory, glm::ivec3 blockcoord);
/** Called on UI view close*/
void on_ui_close(UiDocument* layout, Inventory* inventory);