Example #1
0
        public MapControl()
        {
            this.ClipToBounds = true;

            this.SrcPos = this.DstPos = DirectionSet.Exact;

            //this.UseLayoutRounding = false;
            //this.UseLayoutRounding = true;

            this.CurrentTileInfo = new TileInfo();

            this.Focusable = true;

            this.TileSize = 24;

            m_map = new Map(MapWidth, MapHeight, MapDepth);

            ClearMap();

            this.DragStarted += OnDragStarted;
            this.DragEnded += OnDragEnded;
            this.Dragging += OnDragging;
            this.DragAborted += OnDragAborted;
            this.MouseClicked += OnMouseClicked;
        }
Example #2
0
 public MyTarget(Map env, IntVector3 destination, DirectionSet positioning)
 {
     m_env = env;
     m_destination = destination;
     m_positioning = positioning;
 }