コード例 #1
0
        public void DeleteCell(IMyClipmapCell cell)
        {
            var cellProxy = cell as MyClipmapCellProxy;

            Debug.Assert(cellProxy != null, "Deleting wrong type of clipmap cell!");

            if (cellProxy.Actor != null)
            {
                if (m_mergeHandler == null || !m_mergeHandler.OnDeleteCell(cellProxy))
                {
                    cellProxy.Unload();
                }
            }
        }