ME3LibWV.PCCPackage.getObjectName C# (CSharp) Method

getObjectName() public method

public getObjectName ( int uindex ) : string
uindex int
return string
        public string getObjectName(int uindex)
        {
            if (uindex == 0)
                return "Class";
            if (uindex > 0)
            {
                return GetName(Exports[uindex - 1].idxName);
            }
            else
            {
                return GetName(Imports[-uindex - 1].idxName);
            }
        }
        public string GetObjectPath(int uindex)

Usage Example

Example #1
0
 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::getObjectName