Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
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, std::set< v3s16 > &extra_blocks_added)
 
bool contains (v3s16 p) const
 
auto size () const
 
void clear ()
 
void remove (v3s16 p)
 

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::deactivateBlocksAndObjects().

+ Here is the caller graph for this function:

◆ contains()

bool ActiveBlockList::contains ( v3s16 p) const
inline

References m_list, and p().

Referenced by ServerEnvironment::deactivateFarObjects(), and ServerEnvironment::getBlockStatus().

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

◆ remove()

void ActiveBlockList::remove ( v3s16 p)
inline

References m_abm_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:

◆ size()

auto ActiveBlockList::size ( ) const
inline

References m_list.

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

+ 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,
std::set< v3s16 > & extra_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

◆ 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: