Luanti 5.16.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 ()
bool add (v3s16 p)
void remove (v3s16 p)

Public Attributes

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

Member Function Documentation

◆ add()

bool ActiveBlockList::add ( v3s16 p)
inline
Returns
true if block was newly added

References m_abm_list, m_list, and p().

Here is the call graph for this function:

◆ clear()

void ActiveBlockList::clear ( )
inline

References m_list.

◆ contains()

bool ActiveBlockList::contains ( v3s16 p) const
inline

References m_list, and p().

Here is the call graph for this function:

◆ remove()

void ActiveBlockList::remove ( v3s16 p)
inline

References m_abm_list, m_list, and p().

Here is the call graph for this function:

◆ size()

auto ActiveBlockList::size ( ) const
inline

References m_list.

◆ 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().

Here is the call graph for this function:

Member Data Documentation

◆ m_abm_list

std::set<v3s16> ActiveBlockList::m_abm_list

Referenced by add(), remove(), and update().

◆ m_forceloaded_list

std::set<v3s16> ActiveBlockList::m_forceloaded_list

Referenced by update().

◆ m_list

std::set<v3s16> ActiveBlockList::m_list

Referenced by add(), clear(), contains(), remove(), size(), and update().


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