aboutsummaryrefslogtreecommitdiff
path: root/src/scriptapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/scriptapi.h')
-rw-r--r--src/scriptapi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/scriptapi.h b/src/scriptapi.h
index cd6a5614c..e6c16eba6 100644
--- a/src/scriptapi.h
+++ b/src/scriptapi.h
@@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <string>
#include "mapnode.h"
#include <set>
+#include <map>
class Server;
class ServerEnvironment;
@@ -83,6 +84,10 @@ bool scriptapi_node_on_dig(lua_State *L, v3s16 p, MapNode node,
ServerActiveObject *digger);
void scriptapi_node_on_construct(lua_State *L, v3s16 p, MapNode node);
void scriptapi_node_on_destruct(lua_State *L, v3s16 p, MapNode node);
+void scriptapi_node_on_receive_fields(lua_State *L, v3s16 p,
+ const std::string &formname,
+ const std::map<std::string, std::string> &fields,
+ ServerActiveObject *sender);
/* luaentity */
// Returns true if succesfully added into Lua; false otherwise.