DCT.UI.CoreUI.InvokePathfind C# (CSharp) Method

InvokePathfind() private method

private InvokePathfind ( int room ) : void
room int
return void
        internal void InvokePathfind(int room)
        {
            if (AccountsPanel.CheckedIndices.Count < 1)
            {
                LogPanel.Log("E: Check the accounts you want to move");
                return;
            }
            if (!Pathfinder.Exists(room))
            {
                LogPanel.Log("E: Select a room that exists in the map database.  If you are moving to a mob, its room information may be invalid.");
                return;
            }

            InvokeBulkMove(room);
        }

Usage Example

Example #1
0
        private void btnGo_Click(object sender, EventArgs e)
        {
            if (lvSpawns.SelectedItems.Count < 1)
            {
                mUI.LogPanel.Log("E: No mob selected.");
                return;
            }
            ListViewItem item = lvSpawns.SelectedItems[0];

            if (lvSpawns.SelectedItems.Count > 1)
            {
                mUI.LogPanel.Log(string.Format("Moving to {0} in room {1}", item.SubItems[0].Text, item.SubItems[2].Text));
            }
            mUI.InvokePathfind(int.Parse(item.SubItems[2].Text));
        }
All Usage Examples Of DCT.UI.CoreUI::InvokePathfind
CoreUI