ME3LibWV.PCCPackage.GetObjectPath C# (CSharp) Method

GetObjectPath() public method

public GetObjectPath ( int uindex ) : string
uindex int
return string
        public string GetObjectPath(int uindex)
        {
            string s = "";
            if (uindex == 0)
                return s;
            if (uindex > 0)
                uindex = Exports[uindex - 1].idxLink;
            else
                uindex = Imports[-uindex - 1].idxLink;
            while (uindex != 0)
            {
                s = getObjectName(uindex) + "." + s;
                if (uindex > 0)
                    uindex = Exports[uindex - 1].idxLink;
                else
                    uindex = Imports[-uindex - 1].idxLink;
            }
            return s;
        }
        public byte[] GetObjectData(int index)

Usage Example

 public void Init(PCCPackage pcc, int index)
 {
     comboBox1.Items.Clear();
     comboBox2.Items.Clear();
     for (int i = 0; i < pcc.Header.ExportCount; i++)
         comboBox1.Items.Add(i.ToString("d6") + " : " + pcc.GetObjectPath(i + 1) + pcc.getObjectName(i + 1));
     for (int i = 0; i < pcc.Header.ImportCount; i++)
         comboBox2.Items.Add(i.ToString("d6") + " : " + pcc.GetObjectPath(-i - 1) + pcc.getObjectName(-i - 1));
     comboBox1.SelectedIndex = comboBox2.SelectedIndex = 0;
     if (index == 0)
         r1.Checked = true;
     if (index > 0)
     {
         comboBox1.SelectedIndex = index - 1;
         r2.Checked = true;
     }
     if (index < 0)
     {
         comboBox2.SelectedIndex = -index - 1;
         r3.Checked = true;
     }
 }
All Usage Examples Of ME3LibWV.PCCPackage::GetObjectPath