]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/voxelalgorithms.h
voxalgo::clearLightAndCollectSources
[dragonfireclient.git] / src / voxelalgorithms.h
index 3dea233dc9989bd1073c1523a393a194a875e013..9c90e18a9d9dba9c5bfe07649af07acfdf20ca7a 100644 (file)
@@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #define VOXELALGORITHMS_HEADER
 
 #include "voxel.h"
+#include "mapnode.h"
 
 namespace voxalgo
 {
@@ -30,6 +31,11 @@ namespace voxalgo
 void setLight(VoxelManipulator &v, VoxelArea a, u8 light,
                INodeDefManager *ndef);
 
+void clearLightAndCollectSources(VoxelManipulator &v, VoxelArea a,
+               enum LightBank bank, INodeDefManager *ndef,
+               core::map<v3s16, bool> & light_sources,
+               core::map<v3s16, u8> & unlight_from);
+
 struct SunlightPropagateResult
 {
        bool bottom_sunlight_valid;