add new world events: on_block_broken, on_block_placed

This commit is contained in:
MihailRis
2024-07-14 01:37:11 +03:00
parent 4952de4716
commit ea765ffc0c
6 changed files with 49 additions and 10 deletions
+2 -1
View File
@@ -27,6 +27,7 @@ class Inventory;
class UiDocument;
struct block_funcs_set;
struct item_funcs_set;
struct world_funcs_set;
struct UserComponent;
struct uidocscript;
class BlocksController;
@@ -134,7 +135,7 @@ namespace scripting {
/// @param env environment
/// @param packid content-pack id
/// @param file script file path
void load_world_script(const scriptenv& env, const std::string& packid, const fs::path& file);
void load_world_script(const scriptenv& env, const std::string& packid, const fs::path& file, world_funcs_set& funcsset);
/// @brief Load script associated with an UiDocument
/// @param env environment