コード例 #1
0
        /// <summary>
        /// Triggers the given at the given position to be remeshed, if not already in the list.
        /// Preforms no action if the chunk does not exist.
        /// </summary>
        /// <param name="chunkPos">The chunk position.</param>
        /// <param name="later">Whether to remesh the chunk now or later.</param>
        private void RemeshChunkAt(ChunkPosition chunkPos, bool later)
        {
            if (!World.DoesChunkExist(chunkPos))
            {
                return;
            }

            if (later)
            {
                RemeshHandler.RemeshChunkLater(chunkPos);
            }
            else
            {
                RemeshHandler.RemeshChunk(chunkPos);
            }
        }