Пример #1
0
        private void PrepareFirstSegment(GameSettings settings)
        {
            Map.Clear();
            _generator.ResetState();

            _generator.SegmentWidth  = settings.FirstTileSize;
            _generator.MinSegmentLen = 1;
            _generator.MaxSegmentLen = 1;

            var _firstSegment = RequestNextSegment();

            _generator.SegmentWidth  = settings.TileWidth;
            _generator.MinSegmentLen = settings.SegmentMinLen;
            _generator.MaxSegmentLen = settings.SegmentMaxLen;

            _mapView.ReCreate(_firstSegment, RequestNextSegment);
        }