Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
servermap.cpp File Reference
#include "map.h"
#include "mapsector.h"
#include "filesys.h"
#include "voxel.h"
#include "voxelalgorithms.h"
#include "porting.h"
#include "serialization.h"
#include "settings.h"
#include "log.h"
#include "profiler.h"
#include "gamedef.h"
#include "util/directiontables.h"
#include "rollback_interface.h"
#include "reflowscan.h"
#include "emerge.h"
#include "mapgen/mapgen_v6.h"
#include "mapgen/mg_biome.h"
#include "config.h"
#include "server.h"
#include "database/database.h"
#include "database/database-dummy.h"
#include "database/database-sqlite3.h"
#include "script/scripting_server.h"
#include "irrlicht_changes/printing.h"
#include "database/database-leveldb.h"
#include "database/database-redis.h"
+ Include dependency graph for servermap.cpp:

Classes

struct  NodeNeighbor
 

Macros

#define WATER_DROP_BOOST   4
 

Enumerations

enum  NeighborType : u8 { NEIGHBOR_UPPER , NEIGHBOR_SAME_LEVEL , NEIGHBOR_LOWER }
 

Functions

static s8 get_max_liquid_level (NodeNeighbor nb, s8 current_max_node_level)
 

Variables

static const v3s16 liquid_6dirs [6]
 

Macro Definition Documentation

◆ WATER_DROP_BOOST

#define WATER_DROP_BOOST   4

Referenced by get_max_liquid_level().

Enumeration Type Documentation

◆ NeighborType

enum NeighborType : u8
Enumerator
NEIGHBOR_UPPER 
NEIGHBOR_SAME_LEVEL 
NEIGHBOR_LOWER 

Function Documentation

◆ get_max_liquid_level()

static s8 get_max_liquid_level ( NodeNeighbor nb,
s8 current_max_node_level )
static

References LIQUID_FLOW_DOWN_MASK, LIQUID_LEVEL_MASK, LIQUID_LEVEL_MAX, NodeNeighbor::n, NEIGHBOR_LOWER, NEIGHBOR_SAME_LEVEL, NEIGHBOR_UPPER, MapNode::param2, NodeNeighbor::t, and WATER_DROP_BOOST.

Referenced by ServerMap::transformLiquids().

+ Here is the caller graph for this function:

Variable Documentation

◆ liquid_6dirs

const v3s16 liquid_6dirs[6]
static
Initial value:
= {
v3s16( 0, 1, 0),
v3s16( 0, 0, 1),
v3s16( 1, 0, 0),
v3s16( 0, 0,-1),
v3s16(-1, 0, 0),
v3s16( 0,-1, 0)
}
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13

Referenced by ServerMap::transformLiquids().