diff options
Diffstat (limited to 'src/BlockArea.h')
-rw-r--r-- | src/BlockArea.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/BlockArea.h b/src/BlockArea.h index 0bb272fd9..c48175b8c 100644 --- a/src/BlockArea.h +++ b/src/BlockArea.h @@ -53,6 +53,7 @@ public: msLake, msSpongePrint, msDifference, + msMask, } ; cBlockArea(void); @@ -153,6 +154,14 @@ public: +----------+--------+--------+ | A | sponge | A | Sponge is the NOP block | * | B | B | Everything else overwrites anything + + msMask: + Combines two areas, the blocks that are the same are kept, differing ones are reset to air + | area block | | + | this | Src | result | + +------+-------+--------+ + | A | A | A | Same blocks are kept + | A | non-A | air | Everything else is replaced with air */ void Merge(const cBlockArea & a_Src, int a_RelX, int a_RelY, int a_RelZ, eMergeStrategy a_Strategy); |