X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fvoxelalgorithms.h;h=1452f30f4ed5ea29cd56b2823b78033714e66d99;hb=bf22184d6e16f21b9001322aad1bf8f6dbaa372b;hp=7203585e4857da9fe134f965e96f3562e75a3a33;hpb=3caad3f3c9e319ca67d63231e8c64b2ace855fff;p=dragonfireclient.git diff --git a/src/voxelalgorithms.h b/src/voxelalgorithms.h index 7203585e4..1452f30f4 100644 --- a/src/voxelalgorithms.h +++ b/src/voxelalgorithms.h @@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef VOXELALGORITHMS_HEADER -#define VOXELALGORITHMS_HEADER +#pragma once #include "voxel.h" #include "mapnode.h" @@ -32,30 +31,6 @@ class MMVManip; namespace voxalgo { -// TODO: Move unspreadLight and spreadLight from VoxelManipulator to here - -void setLight(VoxelManipulator &v, VoxelArea a, u8 light, - INodeDefManager *ndef); - -void clearLightAndCollectSources(VoxelManipulator &v, VoxelArea a, - enum LightBank bank, INodeDefManager *ndef, - std::set & light_sources, - std::map & unlight_from); - -struct SunlightPropagateResult -{ - bool bottom_sunlight_valid; - - SunlightPropagateResult(bool bottom_sunlight_valid_): - bottom_sunlight_valid(bottom_sunlight_valid_) - {} -}; - -SunlightPropagateResult propagateSunlight(VoxelManipulator &v, VoxelArea a, - bool inexistent_top_provides_sunlight, - std::set & light_sources, - INodeDefManager *ndef); - /*! * Updates the lighting on the map. * The result will be correct only if @@ -180,8 +155,3 @@ struct VoxelLineIterator }; } // namespace voxalgo - - - -#endif -