Example #1
0
 internal static extern bool GetItemAttribute(IntPtr pItem, PackageAttribute eAttribute, out AttributeStruct pAttributeStruct);
Example #2
0
 protected static extern string GetPackageItemAttributeName(PackageAttribute eAttribute);
Example #3
0
 private static extern string GetPackageItemAttributeName(PackageAttribute eAttribute);
Example #4
0
 private static extern bool GetAttribute(PackageAttribute eAttribute, out AttributeStruct pAttributeStruct);
Example #5
0
 public string GetItemAttributeName(PackageAttribute attribute)
 {
     Bind(PackageID);
     return GetPackageItemAttributeName(attribute);
 }
Example #6
0
 public Attribute GetItemAttribute(Item item, PackageAttribute attribute)
 {
     Bind(PackageID);
     AttributeStruct attr;
     if (!GetItemAttribute(item.ItemPtr, attribute, out attr))
     {
         throw new Exception("Unable to get item attribute.");
     }
     return new Attribute(attr);
 }
Example #7
0
 public Attribute GetAttribute(PackageAttribute attribute)
 {
     Bind(PackageID);
     AttributeStruct attr;
     if (!GetAttribute(attribute, out attr))
     {
         throw new Exception("Unable to get attribute.");
     }
     return new Attribute(attr);
 }