mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Add proff of concept for blocks callback.
This commit is contained in:
parent
a00b9cab36
commit
18c740712a
7 changed files with 212 additions and 0 deletions
|
@ -41,6 +41,9 @@ public:
|
|||
// Determines whether there are any on_mapblocks_changed callbacks
|
||||
bool has_on_mapblocks_changed();
|
||||
|
||||
// Calll Lua callback for block
|
||||
void block_callback(const v3s16 blockpos, ScriptCallbackState *state);
|
||||
|
||||
// Initializes environment and loads some definitions from Lua
|
||||
void initializeEnvironment(ServerEnvironment *env);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue