summaryrefslogtreecommitdiffstats
path: root/src/SetChunkData.h
diff options
context:
space:
mode:
authorWoazboat <f.kargl@posteo.de>2015-04-27 21:18:21 +0200
committerWoazboat <f.kargl@posteo.de>2015-04-27 21:18:56 +0200
commit6caf08da9901d8e08fb5d024faf3580cde1e1461 (patch)
treea85ff166e878a44371a25dbbe75cb10a759bd765 /src/SetChunkData.h
parentMerge pull request #1894 from mc-server/RefactorManualBindingsTemplates (diff)
downloadcuberite-6caf08da9901d8e08fb5d024faf3580cde1e1461.tar
cuberite-6caf08da9901d8e08fb5d024faf3580cde1e1461.tar.gz
cuberite-6caf08da9901d8e08fb5d024faf3580cde1e1461.tar.bz2
cuberite-6caf08da9901d8e08fb5d024faf3580cde1e1461.tar.lz
cuberite-6caf08da9901d8e08fb5d024faf3580cde1e1461.tar.xz
cuberite-6caf08da9901d8e08fb5d024faf3580cde1e1461.tar.zst
cuberite-6caf08da9901d8e08fb5d024faf3580cde1e1461.zip
Diffstat (limited to 'src/SetChunkData.h')
-rw-r--r--src/SetChunkData.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/SetChunkData.h b/src/SetChunkData.h
index 1eeb75ca9..bf5283569 100644
--- a/src/SetChunkData.h
+++ b/src/SetChunkData.h
@@ -24,8 +24,10 @@ public:
/** Constructs a new instance based on data existing elsewhere, will copy all the memory. Prefer to use the
other constructor as much as possible.
- Will move the entity and blockentity lists into the internal storage, and empty the a_Entities and
- a_BlockEntities lists.
+ Will move the entity and blockentity lists into the internal storage, and invalidate a_Entities and
+ a_BlockEntities.
+ When passing an lvalue, a_Entities and a_BlockEntities must be explicitly converted to an rvalue beforehand
+ with std::move().
a_BlockTypes and a_BlockMetas must always be valid.
If either of the light arrays are nullptr, the chunk data will be marked as not having any light at all and
will be scheduled for re-lighting once it is set into the chunkmap.
@@ -41,8 +43,8 @@ public:
const NIBBLETYPE * a_SkyLight,
const cChunkDef::HeightMap * a_HeightMap,
const cChunkDef::BiomeMap * a_Biomes,
- cEntityList & a_Entities,
- cBlockEntityList & a_BlockEntities,
+ cEntityList && a_Entities,
+ cBlockEntityList && a_BlockEntities,
bool a_ShouldMarkDirty
);