1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

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

This commit is contained in:
Perttu Ahola 2012-06-05 23:51:37 +03:00
parent c3658e7c79
commit 3a0562bebc
6 changed files with 74 additions and 12 deletions

View file

@ -117,6 +117,9 @@ void ContentFeatures::reset()
visual_solidness = 0;
backface_culling = true;
#endif
has_on_construct = false;
has_on_destruct = false;
has_after_destruct = false;
/*
Actual data