Esempio n. 1
0
        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));
                }
            }
        }
Esempio n. 2
0
 public ExteriorChunkNodeState(ExteriorChunk chunk)
 {
     this.chunk = chunk;
 }