mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
ui callbacks update
This commit is contained in:
parent
e9cbb04090
commit
2de5f5c646
7 changed files with 62 additions and 16 deletions
|
|
@ -23,6 +23,8 @@ struct uidocscript;
|
|||
class BlocksController;
|
||||
|
||||
namespace scripting {
|
||||
using int_array_consumer = std::function<void(const int[], size_t)>;
|
||||
|
||||
extern Engine* engine;
|
||||
extern const Content* content;
|
||||
extern const ContentIndices* indices;
|
||||
|
|
@ -53,6 +55,12 @@ namespace scripting {
|
|||
const std::string& file="<string>"
|
||||
);
|
||||
|
||||
int_array_consumer create_int_array_consumer(
|
||||
int env,
|
||||
const std::string& src,
|
||||
const std::string& file="<string>"
|
||||
);
|
||||
|
||||
std::unique_ptr<Environment> create_environment(int parent=0);
|
||||
std::unique_ptr<Environment> create_pack_environment(const ContentPack& pack);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue