コード例 #1
0
        public ContinentLinesPainter(Graphics g, DisplaySettings settings, VillageDimensions dimensions, Rectangle gameRectangle, Rectangle mapSize)
        {
            _settings = settings;
            _g = g;
            _visibleGameRectangle = gameRectangle;
            _toPaint = mapSize;

            _villageWidthSpacing = dimensions.SizeWithSpacing.Width;
            _villageHeightSpacing = dimensions.SizeWithSpacing.Height;
        }
コード例 #2
0
 private void SetVillageDimensions()
 {
     Dimensions = CalculateVillageDimensions();
 }