]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/script/cpp_api/s_node.h
Fix CSM crash (#5779)
[dragonfireclient.git] / src / script / cpp_api / s_node.h
index b3a6c83b5cd0fd55c3298770166924c467f7d279..eb127909d724e36145fb40d01767faa68fc1b7a6 100644 (file)
@@ -20,11 +20,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #ifndef S_NODE_H_
 #define S_NODE_H_
 
-#include <map>
-
 #include "irr_v3d.h"
 #include "cpp_api/s_base.h"
 #include "cpp_api/s_nodemeta.h"
+#include "util/string.h"
 
 struct MapNode;
 class ServerActiveObject;
@@ -43,11 +42,12 @@ class ScriptApiNode
                        ServerActiveObject *digger);
        void node_on_construct(v3s16 p, MapNode node);
        void node_on_destruct(v3s16 p, MapNode node);
+       bool node_on_flood(v3s16 p, MapNode node, MapNode newnode);
        void node_after_destruct(v3s16 p, MapNode node);
        bool node_on_timer(v3s16 p, MapNode node, f32 dtime);
        void node_on_receive_fields(v3s16 p,
                        const std::string &formname,
-                       const std::map<std::string, std::string> &fields,
+                       const StringMap &fields,
                        ServerActiveObject *sender);
        void node_falling_update(v3s16 p);
        void node_falling_update_single(v3s16 p);