diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-06-05 23:51:37 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-06-05 23:51:37 +0300 |
commit | 3a0562bebcb91d05fceb5a1f9ded539f77a625e4 (patch) | |
tree | 8b788689029fbeaf7880b628186b77c5f667845f /src/nodedef.h | |
parent | c3658e7c797cbf5b9d04a6d950505d37dcdd422b (diff) | |
download | minetest-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.h | 5 |
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 */ |