mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
minor refactor
This commit is contained in:
parent
81641be024
commit
9df82ec0de
5 changed files with 37 additions and 11 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue