Minetest  5.4.0
serverenvironment.cpp File Reference
#include <algorithm>
#include "serverenvironment.h"
#include "settings.h"
#include "log.h"
#include "mapblock.h"
#include "nodedef.h"
#include "nodemetadata.h"
#include "gamedef.h"
#include "map.h"
#include "porting.h"
#include "profiler.h"
#include "raycast.h"
#include "remoteplayer.h"
#include "scripting_server.h"
#include "server.h"
#include "util/serialize.h"
#include "util/basic_macros.h"
#include "util/pointedthing.h"
#include "threading/mutex_auto_lock.h"
#include "filesys.h"
#include "gameparams.h"
#include "database/database-dummy.h"
#include "database/database-files.h"
#include "database/database-sqlite3.h"
#include "database/database-leveldb.h"
#include "server/luaentity_sao.h"
#include "server/player_sao.h"
+ Include dependency graph for serverenvironment.cpp:

Classes

struct  ActiveABM
 
class  ABMHandler
 

Macros

#define LBM_NAME_ALLOWED_CHARS   "abcdefghijklmnopqrstuvwxyz0123456789_:"
 
#define PARTICLE_SPAWNER_NO_EXPIRY   -1024.f
 

Functions

void fillRadiusBlock (v3s16 p0, s16 r, std::set< v3s16 > &list)
 
void fillViewConeBlock (v3s16 p0, const s16 r, const v3f camera_pos, const v3f camera_dir, const float camera_fov, std::set< v3s16 > &list)
 
static void print_hexdump (std::ostream &o, const std::string &data)
 

Variables

static std::random_device seed
 

Macro Definition Documentation

◆ LBM_NAME_ALLOWED_CHARS

#define LBM_NAME_ALLOWED_CHARS   "abcdefghijklmnopqrstuvwxyz0123456789_:"

◆ PARTICLE_SPAWNER_NO_EXPIRY

#define PARTICLE_SPAWNER_NO_EXPIRY   -1024.f

Function Documentation

◆ fillRadiusBlock()

void fillRadiusBlock ( v3s16  p0,
s16  r,
std::set< v3s16 > &  list 
)

References p().

Referenced by ActiveBlockList::update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillViewConeBlock()

void fillViewConeBlock ( v3s16  p0,
const s16  r,
const v3f  camera_pos,
const v3f  camera_dir,
const float  camera_fov,
std::set< v3s16 > &  list 
)

References BS, isBlockInSight(), MAP_BLOCKSIZE, and p().

Referenced by ActiveBlockList::update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ print_hexdump()

static void print_hexdump ( std::ostream &  o,
const std::string &  data 
)
static

References porting::mt_snprintf().

Referenced by ServerEnvironment::activateObjects().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ seed