mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
content-pack specific variables PACK_ENV and PACK_ID
This commit is contained in:
parent
49fe2108d3
commit
617017d979
5 changed files with 19 additions and 3 deletions
|
|
@ -9,6 +9,7 @@ class LuaState;
|
|||
|
||||
class Engine;
|
||||
class Content;
|
||||
class ContentPack;
|
||||
class ContentIndices;
|
||||
class Level;
|
||||
class Block;
|
||||
|
|
@ -52,6 +53,7 @@ namespace scripting {
|
|||
);
|
||||
|
||||
std::unique_ptr<Environment> create_environment(int parent=0);
|
||||
std::unique_ptr<Environment> create_pack_environment(const ContentPack& pack);
|
||||
|
||||
void on_world_load(Level* level, BlocksController* blocks);
|
||||
void on_world_save();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue