Exemple #1
0
        /* Refresh
         *  - responsable of calling refresh on entire chunk to reconstruct
         */
        public void Reconstruct()
        {
            if (m_chunk)
            {
                m_chunk.Reconstruct();

                for (int i = 0; i < m_neighbors.Length; i++)
                {
                    HexCell neighbor = m_grid.GetHexCell(m_neighbors[i]);
                    if (neighbor != null && neighbor.m_chunk != m_chunk)
                    {
                        neighbor.m_chunk.Reconstruct();
                    }
                }
            }
        }