public RectInt(PointInt location, SizeInt size) { this.x = location.X; this.y = location.Y; this.width = size.Width; this.height = size.Height; }
protected void OnCurrentPositionChanged(PointInt newPosition) { MapViewPositionChanged temp = currentPositionChanged; if (temp != null) { temp(newPosition); } }
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; }
public RawTile(MapType type, PointInt tileXY, int level) { this.Type = type; this.TileXY = tileXY; this.Level = level; }
public bool Contains(PointInt pt) { return(Contains(pt.X, pt.Y)); }