#include "modifiedstate.h"
#include "util/container.h"
#include "nodetimer.h"
-#include "database.h"
+class Database;
class ClientMap;
class MapSector;
class ServerMapSector;
*/
MapBlock * emergeBlock(v3s16 p, bool create_blank=true);
+
+ // Carries out any initialization necessary before block is sent
+ void prepareBlock(MapBlock *block);
// Helper for placing objects on ground level
s16 findGroundLevel(v2s16 p2d);
// Parameters fed to the Mapgen
MapgenParams *m_mgparams;
- virtual s16 getHeat(ServerEnvironment *env, v3s16 p, MapBlock *block = NULL);
- virtual s16 getHumidity(ServerEnvironment *env, v3s16 p, MapBlock *block = NULL);
+ virtual s16 updateBlockHeat(ServerEnvironment *env, v3s16 p, MapBlock *block = NULL);
+ virtual s16 updateBlockHumidity(ServerEnvironment *env, v3s16 p, MapBlock *block = NULL);
private:
// Seed used for all kinds of randomness in generation