mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add on_inventory_open and on_inventory_closed events
This commit is contained in:
parent
e1150f9e05
commit
80128a4190
4 changed files with 45 additions and 3 deletions
|
|
@ -89,6 +89,9 @@ namespace scripting {
|
|||
void on_chunk_present(const Chunk& chunk, bool loaded);
|
||||
void on_chunk_remove(const Chunk& chunk);
|
||||
|
||||
void on_inventory_open(const Player* player, const Inventory& inventory);
|
||||
void on_inventory_closed(const Player* player, const Inventory& inventory);
|
||||
|
||||
void on_player_tick(Player* player, int tps);
|
||||
|
||||
/// @brief Called on RMB click with the item selected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue