Пример #1
0
        /// <summary>
        /// Clears the current world and resets the world to empty tiles.
        /// </summary>
        public void Clear()
        {
            for (var x = 0; x < Current.Width; x++)
            {
                for (var y = 0; y < Current.Height; y++)
                {
                    Current.Tiles[x, y].Type = TileType.Empty;
                }
            }

            NavGraph.Clear();

            Current.OnWorldModifyFinishCallback();
            Current.PlatformCount = 0;
        }