コード例 #1
0
		private static void SetChunkLightDirty(OCMap map, Vector3i chunkPos) {
			OCChunk chunkData = map.GetChunk(chunkPos);
			if(chunkData == null) return;
			OCChunkRenderer chunk = chunkData.GetChunkRenderer();
			if(chunk == null) return;
			chunk.SetLightDirty();
		}
コード例 #2
0
        private static void SetChunkLightDirty(OCMap map, Vector3i chunkPos)
        {
            OCChunk chunkData = map.GetChunk(chunkPos);

            if (chunkData == null)
            {
                return;
            }
            OCChunkRenderer chunk = chunkData.GetChunkRenderer();

            if (chunk == null)
            {
                return;
            }
            chunk.SetLightDirty();
        }