private void PathfindCallback(IAsyncResult ar) { Mover.PathfindHandler d = (Mover.PathfindHandler)ar.AsyncState; d.EndInvoke(ar); CoreUI.Instance.LogPanel.Log("Moved back to starting room"); }
internal void InvokeReturn() { if (mOriginalRoom == NULL_ROOM) { return; } CoreUI.Instance.LogPanel.Log("Moving back to starting room..."); Mover.PathfindHandler d = mAccount.Mover.PathfindTo; d.BeginInvoke(mOriginalRoom, PathfindCallback, d); mOriginalRoom = NULL_ROOM; }