Minetest  5.4.0
ActiveBlockList Class Reference

#include <serverenvironment.h>

+ Collaboration diagram for ActiveBlockList:

Public Member Functions

void update (std::vector< PlayerSAO * > &active_players, s16 active_block_range, s16 active_object_range, std::set< v3s16 > &blocks_removed, std::set< v3s16 > &blocks_added)
 
bool contains (v3s16 p)
 
void clear ()
 

Public Attributes

std::set< v3s16m_list
 
std::set< v3s16m_abm_list
 
std::set< v3s16m_forceloaded_list
 

Member Function Documentation

◆ clear()

void ActiveBlockList::clear ( )
inline

References m_list.

Referenced by ServerEnvironment::~ServerEnvironment().

+ Here is the caller graph for this function:

◆ contains()

bool ActiveBlockList::contains ( v3s16  p)
inline

References m_list, and p().

Referenced by ServerEnvironment::deactivateFarObjects().

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

◆ update()

void ActiveBlockList::update ( std::vector< PlayerSAO * > &  active_players,
s16  active_block_range,
s16  active_object_range,
std::set< v3s16 > &  blocks_removed,
std::set< v3s16 > &  blocks_added 
)

References BS, fillRadiusBlock(), fillViewConeBlock(), floatToInt(), getNodeBlockPos(), m_abm_list, m_forceloaded_list, m_list, and p().

Referenced by ServerEnvironment::step().

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

Member Data Documentation

◆ m_abm_list

std::set<v3s16> ActiveBlockList::m_abm_list

Referenced by ServerEnvironment::step(), and update().

◆ m_forceloaded_list

std::set<v3s16> ActiveBlockList::m_forceloaded_list

◆ m_list

std::set<v3s16> ActiveBlockList::m_list

The documentation for this class was generated from the following files: