Luanti 5.19.0-dev
Loading...
Searching...
No Matches
MeshUpdateResult Struct Reference

#include <mesh_generator_thread.h>

Collaboration diagram for MeshUpdateResult:

Public Member Functions

 MeshUpdateResult ()=default
void dropBlocks ()
 Drop block references.

Public Attributes

v3s16 p = v3s16(-1338, -1338, -1338)
std::unique_ptr< MapBlockMesh > mesh
u8 solid_sides
std::vector< MapBlock * > map_blocks
u16 epoch = U16_MAX
bool urgent = false

Constructor & Destructor Documentation

◆ MeshUpdateResult()

MeshUpdateResult::MeshUpdateResult ( )
default

References dropBlocks().

Referenced by MeshUpdateManager::getNextResult().

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

Member Function Documentation

◆ dropBlocks()

void MeshUpdateResult::dropBlocks ( )

Drop block references.

Note
not done by destructor, since this is only safe on main thread

References map_blocks.

Referenced by MeshUpdateResult(), MeshUpdateQueue::reAddBlock(), and Client::step().

Here is the caller graph for this function:

Member Data Documentation

◆ epoch

u16 MeshUpdateResult::epoch = U16_MAX

◆ map_blocks

std::vector<MapBlock*> MeshUpdateResult::map_blocks

◆ mesh

std::unique_ptr<MapBlockMesh> MeshUpdateResult::mesh

◆ p

◆ solid_sides

u8 MeshUpdateResult::solid_sides

◆ urgent

bool MeshUpdateResult::urgent = false

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