mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add emerge completion callback mechanism
Major refactor of emerge.cpp and Map::init/finishBlockMake
This commit is contained in:
parent
1f9c5a4a7b
commit
0850d3bb93
6 changed files with 624 additions and 572 deletions
|
@ -393,21 +393,21 @@ public:
|
|||
- Check disk (doesn't load blocks)
|
||||
- Create blank one
|
||||
*/
|
||||
ServerMapSector * createSector(v2s16 p);
|
||||
ServerMapSector *createSector(v2s16 p);
|
||||
|
||||
/*
|
||||
Blocks are generated by using these and makeBlock().
|
||||
*/
|
||||
bool initBlockMake(BlockMakeData *data, v3s16 blockpos);
|
||||
bool initBlockMake(v3s16 blockpos, BlockMakeData *data);
|
||||
void finishBlockMake(BlockMakeData *data,
|
||||
std::map<v3s16, MapBlock*> &changed_blocks);
|
||||
std::map<v3s16, MapBlock*> *changed_blocks);
|
||||
|
||||
/*
|
||||
Get a block from somewhere.
|
||||
- Memory
|
||||
- Create blank
|
||||
*/
|
||||
MapBlock * createBlock(v3s16 p);
|
||||
MapBlock *createBlock(v3s16 p);
|
||||
|
||||
/*
|
||||
Forcefully get a block from somewhere.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue