Save and restore item data, including custom items.
More...
Save and restore item data, including custom items.
String vSS_API_Item::AssignItemID |
( |
Int |
ajObjectInfo | ) |
|
|
inlinestatic |
Retrieve or create an ItemID for ajObjectInfo. If it has been serialized before, it will return its current itemID.
- Parameters
-
ajObjectInfo | An ObjectInfo JObject. |
- Returns
- The assigned ItemID.
ObjectReference vSS_API_Item::CreateObject |
( |
String |
asItemID | ) |
|
|
inlinestatic |
Recreate an item from scratch using its ItemID.
- Parameters
-
asItemID | The ItemID of the object to create. |
- Returns
- The newly created ObjectReference, or None.
ObjectReference vSS_API_Item::CreateObjectFromJObj |
( |
Int |
ajObjectInfo | ) |
|
|
inlinestatic |
Recreate an item from scratch using an appropriate JContainers object.
- Parameters
-
ajObjectInfo | An ObjectInfo JObject. |
- Returns
- The newly created ObjectReference, or None.
ObjectReference vSS_API_Item::CreatePotion |
( |
String |
asItemID | ) |
|
|
inlinestatic |
Recreate a custom potion using the data from asItemID.
- Parameters
-
asItemID | The ItemID of the potion. |
- Returns
- The newly created Potion.
Potion vSS_API_Item::CreatePotionFromPotionData |
( |
Int |
jPotionData | ) |
|
|
inlinestatic |
Create a custom potion using jPotionData.
- Parameters
-
jPotionData | A PotionData JObject. |
- Returns
- The newly created Potion.
ObjectReference vSS_API_Item::CustomizeEquipment |
( |
String |
asItemID, |
|
|
ObjectReference |
akObject |
|
) |
| |
|
inlinestatic |
Apply the customization information from the JObject referenced by asItemID to akObject.
- Parameters
-
asItemID | The ItemID of the object to create. |
akObject | The ObjectReference to customize. |
- Returns
- The customized ObjectReference.
ObjectReference vSS_API_Item::CustomizeEquipmentFromJObj |
( |
Int |
ajItemInfo, |
|
|
ObjectReference |
akObject |
|
) |
| |
|
inlinestatic |
Apply the customization information from ajItemInfo to weapon or armor akObject.
- Parameters
-
ajItemInfo | An ObjectInfo JObject. |
akObject | The ObjectReference to customize. |
- Returns
- The newly customized ObjectReference.
ObjectReference vSS_API_Item::CustomizeObjectFromJObj |
( |
Int |
ajItemInfo, |
|
|
ObjectReference |
akObject |
|
) |
| |
|
inlinestatic |
Apply the customization information from ajItemInfo to akObject.
- Parameters
-
ajItemInfo | An ObjectInfo JObject. |
akObject | The ObjectReference to customize. |
- Returns
- The newly customized ObjectReference.
vSS_API_Item::DebugTraceAPIItem |
( |
String |
sDebugString, |
|
|
Int |
iSeverity = 0 |
|
) |
| |
|
inlinestatic |
Wrapper for Debug.Trace that makes it easy to read in the log file.
- Parameters
-
sDebugString | The text to log. |
iSeverity | 0 = Info, 1 = Warn, 2 = Error. |
Form vSS_API_Item::GetExistingObject |
( |
String |
asItemID | ) |
|
|
inlinestatic |
Return an existing reference to the object in asItemID, if it exists.
- Parameters
-
asItemID | The ItemID to look up. |
- Returns
- An existing Form, if it exists, otherwise None.
String vSS_API_Item::GetFormIDString |
( |
Form |
kForm | ) |
|
|
inlinestatic |
Return a nicely formatted FormID string.
- Parameters
-
kForm | Form to get the FormID of. |
- Returns
- String containing the FormID.
Int vSS_API_Item::GetItemInfosForForm |
( |
Form |
akForm | ) |
|
|
inlinestatic |
Return a JMap of JItemInfos already saved for akForm.
- Parameters
-
- Returns
- A jItemInfoMap.
Int vSS_API_Item::GetItemJMap |
( |
String |
asItemID | ) |
|
|
inlinestatic |
Return the JMap object of the specified item.
- Parameters
-
asItemID | The UUID of the requested item. |
- Returns
- The JMap ID or -2 if not found.
String vSS_API_Item::GetItemName |
( |
String |
asItemID | ) |
|
|
inlinestatic |
Return the name of the specified item.
- Parameters
-
asItemID | The UUID of the requested item. |
- Returns
- The name of the item, or an empty string if not found.
String vSS_API_Item::GetObjectID |
( |
ObjectReference |
akObject | ) |
|
|
inlinestatic |
Return the ItemID for an ObjectReference, if one exists.
- Parameters
-
akObject | The ObjectReference to look up. |
- Returns
- The ItemID of an already serialized Form, or an empty string.
String vSS_API_Item::SaveItem |
( |
Int |
ajObjectInfo, |
|
|
String |
asItemId = "" |
|
) |
| |
|
inlinestatic |
Save an item in the registry based on the data in ajObjectInfo.
- Parameters
-
ajObjectInfo | An ObjectInfo JObject. |
asItemId | The desired ItemID for the object. |
- Returns
- The assigned ItemID.
String vSS_API_Item::SerializeEquipment |
( |
ObjectReference |
akObject | ) |
|
|
inlinestatic |
Serialize weapons and armor if it is customized.
- Parameters
-
akObject | The ObjectReference to serialize. |
- Returns
- A string containing the JSON serialization of akObject.
String vSS_API_Item::SerializeObject |
( |
ObjectReference |
akObject | ) |
|
|
inlinestatic |
Serialize an objectReference if it is customized.
- Parameters
-
akObject | The ObjectReference to serialize. |
- Returns
- A string containing the JSON serialization of akObject.
String vSS_API_Item::SerializePotion |
( |
Form |
akItem | ) |
|
|
inlinestatic |
Serialize a custom potion and return its new ItemID.
- Parameters
-
akItem | The Potion or Poison to serialize. |
- Returns
- A string containing the JSON serialization of akItem.
vSS_API_Item::SetItemInfosForForm |
( |
Form |
akForm, |
|
|
Int |
jItemInfoMap |
|
) |
| |
|
inlinestatic |
Set or create an ItemInfoMap for akForm.
- Parameters
-
akForm | A form. |
jItemInfoMap | The ItemInfoMap to set. |
vSS_API_Item::SetObjectID |
( |
ObjectReference |
akObject, |
|
|
String |
asItemID |
|
) |
| |
|
inlinestatic |
Set the ItemID for an ObjectReference, creating an ItemIDMap if one does not exist.
- Parameters
-
akObject | The target ObjectReference. |
asItemID | The ItemID to set. |
The documentation for this class was generated from the following file:
- //kodan/verteiron/Papy2Doxy/output/vSS_API_Item.psc