From 3a0562bebcb91d05fceb5a1f9ded539f77a625e4 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 5 Jun 2012 23:51:37 +0300 Subject: 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 --- src/nodedef.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/nodedef.h') 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 */ -- cgit v1.2.3