mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Migrate to STL containers/algorithms.
This commit is contained in:
parent
e204bedf1d
commit
6a1670dbc3
63 changed files with 1330 additions and 1417 deletions
|
@ -22,6 +22,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
#include "voxel.h"
|
||||
#include "mapnode.h"
|
||||
#include <set>
|
||||
#include <map>
|
||||
|
||||
namespace voxalgo
|
||||
{
|
||||
|
@ -33,8 +35,8 @@ void setLight(VoxelManipulator &v, VoxelArea a, u8 light,
|
|||
|
||||
void clearLightAndCollectSources(VoxelManipulator &v, VoxelArea a,
|
||||
enum LightBank bank, INodeDefManager *ndef,
|
||||
core::map<v3s16, bool> & light_sources,
|
||||
core::map<v3s16, u8> & unlight_from);
|
||||
std::set<v3s16> & light_sources,
|
||||
std::map<v3s16, u8> & unlight_from);
|
||||
|
||||
struct SunlightPropagateResult
|
||||
{
|
||||
|
@ -47,7 +49,7 @@ struct SunlightPropagateResult
|
|||
|
||||
SunlightPropagateResult propagateSunlight(VoxelManipulator &v, VoxelArea a,
|
||||
bool inexistent_top_provides_sunlight,
|
||||
core::map<v3s16, bool> & light_sources,
|
||||
std::set<v3s16> & light_sources,
|
||||
INodeDefManager *ndef);
|
||||
|
||||
} // namespace voxalgo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue