mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Add core.compare_block_status function (#11247)
Makes it possible to check the status of the mapblock in a future-extensible way.
This commit is contained in:
parent
89f3991351
commit
c9144ae5e2
10 changed files with 89 additions and 4 deletions
|
@ -342,7 +342,16 @@ public:
|
|||
void reportMaxLagEstimate(float f) { m_max_lag_estimate = f; }
|
||||
float getMaxLagEstimate() { return m_max_lag_estimate; }
|
||||
|
||||
std::set<v3s16>* getForceloadedBlocks() { return &m_active_blocks.m_forceloaded_list; };
|
||||
std::set<v3s16>* getForceloadedBlocks() { return &m_active_blocks.m_forceloaded_list; }
|
||||
|
||||
// Sorted by how ready a mapblock is
|
||||
enum BlockStatus {
|
||||
BS_UNKNOWN,
|
||||
BS_EMERGING,
|
||||
BS_LOADED,
|
||||
BS_ACTIVE // always highest value
|
||||
};
|
||||
BlockStatus getBlockStatus(v3s16 blockpos);
|
||||
|
||||
// Sets the static object status all the active objects in the specified block
|
||||
// This is only really needed for deleting blocks from the map
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue