summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-06-05 23:51:37 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-06-05 23:51:37 +0300
commit3a0562bebcb91d05fceb5a1f9ded539f77a625e4 (patch)
tree8b788689029fbeaf7880b628186b77c5f667845f /src/nodedef.h
parentc3658e7c797cbf5b9d04a6d950505d37dcdd422b (diff)
downloadminetest-3a0562bebcb91d05fceb5a1f9ded539f77a625e4.tar.gz
minetest-3a0562bebcb91d05fceb5a1f9ded539f77a625e4.tar.bz2
minetest-3a0562bebcb91d05fceb5a1f9ded539f77a625e4.zip
Add after_destruct and cache the existence of on_construct, on_destruct and after_destruct for quick skipping when a node does not have them
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index 681606fd8..04f375043 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -144,6 +144,11 @@ struct ContentFeatures
bool backface_culling;
#endif
+ // Server-side cached callback existence for fast skipping
+ bool has_on_construct;
+ bool has_on_destruct;
+ bool has_after_destruct;
+
/*
Actual data
*/