minor refactor

This commit is contained in:
MihailRis
2024-03-22 19:40:47 +03:00
parent 81641be024
commit 9df82ec0de
5 changed files with 37 additions and 11 deletions
+3 -1
View File
@@ -23,6 +23,7 @@ struct block_funcs_set;
struct item_funcs_set;
struct uidocscript;
class BlocksController;
class LevelController;
namespace scripting {
extern Engine* engine;
@@ -30,6 +31,7 @@ namespace scripting {
extern const ContentIndices* indices;
extern Level* level;
extern BlocksController* blocks;
extern LevelController* controller;
/// @brief Lua environment wrapper for automatic deletion
class Environment {
@@ -54,7 +56,7 @@ namespace scripting {
void process_post_runnables();
void on_world_load(Level* level, BlocksController* blocks);
void on_world_load(LevelController* controller);
void on_world_tick();
void on_world_save();
void on_world_quit();