MegaMan.LevelEditor.CursorTool.Move C# (CSharp) Метод

Move() публичный Метод

public Move ( ScreenDrawingSurface surface, System location ) : void
surface ScreenDrawingSurface
location System
Результат void
        public void Move(ScreenDrawingSurface surface, System.Drawing.Point location)
        {
            if (heldEntity != null)
            {
                heldEntity.screenX = location.X - entityAnchor.X;
                heldEntity.screenY = location.Y - entityAnchor.Y;
                surface.ReDrawEntities();
            }
        }