NWNX:EE  8193.36.12
ItemProperty

Readme

Provide various utility functions to manipulate builtin itemproperty type

Files

file  nwnx_itemprop.nss
 

Classes

struct  NWNX_IPUnpacked
 An unpacked itemproperty. More...
 

Functions

struct NWNX_IPUnpacked NWNX_ItemProperty_UnpackIP (itemproperty ip)
 Convert native itemproperty type to unpacked structure. More...
 
itemproperty NWNX_ItemProperty_PackIP (struct NWNX_IPUnpacked ip)
 Convert unpacked itemproperty structure to native type. More...
 
struct NWNX_IPUnpacked NWNX_ItemProperty_GetActiveProperty (object oItem, int nIndex)
 Gets the active item property at the index. More...
 

Function Documentation

◆ NWNX_ItemProperty_UnpackIP()

struct NWNX_IPUnpacked NWNX_ItemProperty_UnpackIP ( itemproperty  ip)

Convert native itemproperty type to unpacked structure.

Parameters
ipThe itemproperty to convert.
Returns
A constructed NWNX_IPUnpacked.

Definition at line 45 of file nwnx_itemprop.nss.

◆ NWNX_ItemProperty_PackIP()

itemproperty NWNX_ItemProperty_PackIP ( struct NWNX_IPUnpacked  ip)

Convert unpacked itemproperty structure to native type.

Parameters
ipThe NWNX_IPUnpacked structure to convert.
Returns
The itemproperty.

Definition at line 71 of file nwnx_itemprop.nss.

◆ NWNX_ItemProperty_GetActiveProperty()

struct NWNX_IPUnpacked NWNX_ItemProperty_GetActiveProperty ( object  oItem,
int  nIndex 
)

Gets the active item property at the index.

Parameters
oItem- the item with the property
nIndex- the index such as returned by some Item Events
Returns
A constructed NWNX_IPUnpacked, except for creator, and spell id.

Definition at line 92 of file nwnx_itemprop.nss.