示例#1
0
 public RectInt(PointInt location, SizeInt size)
 {
     this.x      = location.X;
     this.y      = location.Y;
     this.width  = size.Width;
     this.height = size.Height;
 }
示例#2
0
        protected void OnCurrentPositionChanged(PointInt newPosition)
        {
            MapViewPositionChanged temp = currentPositionChanged;

            if (temp != null)
            {
                temp(newPosition);
            }
        }
示例#3
0
 public void GoToPosition(MapLocation pos)
 {
     //mapViewRect.X = (int)(position.X - mapViewRect.Width / 2);
     //mapViewRect.Y = (int)(position.Y - mapViewRect.Height / 2);
     ////mapViewRealRect.X = mapViewRect.X * ZoomRate;
     ////mapViewRealRect.Y = mapViewRect.Y * ZoomRate;
     //Level = level;
     //rootLayer.OnUpdateMap(mapViewRect, Level);
     //foreach (MapLayer maplayer in maplayerItems)
     //    maplayer.OnUpdateMap(mapViewRect, Level);
     Level = pos.Level;
     RenderOffsetRealView = new PointD(pos.Position.X * ZoomRate, pos.Position.Y * ZoomRate);
     mapViewCenter        = pos.Position;
 }
示例#4
0
 public RawTile(MapType type, PointInt tileXY, int level)
 {
     this.Type   = type;
     this.TileXY = tileXY;
     this.Level  = level;
 }
示例#5
0
 public bool Contains(PointInt pt)
 {
     return(Contains(pt.X, pt.Y));
 }