void OnBlockListSelectionChanged(object sender, EventArgs e) { var block = CurrentBlock; blockChunkList.NodeStore.Clear(); if (block == null) { return; } GC.Collect(); ExteriorBlock exterior = block as ExteriorBlock; if (exterior != null) { for (int index = 0; index < exterior.ChunkCount; index++) { ExteriorChunk chunk = exterior.Chunks[index]; blockChunkList.NodeStore.AddNode(new ExteriorChunkNodeState(chunk)); } } }
public ExteriorChunkNodeState(ExteriorChunk chunk) { this.chunk = chunk; }