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

Cracking blocks while digging

This commit is contained in:
Perttu Ahola 2010-12-21 02:25:47 +02:00
parent d5a78c1253
commit 3b0bff2f74
16 changed files with 232 additions and 289 deletions

View file

@ -35,7 +35,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "common_irrlicht.h"
#include "heightmap.h"
#include "loadstatus.h"
#include "mapnode.h"
#include "mapblock.h"
#include "mapsector.h"
@ -593,8 +592,15 @@ public:
void renderMap(video::IVideoDriver* driver, s32 pass);
// Update master heightmap mesh
void updateMesh();
/*
Methods for setting temporary modifications to nodes for
drawing.
Return value is position of changed block.
*/
v3s16 setTempMod(v3s16 p, NodeMod mod);
v3s16 clearTempMod(v3s16 p);
// Efficient implementation needs a cache of TempMods
//void clearTempMods();
// For debug printing
virtual void PrintInfo(std::ostream &out);