mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Async environment for mods to do concurrent tasks (#11131)
This commit is contained in:
parent
663c936428
commit
e7659883cc
38 changed files with 1646 additions and 48 deletions
17
src/map.h
17
src/map.h
|
@ -446,10 +446,25 @@ public:
|
|||
void blitBackAll(std::map<v3s16, MapBlock*> * modified_blocks,
|
||||
bool overwrite_generated = true);
|
||||
|
||||
/*
|
||||
Creates a copy of this VManip including contents, the copy will not be
|
||||
associated with a Map.
|
||||
*/
|
||||
MMVManip *clone() const;
|
||||
|
||||
// Reassociates a copied VManip to a map
|
||||
void reparent(Map *map);
|
||||
|
||||
// Is it impossible to call initialEmerge / blitBackAll?
|
||||
inline bool isOrphan() const { return !m_map; }
|
||||
|
||||
bool m_is_dirty = false;
|
||||
|
||||
protected:
|
||||
Map *m_map;
|
||||
MMVManip() {};
|
||||
|
||||
// may be null
|
||||
Map *m_map = nullptr;
|
||||
/*
|
||||
key = blockpos
|
||||
value = flags describing the block
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue