SInventoryItem
في هذا الصنفStoreCustomData
| دالة | StoreCustomData | Updates the inventory items custom data, and requests a synchronisation with the inventory server. |
| دالة | Use | Player will 'Use' this item. (White-label only) |
| دالة | Delete | Player will 'Delete' this item. (White-label only) |
| خاصية | MasterID | The master ID for this item - also known as the Curator ID or Item ID, this is the ID for the master item from which this copy exists. |
| خاصية | PlayerItemID | The instance ID for this item - this is guaranteed to be unique per inventory item |
| خاصية | Name | Returns the name of the inventory item |
| خاصية | Description | Returns the registered description of the inventory item in the users locale |
| خاصية | Brand | Returns brand information about the item |
| خاصية | CustomData | Returns any custom data associated with this item, typically used for 'game' items |
الدوال
StoreCustomData
Updates the inventory items custom data, and requests a synchronisation with the inventory server. It may not update on the server immediately, but all local calls will reflect the new data. Note: this request can be rate limited and should only be called from a user initiated action (such as clicking a button). Updates to custom data must not be initiated on a timer or regular automatic event. Access to this function can be blacklisted to specific creators if abused.
المعاملات
| الاسم | النوع | القيمة الافتراضية |
|---|---|---|
| data | string | – |
القيم المرجعة
bool
مثال
Items = Space.Inventory.Items
Items[1].StoreCustomData('data1data2data3')
Use
Player will 'Use' this item. (White-label only)
القيم المرجعة
void
مثال
Items = Space.Inventory.Items
Items[1].Use()
Delete
Player will 'Delete' this item. (White-label only)
القيم المرجعة
void
مثال
Items = Space.Inventory.Items
Items[1].Delete()
الخصائص
MasterIDللقراءة فقط
The master ID for this item - also known as the Curator ID or Item ID, this is the ID for the master item from which this copy exists.
مثال
Items = Space.Inventory.Items
iMasterID = Items[1].MasterID
PlayerItemIDللقراءة فقط
The instance ID for this item - this is guaranteed to be unique per inventory item
مثال
Items = Space.Inventory.Items
iPlayerItemID= Items[1].PlayerItemID
Nameللقراءة فقط
Returns the name of the inventory item
مثال
Items = Space.Inventory.Items
iName= Items[1].Name
Descriptionللقراءة فقط
Returns the registered description of the inventory item in the users locale
مثال
Items = Space.Inventory.Items
iDescription=Items[1].Description
Brandللقراءة فقط
Returns brand information about the item
مثال
Items = Space.Inventory.Items
iBrand = Items[1].Brand
CustomDataللقراءة فقط
Returns any custom data associated with this item, typically used for 'game' items
مثال
Items = Space.Inventory.Items
iCustomData = Items[1].CustomData



